Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class CustomerRepositoryTcLibraryIT extends Specification implements ExecutionTimeMeasurementSupport {
CustomerRepository customerRepository
def setup() {
startTimeMeasure()
Connection connection = DriverManager.getConnection("jdbc:tc:postgresql:9.6.17:///test_plain_db?TC_INITSCRIPT=db/customer_database_schema.sql&TC_REUSABLE=true")
stopTimeMeasure()
customerRepository = new CustomerRepository(connection)
}
def "should be able to retrieve saved customer"() {
// test code
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment