org.junit.gen5.commons.util.PreconditionViolationException: No TestIdentifier with unique ID [[engine:demo]/[engine:demo]/[container:1]] has been added to this TestPlan.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by mfulton26
, 1 year ago
No TestIdentifier with unique ID [[engine:demo]/[engine:demo]/[container:1]] has been added to this TestPlan.
org.junit.gen5.commons.util.PreconditionViolationException: No TestIdentifier with unique ID [[engine:demo]/[engine:demo]/[container:1]] has been added to this TestPlan.
at org.junit.gen5.commons.util.Preconditions.condition(Preconditions.java:161)
at org.junit.gen5.launcher.TestPlan.getTestIdentifier(TestPlan.java:162)
at org.junit.gen5.junit4.runner.JUnit5TestTree.addDynamicDescription(JUnit5TestTree.java:61)
at org.junit.gen5.junit4.runner.JUnit5RunnerListener.dynamicTestRegistered(JUnit5RunnerListener.java:41)
at org.junit.gen5.launcher.main.TestExecutionListenerRegistry$CompositeTestExecutionListener.lambda$dynamicTestRegistered$22(TestExecutionListenerRegistry.java:48)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.junit.gen5.launcher.main.TestExecutionListenerRegistry.notifyTestExecutionListeners(TestExecutionListenerRegistry.java:37)
at org.junit.gen5.launcher.main.TestExecutionListenerRegistry.access$100(TestExecutionListenerRegistry.java:26)
at org.junit.gen5.launcher.main.TestExecutionListenerRegistry$CompositeTestExecutionListener.dynamicTestRegistered(TestExecutionListenerRegistry.java:48)
at org.junit.gen5.launcher.main.ExecutionListenerAdapter.dynamicTestRegistered(ExecutionListenerAdapter.java:41)
at undefined.DemoTestEngine.execute(DemoTestEngine.java:32)
at org.junit.gen5.launcher.main.DefaultLauncher.execute(DefaultLauncher.java:124)
at org.junit.gen5.launcher.main.DefaultLauncher.execute(DefaultLauncher.java:84)
at org.junit.gen5.junit4.runner.JUnit5.run(JUnit5.java:107)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
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:497)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.