>>>>> Steinar Bang <sb-1rlz5cwd...@public.gmane.org>: > So I guess it has something to do with function scopes?
I am thinking the clue is in one word in the error message: > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.93 > s <<< FAILURE! - in > no.priv.bang.karaf.liquibase.tests.LiquibaseKarafFeatureIntegrationTest > [ERROR] > testLoadFeature(no.priv.bang.karaf.liquibase.tests.LiquibaseKarafFeatureIntegrationTest) > Time elapsed: 0.061 s <<< ERROR! > java.lang.ClassNotFoundException: > no.priv.bang.karaf.liquibase.sample.services.Account not found by > PAXEXAM-PROBE-37daa15f-5c4f-4a37-b284-8ef8ac7cb232 [77] The word is "PROBE". I think this happens in code that check if the test is runnable, and not when it actually runs. As long as the test method itself will run in OSGi, then both the stream/filter/findFirst example and the separate method example would run fine in OSGi (because they would end up in the same .class file and be loaded by the same classloader). Oh well! The current, clumsy, example works. -- -- ------------------ OPS4J - http://www.ops4j.org - ops4j@googlegroups.com --- 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 ops4j+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/878r5zsz3m.fsf%40dod.no.