Skip to content

Regression

de.dim.diamant.service.tests.AssetServiceIntegrationTest.testUpdateOwner_NoParticipant (from test.de.dim.diamant.service.tests)

Failing for the past 1 build (Since Failed#76 )
Took 0.6 sec.

Error Message

 Wanted but not invoked: eventAdmin.postEvent(<any>); -> at de.dim.diamant.service.tests.AssetServiceIntegrationTest.testUpdateOwner_NoParticipant(AssetServiceIntegrationTest.java:703)  However, there were other interactions with this mock: eventAdmin.sendEvent(     org.osgi.service.event.Event [topic=asset/modification] {type=Asset, new=de.dim.diamant.impl.ProductImpl@22680f52 (id: asset1, inactive: false, creatorId: myCreator, ownerId: test) (description: null, type: CLASS_1, expirationDate: null, lot: null, serialNumber: null, rawUDI: null, articleNumberRef: null, vendor: null), current=de.dim.diamant.impl.ProductImpl@60d84f61 (id: asset1, inactive: false, creatorId: myCreator, ownerId: myCreator) (description: null, type: CLASS_1, expirationDate: null, lot: null, serialNumber: null, rawUDI: null, articleNumberRef: null, vendor: null)} ); -> at de.dim.diamant.service.impl.AssetServiceImpl.sendAssetModification(AssetServiceImpl.java:228)  

Stacktrace

Wanted but not invoked:
eventAdmin.postEvent(<any>);
-> at de.dim.diamant.service.tests.AssetServiceIntegrationTest.testUpdateOwner_NoParticipant(AssetServiceIntegrationTest.java:703)

However, there were other interactions with this mock:
eventAdmin.sendEvent(
    org.osgi.service.event.Event [topic=asset/modification] {type=Asset, new=de.dim.diamant.impl.ProductImpl@22680f52 (id: asset1, inactive: false, creatorId: myCreator, ownerId: test) (description: null, type: CLASS_1, expirationDate: null, lot: null, serialNumber: null, rawUDI: null, articleNumberRef: null, vendor: null), current=de.dim.diamant.impl.ProductImpl@60d84f61 (id: asset1, inactive: false, creatorId: myCreator, ownerId: myCreator) (description: null, type: CLASS_1, expirationDate: null, lot: null, serialNumber: null, rawUDI: null, articleNumberRef: null, vendor: null)}
);
-> at de.dim.diamant.service.impl.AssetServiceImpl.sendAssetModification(AssetServiceImpl.java:228)


 at de.dim.diamant.service.tests.AssetServiceIntegrationTest.testUpdateOwner_NoParticipant(AssetServiceIntegrationTest.java:703)
 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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
 at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
 at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
 at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37)
 at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62)
 at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38)
 at junit.framework.TestSuite.runTest(TestSuite.java:252)
 at junit.framework.TestSuite.run(TestSuite.java:247)
 at aQute.junit.Activator.test(Activator.java:340)
 at aQute.junit.Activator.automatic(Activator.java:236)
 at aQute.junit.Activator.run(Activator.java:177)
 at aQute.launcher.Launcher.lambda$serviceChanged$0(Launcher.java:1377)
 at aQute.launcher.Launcher.run(Launcher.java:349)
 at aQute.launcher.Launcher.main(Launcher.java:149)