Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
@ContextConfiguration(classes = {DbConfig.class})
@Sql(executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD, scripts = "classpath:dao/TestData.sql")
public class PostgresEmbeddedDaoTestingApplicationTests {
private CustomerRepository customerRepository;
public void contextLoads() {
.id(new Random().nextLong())
Assert.assertTrue(customerRepository.findCustomerByName("TestName") != null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.