Skip to content

Java CI

Java CI #96

GitHub Actions / JUnit Test Report failed May 29, 2024 in 0s

24 tests run, 23 passed, 0 skipped, 1 failed.

Annotations

Check failure on line 1 in josm/plugins/MapRoulette/src/test/unit/org/openstreetmap/josm/plugins/maproulette/gui/TaskListPanelTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

TaskListPanelTest.testDuplicateKeyIssue()

org.opentest4j.AssertionFailedError: Unexpected JOptionPane message string: Please log in to OpenStreetMap in JOSM
org.opentest4j.AssertionFailedError: Unexpected JOptionPane message string: Please log in to OpenStreetMap in JOSM
	at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:38)
	at org.junit.jupiter.api.Assertions.fail(Assertions.java:138)
	at org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker.getMockResultForMessage(JOptionPaneSimpleMocker.java:128)
	at org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker.showMessageDialog(JOptionPaneSimpleMocker.java:229)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at mockit.internal.reflection.MethodReflection.invokeWithCheckedThrows(MethodReflection.java:123)
	at mockit.internal.reflection.MethodReflection.invokeWithCheckedThrows(MethodReflection.java:28)
	at mockit.internal.faking.FakeMethodBridge.executeSimpleFakeMethod(FakeMethodBridge.java:72)
	at mockit.internal.faking.FakeMethodBridge.callFake(FakeMethodBridge.java:49)
	at mockit.internal.faking.FakeMethodBridge.invoke(FakeMethodBridge.java:38)
	at java.desktop/javax.swing.JOptionPane.showMessageDialog(JOptionPane.java)
	at java.desktop/javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:647)
	at org.openstreetmap.josm.gui.ConditionalOptionPaneUtil.showMessageDialog(ConditionalOptionPaneUtil.java:206)
	at org.openstreetmap.josm.plugins.maproulette.actions.downloadtasks.MapRouletteDownloadTaskBox$DownloadTask.lambda$realRun$1(MapRouletteDownloadTaskBox.java:103)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Raw output
org.opentest4j.AssertionFailedError: org.opentest4j.AssertionFailedError: Unexpected JOptionPane message string: Please log in to OpenStreetMap in JOSM
org.opentest4j.AssertionFailedError: Unexpected JOptionPane message string: Please log in to OpenStreetMap in JOSM
	at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:38)
	at org.junit.jupiter.api.Assertions.fail(Assertions.java:138)
	at org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker.getMockResultForMessage(JOptionPaneSimpleMocker.java:128)
	at org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker.showMessageDialog(JOptionPaneSimpleMocker.java:229)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at mockit.internal.reflection.MethodReflection.invokeWithCheckedThrows(MethodReflection.java:123)
	at mockit.internal.reflection.MethodReflection.invokeWithCheckedThrows(MethodReflection.java:28)
	at mockit.internal.faking.FakeMethodBridge.executeSimpleFakeMethod(FakeMethodBridge.java:72)
	at mockit.internal.faking.FakeMethodBridge.callFake(FakeMethodBridge.java:49)
	at mockit.internal.faking.FakeMethodBridge.invoke(FakeMethodBridge.java:38)
	at java.desktop/javax.swing.JOptionPane.showMessageDialog(JOptionPane.java)
	at java.desktop/javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:647)
	at org.openstreetmap.josm.gui.ConditionalOptionPaneUtil.showMessageDialog(ConditionalOptionPaneUtil.java:206)
	at org.openstreetmap.josm.plugins.maproulette.actions.downloadtasks.MapRouletteDownloadTaskBox$DownloadTask.lambda$realRun$1(MapRouletteDownloadTaskBox.java:103)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

	at org.openstreetmap.josm.plugins.maproulette.util.LoggingHandler$LoggingHandlerImplementation.lambda$afterEach$3(LoggingHandler.java:69)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
	at org.openstreetmap.josm.plugins.maproulette.util.LoggingHandler$LoggingHandlerImplementation.afterEach(LoggingHandler.java:67)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)