<dependency> <groupId>biz.aQute.bnd</groupId> <artifactId>biz.aQute.junit</artifactId> <version>4.3.0</version> <scope>test</scope> </dependency> import static org.junit.Assert.*; import org.junit.*; import org.osgi.test.common.annotation.*; @RunWith(BndRunner.class) public class MyLibraryTest { @Test public void testSomething() { } } -runfw: org.apache.felix.framework;version='[5.6.10,5.6.10]' -runsystemcapabilities: ${native_capability}=true -testcapability.class=org.osgi.test.common.capabilities.ServiceCapability;filter:="(objectClass=javax.sql.DataSource)" -testcapability.filter.objects=org.springframework.core.io.support.PathMatchingResourcePatternResolver,org.springframework.jdbc.core.JdbcTemplate -runbundles: \ biz.aQute.bnd.annotation;version='[4.3.1,4.3.1]', \ org.osgi.test.junit4;version='[6.0.0,6.0.0]', \ org.assertj.core;version='[3.8.0,3.8.0]', \ org.apache.felix.log;version='[1.2.0,1.2.0]', \ org.apache.felix.gogo.command;version='[1.1.0,1.1.0]', \ org.apache.felix.gogo.runtime;version='[1.1.0,1.1.0]', \ osgi.enroute.junit.wrapper;version='[1.0.0,1.0.0]' -runee: JavaSE-13


上一篇:
下一篇:
切换中文