Skip to content

Commit

Permalink
Better specs reporting when tests fails
Browse files Browse the repository at this point in the history
  • Loading branch information
megazord committed Mar 10, 2015
1 parent eef1e1f commit 3cb3008
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/com/edulify/play/hikaricp/HikariCPDBApiSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class HikariCPDBApiSpec extends Specification with AroundExample {
"bind data source to jndi" in new DataSourceConfigs {
val api = new HikariCPDBApi(configWithLogSql, classLoader)
val ds = api.getDataSource("default")
JNDI.initialContext.lookup("TestContext") != null
JNDI.initialContext.lookup("TestContext") must not(beNull)
}
"register driver configured in `driverClassName`" in new DataSourceConfigs {
val api = new HikariCPDBApi(configWithLogSql, classLoader)
Expand All @@ -53,8 +53,8 @@ class HikariCPDBApiSpec extends Specification with AroundExample {
}
"create more than one datasource" in new DataSourceConfigs {
val api = new HikariCPDBApi(multipleDataSources, classLoader)
api.getDataSource("default") != null
api.getDataSource("default2") != null
api.getDataSource("default") must not(beNull)
api.getDataSource("default2") must not(beNull)
}
"report misconfiguration error when" in {
"dataSourceClassName and jdbcUrl are not present" in new DataSourceConfigs {
Expand Down

0 comments on commit 3cb3008

Please sign in to comment.