StandardExecutionEnvironment implements Comparable<StandardExecutionEnvironment>, ExecutionEnvironment { @Override public String getCompilerTargetLevelDefault() { return compilerTargetLevel; } @Deprecated  StandardExecutionEnvironment(@Nonnull Properties profileProperties);   StandardExecutionEnvironment(@Nonnull Properties profileProperties, @Nullable Toolchain toolchain,
            @Nullable Logger logger); @Override String getProfileName(); @Override String getCompilerSourceLevelDefault(); @Override String getCompilerTargetLevelDefault(); @Override String toString(); @Override Collection<SystemPackageEntry> getSystemPackages(); @Override int compareTo(StandardExecutionEnvironment otherEnv); @Override int hashCode(); @Override boolean equals(Object obj); @Override Properties getProfileProperties(); @Override boolean isCompatibleCompilerTargetLevel(String target);  }
@Test public void testCompilerTargetLevel() { assertEquals("1.1", osgiMin10Environment.getCompilerTargetLevelDefault()); assertEquals("1.2", osgiMin11Environment.getCompilerTargetLevelDefault()); assertEquals("1.2", osgiMin12Environment.getCompilerTargetLevelDefault()); assertEquals("1.1", cdc10Environment.getCompilerTargetLevelDefault()); assertEquals("1.2", cdc11Environment.getCompilerTargetLevelDefault()); assertEquals("1.1", jre11Environment.getCompilerTargetLevelDefault()); assertEquals("1.1", j2SE12Environment.getCompilerTargetLevelDefault()); assertEquals("1.1", j2SE13Environment.getCompilerTargetLevelDefault()); assertEquals("1.2", j2SE14Environment.getCompilerTargetLevelDefault()); assertEquals("1.5", j2SE5Enviroment.getCompilerTargetLevelDefault()); assertEquals("1.6", javaSE6Enviroment.getCompilerTargetLevelDefault()); assertEquals("1.7", javaSE7Enviroment.getCompilerTargetLevelDefault()); assertEquals("1.8", javaSE8Environment.getCompilerTargetLevelDefault()); assertEquals("9", javaSE9Environment.getCompilerTargetLevelDefault()); assertEquals("11", javaSE11Environment.getCompilerTargetLevelDefault()); assertEquals("14", javaSE14Environment.getCompilerTargetLevelDefault()); assertEquals("15", javaSE15Environment.getCompilerTargetLevelDefault()); assertEquals("16", javaSE16Environment.getCompilerTargetLevelDefault()); assertEquals("1.8", javaSECompact1Enviroment.getCompilerTargetLevelDefault()); assertEquals("1.8", javaSECompact2Enviroment.getCompilerTargetLevelDefault()); assertEquals("1.8", javaSECompact3Enviroment.getCompilerTargetLevelDefault()); }