@Test public void testJavaSEVersionNameMappings() throws Exception { List<SystemCapability> javaSeVersions = new ArrayList<>(); for (String version : new String[] { "1.2.0", "1.3.0", "1.4.0", "1.5.0", "1.6.0", "1.7.0" }) { SystemCapability capability = new SystemCapability(Type.OSGI_EE, "JavaSE", version); javaSeVersions.add(capability); } customExecutionEnvironment = new CustomExecutionEnvironment("name", javaSeVersions); assertThat(customExecutionEnvironment.getProfileProperties().size(), is(3)); assertProperty(Constants.FRAMEWORK_EXECUTIONENVIRONMENT, "J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6,JavaSE-1.7"); }
@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();  }