jeudi 12 avril 2018

Prevent import.sql running in the scope of test

How I can prevent to run import.sql file inside main/resources not deleting or clearing the file in the scope of testing?

@RunWith(SpringRunner.class)
@DataJpaTest
public class SomeIntegrationTest {

    @Autowired
    private SomeRepository someRepository;

    @Before
    public void setUp() throws Exception {

    }

    @After
    public void tearDown() throws Exception {
    }

}

Aucun commentaire:

Enregistrer un commentaire