Regression

tests.wurstscript.tests.ModelManagerTests.test

Schlägt fehl seit 1 Build (Seit #1314 )
Dauer: 0,9 Sekunden.

Fehlermeldung

java.lang.AssertionError: Sets differ: expected [/var/lib/jenkins/workspace/Wurst/de.peeeq.wurstscript/temp/testProject/wurst/B.wurst] but got [/var/lib/jenkins/workspace/Wurst/de.peeeq.wurstscript/temp/testProject/wurst/A.wurst, /var/lib/jenkins/workspace/Wurst/de.peeeq.wurstscript/temp/testProject/wurst/B.wurst]

Stacktrace

java.lang.AssertionError: Sets differ: expected [/var/lib/jenkins/workspace/Wurst/de.peeeq.wurstscript/temp/testProject/wurst/B.wurst] but got [/var/lib/jenkins/workspace/Wurst/de.peeeq.wurstscript/temp/testProject/wurst/A.wurst, /var/lib/jenkins/workspace/Wurst/de.peeeq.wurstscript/temp/testProject/wurst/B.wurst]
	at org.testng.Assert.fail(Assert.java:96)
	at org.testng.Assert.assertEquals(Assert.java:1042)
	at org.testng.Assert.assertEquals(Assert.java:1020)
	at tests.wurstscript.tests.ModelManagerTests.test(ModelManagerTests.java:95)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
	at org.testng.TestRunner.privateRun(TestRunner.java:648)
	at org.testng.TestRunner.run(TestRunner.java:505)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
	at org.testng.TestNG.runSuites(TestNG.java:1049)
	at org.testng.TestNG.run(TestNG.java:1017)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:141)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:90)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy2.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:135)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
	at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
	at java.lang.Thread.run(Thread.java:748)

Standard Ausgabe (STDOUT)

construct()
    x = 7

   err: Diagnostic [
  range = Range [
    start = Position [
      line = 5
      character = 22
    ]
    end = Position [
      line = 5
      character = 27
    ]
  ]
  severity = Error
  code = null
  codeDescription = null
  source = "Wurst"
  message = "Function getXp does not override anything."
  tags = null
  relatedInformation = null
  data = null
]
   err: Diagnostic [
  range = Range [
    start = Position [
      line = 2
      character = 6
    ]
    end = Position [
      line = 2
      character = 16
    ]
  ]
  severity = Error
  code = null
  codeDescription = null
  source = "Wurst"
  message = "Non-abstract class CustomHero must implement the following functions:\n    function getXpOld() returns int"
  tags = null
  relatedInformation = null
  data = null
]
   err: Diagnostic [
  range = Range [
    start = Position [
      line = 3
      character = 4
    ]
    end = Position [
      line = 4
      character = 0
    ]
  ]
  severity = Error
  code = null
  codeDescription = null
  source = "Wurst"
  message = "Could not find type M."
  tags = null
  relatedInformation = null
  data = null
]
   err: Diagnostic [
  range = Range [
    start = Position [
      line = 3
      character = 10
    ]
    end = Position [
      line = 3
      character = 13
    ]
  ]
  severity = Error
  code = null
  codeDescription = null
  source = "Wurst"
  message = "Could not find function foo."
  tags = null
  relatedInformation = null
  data = null
]
   err: Diagnostic [
  range = Range [
    start = Position [
      line = 1
      character = 0
    ]
    end = Position [
      line = 2
      character = 0
    ]
  ]
  severity = Error
  code = null
  codeDescription = null
  source = "Wurst"
  message = "The import 'Test' could not be resolved.\nAvailable packages: "
  tags = null
  relatedInformation = null
  data = null
]
   err: Diagnostic [
  range = Range [
    start = Position [
      line = 4
      character = 1
    ]
    end = Position [
      line = 4
      character = 2
    ]
  ]
  severity = Error
  code = null
  codeDescription = null
  source = "Wurst"
  message = "Reference to function b could not be resolved."
  tags = null
  relatedInformation = null
  data = null
]
   err: Diagnostic [
  range = Range [
    start = Position [
      line = 5
      character = 1
    ]
    end = Position [
      line = 5
      character = 2
    ]
  ]
  severity = Error
  code = null
  codeDescription = null
  source = "Wurst"
  message = "Reference to function c could not be resolved."
  tags = null
  relatedInformation = null
  data = null
]
   err: Diagnostic [
  range = Range [
    start = Position [
      line = 1
      character = 0
    ]
    end = Position [
      line = 2
      character = 0
    ]
  ]
  severity = Warning
  code = null
  codeDescription = null
  source = "Wurst"
  message = "The import B is never used"
  tags = null
  relatedInformation = null
  data = null
]
   err: Diagnostic [
  range = Range [
    start = Position [
      line = 2
      character = 0
    ]
    end = Position [
      line = 3
      character = 0
    ]
  ]
  severity = Warning
  code = null
  codeDescription = null
  source = "Wurst"
  message = "The import C is never used"
  tags = null
  relatedInformation = null
  data = null
]
   err: Diagnostic [
  range = Range [
    start = Position [
      line = 3
      character = 1
    ]
    end = Position [
      line = 3
      character = 2
    ]
  ]
  severity = Error
  code = null
  codeDescription = null
  source = "Wurst"
  message = "Reference to function c could not be resolved."
  tags = null
  relatedInformation = null
  data = null
]
   err: Diagnostic [
  range = Range [
    start = Position [
      line = 1
      character = 0
    ]
    end = Position [
      line = 2
      character = 0
    ]
  ]
  severity = Warning
  code = null
  codeDescription = null
  source = "Wurst"
  message = "The import C is never used"
  tags = null
  relatedInformation = null
  data = null
]