Skip to content

Commit

Permalink
Adjust compiler target environments tests
Browse files Browse the repository at this point in the history
Due to changes in Equinox
eclipse-equinox/equinox#655
  • Loading branch information
akurtakov authored and github-actions[bot] committed Sep 11, 2024
1 parent 3ac9290 commit 4123a6a
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2010, 2022 SAP AG and others.
* Copyright (c) 2010, 2024 SAP AG and others.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
Expand All @@ -13,7 +13,6 @@
package org.eclipse.tycho.core.ee;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

Expand Down Expand Up @@ -156,9 +155,9 @@ public void testCompilerTargetLevel() {
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.2", j2SE12Environment.getCompilerTargetLevelDefault());
assertEquals("1.3", j2SE13Environment.getCompilerTargetLevelDefault());
assertEquals("1.4", j2SE14Environment.getCompilerTargetLevelDefault());
assertEquals("1.5", j2SE5Environment.getCompilerTargetLevelDefault());
assertEquals("1.6", javaSE6Environment.getCompilerTargetLevelDefault());
assertEquals("1.7", javaSE7Environment.getCompilerTargetLevelDefault());
Expand All @@ -177,7 +176,7 @@ public void testCompilerTargetLevel() {
public void testCompilerTargetCompatibility() throws Exception {
assertTrue(j2SE14Environment.isCompatibleCompilerTargetLevel("1.1"));
assertTrue(j2SE14Environment.isCompatibleCompilerTargetLevel("1.2"));
assertFalse(j2SE14Environment.isCompatibleCompilerTargetLevel("1.3"));
assertTrue(j2SE14Environment.isCompatibleCompilerTargetLevel("1.3"));

// version aliases
assertTrue(j2SE5Environment.isCompatibleCompilerTargetLevel("5"));
Expand Down

0 comments on commit 4123a6a

Please sign in to comment.