Skip to content

Added tests & modifications made for the Switch rewrite formatting #45

Added tests & modifications made for the Switch rewrite formatting

Added tests & modifications made for the Switch rewrite formatting #45

GitHub Actions / Test Results failed Dec 14, 2024 in 0s

109 fail, 78 172 pass in 17m 24s

     8 files  ± 0       8 suites  ±0   17m 24s ⏱️ -37s
78 281 tests +67  78 172 ✅ +54  0 💤 ±0  109 ❌ +13 
78 341 runs  +67  78 232 ✅ +54  0 💤 ±0  109 ❌ +13 

Results for commit 12ee810. ± Comparison against earlier commit 36749ec.

Annotations

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement - JLS14 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS14()
SETUP testSwitchStatement - JLS14


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement - JLS14
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS14() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement - JLS15 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS15()
SETUP testSwitchStatement - JLS15


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement - JLS15
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS15() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement - JLS16 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS16()
SETUP testSwitchStatement - JLS16


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement - JLS16
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS16() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement - JLS17 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS17()
SETUP testSwitchStatement - JLS17


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement - JLS17
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS17() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement - JLS18 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS18()
SETUP testSwitchStatement - JLS18


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement - JLS18
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS18() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement - JLS19 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS19()
SETUP testSwitchStatement - JLS19


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement - JLS19
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS19() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement - JLS20 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS20()
SETUP testSwitchStatement - JLS20


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement - JLS20
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS20() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement - JLS21 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS21()
SETUP testSwitchStatement - JLS21


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement - JLS21
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS21() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement - JLS22 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS22()
SETUP testSwitchStatement - JLS22


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement - JLS22
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS22() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement - JLS23 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS23()
SETUP testSwitchStatement - JLS23


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement - JLS23
[2024-12-14 06:45:42 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement - JLS23() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1: return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12: return;
        }
    }
}

Differs at pos 101: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
            case 1:
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
                return;
        }
    }
}
 expected:<...
            case 1:[
                return;
            default:
        }
        switch (i) {
            case 11:
                return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:
               ] return;
        }
 ...> but was:<...
            case 1:[ return;
            default:
        }
        switch (i) {
            case 11: return;
            case 10:
                i= 2;
                break;
            default:
                i= 3;
            case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement(ASTRewritingStatementsTest.java:3665)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement2 - JLS14 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS14()
SETUP testSwitchStatement2 - JLS14


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement2 - JLS14
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS14() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement2 - JLS15 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS15()
SETUP testSwitchStatement2 - JLS15


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement2 - JLS15
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS15() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement2 - JLS16 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS16()
SETUP testSwitchStatement2 - JLS16


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement2 - JLS16
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS16() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement2 - JLS17 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS17()
SETUP testSwitchStatement2 - JLS17


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement2 - JLS17
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS17() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement2 - JLS18 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS18()
SETUP testSwitchStatement2 - JLS18


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement2 - JLS18
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS18() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement2 - JLS19 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS19()
SETUP testSwitchStatement2 - JLS19


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement2 - JLS19
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS19() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement2 - JLS20 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS20()
SETUP testSwitchStatement2 - JLS20


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement2 - JLS20
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS20() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement2 - JLS21 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS21()
SETUP testSwitchStatement2 - JLS21


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement2 - JLS21
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS21() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement2 - JLS22 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS22()
SETUP testSwitchStatement2 - JLS22


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement2 - JLS22
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS22() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement2 - JLS23 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS23()
SETUP testSwitchStatement2 - JLS23


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement2 - JLS23
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2 - JLS23() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1: return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12: return;
        }
    }
}

Differs at pos 97: ase 1:^ retur
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (x) {
        case 1:
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
            return;
        }
    }
}
 expected:<...x) {
        case 1:[
            return;
        default:
        }
        switch (i) {
        case 11:
            return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:
           ] return;
        }
 ...> but was:<...x) {
        case 1:[ return;
        default:
        }
        switch (i) {
        case 11: return;
        case 10:
            i= 2;
            break;
        default:
            i= 3;
        case 12:] return;
        }
 ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement2(ASTRewritingStatementsTest.java:3825)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement3 - JLS14 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3(ASTRewritingStatementsTest.java:3897)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3 - JLS14()
SETUP testSwitchStatement3 - JLS14


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement3 - JLS14
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3 - JLS14() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3(ASTRewritingStatementsTest.java:3897)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement3 - JLS15 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3(ASTRewritingStatementsTest.java:3897)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3 - JLS15()
SETUP testSwitchStatement3 - JLS15


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement3 - JLS15
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3 - JLS15() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3(ASTRewritingStatementsTest.java:3897)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement3 - JLS16 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3(ASTRewritingStatementsTest.java:3897)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:51 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3 - JLS16()
SETUP testSwitchStatement3 - JLS16


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement3 - JLS16
[2024-12-14 06:45:52 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3 - JLS16() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3(ASTRewritingStatementsTest.java:3897)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement3 - JLS17 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3(ASTRewritingStatementsTest.java:3897)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:52 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3 - JLS17()
SETUP testSwitchStatement3 - JLS17


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement3 - JLS17
[2024-12-14 06:45:52 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3 - JLS17() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3(ASTRewritingStatementsTest.java:3897)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)

Check warning on line 0 in org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

testSwitchStatement3 - JLS18 (org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest) failed

artifacts/test-results-linux/org.eclipse.jdt.core.tests.model/target/surefire-reports/TEST-org.eclipse.jdt.core.tests.RunAllJdtModelTestsTracing.xml [took 0s]
Raw output
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
junit.framework.ComparisonFailure: 
Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3(ASTRewritingStatementsTest.java:3897)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[2024-12-14 06:45:52 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3 - JLS18()
SETUP testSwitchStatement3 - JLS18


Aborted waitForSnapShot() because running with the workspace rule


TEARDOWN testSwitchStatement3 - JLS18
[2024-12-14 06:45:52 +0000] org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3 - JLS18() failed:
junit.framework.ComparisonFailure: Content not as expected: is
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
        break;
        case 2:
            i= 2;
            break;
        }
    }
}

Differs at pos 124:       ^break;
expected:
package test1;
public class E {
    public void foo(int i) {
        switch (i) {
        case 1:
            i= 1;
            break;
        case 2:
            i= 2;
            break;
        }
    }
}
 expected:<...      i= 1;
        [    ]break;
        case ...> but was:<...      i= 1;
        []break;
        case ...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.TestCase.assertEquals(TestCase.java:253)
	at org.eclipse.jdt.core.tests.rewrite.describing.StringAsserts.assertEqualString(StringAsserts.java:69)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingTest.assertEqualString(ASTRewritingTest.java:379)
	at org.eclipse.jdt.core.tests.rewrite.describing.ASTRewritingStatementsTest.testSwitchStatement3(ASTRewritingStatementsTest.java:3897)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:970)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.eclipse.test.TracingSuite.runChild(TracingSuite.java:287)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.start(HeadlessTestApplication.java:29)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1454)