Permalink
Browse files

Add test for resolving reference.conf in OSGi context

  • Loading branch information...
szeiger committed May 5, 2015
1 parent a9dd9a8 commit 4b7262e38ac45b9750e60580229bd800d71bb2ac
Showing with 6 additions and 1 deletion.
  1. +6 −1 osgi-tests/src/test/scala/slick/osgi/test/BasicTest.scala
@@ -8,6 +8,7 @@ import org.ops4j.pax.exam.junit.{Configuration, ExamReactorStrategy, JUnit4TestR
import org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactorFactory import org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactorFactory
import slick.SlickException import slick.SlickException
import slick.osgi.testutil._ import slick.osgi.testutil._
import slick.util.GlobalConfig
@RunWith(classOf[JUnit4TestRunner]) @RunWith(classOf[JUnit4TestRunner])
@ExamReactorStrategy(Array(classOf[AllConfinedStagedReactorFactory])) @ExamReactorStrategy(Array(classOf[AllConfinedStagedReactorFactory]))
@@ -26,4 +27,8 @@ class BasicTest extends SlickOsgiHelper {
assertEquals("TEST-OSGI", sql"select {fn database()}".as[String].first) assertEquals("TEST-OSGI", sql"select {fn database()}".as[String].first)
} }
} }
} @Test
def testConfig: Unit = {
assertFalse(GlobalConfig.driverConfig("MySQL").isEmpty)
}
}

0 comments on commit 4b7262e

Please sign in to comment.