summaryrefslogtreecommitdiff
path: root/test/osgi/src/BasicReflection.scala
diff options
context:
space:
mode:
authorRafaƂ Krzewski <rafal.krzewski@caltha.pl>2014-10-15 04:17:04 +0200
committerSimon Ochsenreither <simon@ochsenreither.de>2014-10-23 05:12:43 +0200
commit3ddb3737568ea5e9fa5803c36c3a95feae265330 (patch)
treea029f5314003fe1a93c9d50494b3acfa1d85c0ae /test/osgi/src/BasicReflection.scala
parent2b5df373638d08204b71258928289f6b39e25d5f (diff)
downloadscala-3ddb3737568ea5e9fa5803c36c3a95feae265330.tar.gz
scala-3ddb3737568ea5e9fa5803c36c3a95feae265330.tar.bz2
scala-3ddb3737568ea5e9fa5803c36c3a95feae265330.zip
SI-8927 Update OSGi stuff to get rid of bndlib warning
The way the desired OSGi frameworks are chosen has changed between Pax Exam versions: On earlier versions, specifying it in code was fine, but PAX Exam 4.x runs the tests on the first OSGi framework it finds on classpath. An exclusion for the transitive dependency org.osgi.core was added, because it seems that artifact has broken dependecies (which would have brought us back to square one). Good thing is that it isn't needed here, because the OSGi framework JARs contain all necessary classes.
Diffstat (limited to 'test/osgi/src/BasicReflection.scala')
-rw-r--r--test/osgi/src/BasicReflection.scala15
1 files changed, 6 insertions, 9 deletions
diff --git a/test/osgi/src/BasicReflection.scala b/test/osgi/src/BasicReflection.scala
index d601f04f89..53ab7e5345 100644
--- a/test/osgi/src/BasicReflection.scala
+++ b/test/osgi/src/BasicReflection.scala
@@ -10,13 +10,10 @@ import org.ops4j.pax.exam.CoreOptions._
import org.junit.Test
import org.junit.runner.RunWith
import org.ops4j.pax.exam
-import org.ops4j.pax.exam.junit.{
- Configuration,
- ExamReactorStrategy,
- JUnit4TestRunner
-}
-import org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactorFactory
-import org.ops4j.pax.swissbox.framework.ServiceLookup
+import org.ops4j.pax.exam.Configuration
+import org.ops4j.pax.exam.junit.PaxExam
+import org.ops4j.pax.exam.spi.reactors.{ ExamReactorStrategy, PerMethod }
+import org.ops4j.pax.swissbox.tracker.ServiceLookup
import org.osgi.framework.BundleContext
@@ -38,8 +35,8 @@ class C {
object M
-@RunWith(classOf[JUnit4TestRunner])
-@ExamReactorStrategy(Array(classOf[AllConfinedStagedReactorFactory]))
+@RunWith(classOf[PaxExam])
+@ExamReactorStrategy(Array(classOf[PerMethod]))
class BasicReflectionTest extends ScalaOsgiHelper {
@Configuration