I tried using the ClasspathResourceAccessor to have liquibase load resources from the classpath.
This worked fine in unit tests, but failed when I tried running the bundle in OSGi. So then I tried using this class intead. http://www.liquibase.org/javadoc/liquibase/osgi/OSGiResourceAccessor.html I created the OSGiResourceAccessor in the following way: Bundle bundleContainingThisClass = FrameworkUtil.getBundle(getClass()); ResourceAccessor resourceAccessor = new OSGiResourceAccessor(bundleContainingThisClass); However the OSGiResourceAccessor failed in the unit tests, becaues the bundle was null. I then tried to change the unit tests into a basic, minimal pax exam test (basically, just running the code like in the current unit test, but with all of the OSGi stuff in place), but then I got the following startup error: org.ops4j.pax.exam.TestContainerException: No TestContainer implementation in Classpath Is what I'm doing possible? Or am I trying to use pax exam for something it isn't designed for? Would it be better if I figured out a way to use ClasspathResourceAccessor in the unit test and OSGiResourceAccessor when running the unit tests? Thanks! - Steinar -- -- ------------------ OPS4J - http://www.ops4j.org - [email protected] --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
