Skip to content

Instantly share code, notes, and snippets.

@pawelpluta
Last active February 29, 2020 20:41
Show Gist options
  • Select an option

  • Save pawelpluta/f5f092131ebea062a1f164ad1986a577 to your computer and use it in GitHub Desktop.

Select an option

Save pawelpluta/f5f092131ebea062a1f164ad1986a577 to your computer and use it in GitHub Desktop.
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