junit.framework.ComparisonFailure

Content not as expected: is package test; public class E<T> { private final String s; private T t; private T t2; void setT(T t) { this.t = t; } } Differs at pos 92: ivate ^T t2; expected: package test; public class E<T> { private final String s; private T t; private final T t2; void setT(T t) { this.t = t; } } expected:<...final ...> but was:<......>

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web801

  • via harmony-alerts by nomail@intel.com, 11 months ago
    Content not as expected: is package test; public class E<T> { private final String s; private T t; private T t2; void setT(T t) { this.t = t; } } Differs at pos 92: ivate ^T t2; expected: package test; public class
  • via apache.org by Unknown author, 1 year ago
    Content not as expected: is package test; public class E<T> { private final String s; private T t; private T t2; void setT(T t) { this.t = t; } } Differs at pos 92: ivate ^T t2; expected: package test; public class
  • expected:<...t> but was:<...>
  • Stack trace

    • junit.framework.ComparisonFailure: Content not as expected: is package test; public class E<T> { private final String s; private T t; private T t2; void setT(T t) { this.t = t; } } Differs at pos 92: ivate ^T t2; expected: package test; public class E<T> { private final String s; private T t; private final T t2; void setT(T t) { this.t = t; } } expected:<...final ...> but was:<......> at org.eclipse.jdt.testplugin.StringAsserts.assertEqualString(StringAsserts.java:72) at org.eclipse.jdt.testplugin.StringAsserts.assertEqualStringsIgnoreOrder(StringAsserts.java:124) at org.eclipse.jdt.ui.tests.quickfix.QuickFixTest.assertEqualStringsIgnoreOrder(QuickFixTest.java:132) at org.eclipse.jdt.ui.tests.quickfix.CleanUpTest.assertRefactoringResultAsExpected(CleanUpTest.java:203) at org.eclipse.jdt.ui.tests.quickfix.CleanUpTest.testAddFinalBug134676_2(CleanUpTest.java:5252) at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:330) at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:204) at org.eclipse.test.UITestApplication$3.run(UITestApplication.java:188) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3141) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2843) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:131) at org.eclipse.test.UITestApplication.run(UITestApplication.java:58) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:396) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) at org.apache.harmony.vm.JarRunner.main(JarRunner.java:80)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.