@Test public void testOsgiEeCapabilityStrangeVersion() throws Exception { createExecutionEnvironment(new SystemCapability(Type.OSGI_EE, "JavaSE", "1.6.1")); assertThat(customExecutionEnvironment.getProfileProperties().size(), is(3)); assertProperty(Constants.FRAMEWORK_EXECUTIONENVIRONMENT, "JavaSE-1.6.1"); assertProperty(Constants.FRAMEWORK_SYSTEMCAPABILITIES, "osgi.ee; osgi.ee=\"JavaSE\"; version:Version=\"1.6.1\""); }
@Override public Properties getProfileProperties() { return properties; }
CustomExecutionEnvironment implements ExecutionEnvironment { @Override public Properties getProfileProperties() { return properties; } }
CustomExecutionEnvironment implements ExecutionEnvironment { @Override public Properties getProfileProperties() { return properties; } CustomExecutionEnvironment(String profileName, List<SystemCapability> systemCapabilities); }
CustomExecutionEnvironment implements ExecutionEnvironment { @Override public Properties getProfileProperties() { return properties; } CustomExecutionEnvironment(String profileName, List<SystemCapability> systemCapabilities); @Override String getProfileName(); @Override Properties getProfileProperties(); @Override Collection<SystemPackageEntry> getSystemPackages(); @Override String getCompilerSourceLevelDefault(); @Override String getCompilerTargetLevelDefault(); @Override boolean isCompatibleCompilerTargetLevel(String target); @Override String toString(); }
CustomExecutionEnvironment implements ExecutionEnvironment { @Override public Properties getProfileProperties() { return properties; } CustomExecutionEnvironment(String profileName, List<SystemCapability> systemCapabilities); @Override String getProfileName(); @Override Properties getProfileProperties(); @Override Collection<SystemPackageEntry> getSystemPackages(); @Override String getCompilerSourceLevelDefault(); @Override String getCompilerTargetLevelDefault(); @Override boolean isCompatibleCompilerTargetLevel(String target); @Override String toString();  }