org.specs.specification.PathException: TreePath(List(0, 0, 2))not found for test last time

Google Groups | Michael Matczynski | 3 years ago
  1. 0

    Mockito causes org.specs.specification.PathException in certain cases

    Google Groups | 3 years ago | Michael Matczynski
    org.specs.specification.PathException: TreePath(List(0, 0, 2))not found for test last time
  2. 0

    Setup for Specs suite - org.specs.specification.PathException

    Google Groups | 6 years ago | Gregg Carrier
    org.specs.specification.PathException: TreePath(List(0, 1, 1))not found for example 2

    Root Cause Analysis

    1. org.specs.specification.PathException

      TreePath(List(0, 0, 2))not found for test last time

      at org.specs.specification.SpecificationExecutor$class.executeExample()
    2. ${project.artifactId}
      ExampleLifeCycle$$anonfun$executeExample$1.apply
      1. org.specs.specification.SpecificationExecutor$class.executeExample(SpecificationExecutor.scala:51)
      2. org.specs.specification.BaseSpecification.executeExample(BaseSpecification.scala:58)
      3. org.specs.specification.BaseSpecification.executeExample(BaseSpecification.scala:58)
      4. org.specs.specification.ExampleLifeCycle$$anonfun$executeExample$1.apply(ExampleLifeCycle.scala:125)
      5. org.specs.specification.ExampleLifeCycle$$anonfun$executeExample$1.apply(ExampleLifeCycle.scala:125)
      5 frames
    3. Scala
      Option.map
      1. scala.Option.map(Option.scala:133)
      1 frame
    4. ${project.artifactId}
      Examples$$anonfun$executeExamples$2.apply
      1. org.specs.specification.ExampleLifeCycle$class.executeExample(ExampleLifeCycle.scala:125)
      2. org.specs.specification.Examples.executeExample(Examples.scala:52)
      3. org.specs.specification.Examples.executeExample(Examples.scala:52)
      4. org.specs.specification.Examples$$anonfun$executeExamples$2.apply(Examples.scala:80)
      5. org.specs.specification.Examples$$anonfun$executeExamples$2.apply(Examples.scala:80)
      5 frames
    5. Scala
      Option.map
      1. scala.Option.map(Option.scala:133)
      1 frame
    6. ${project.artifactId}
      ExampleTestCase.run
      1. org.specs.specification.Examples.executeExamples(Examples.scala:80)
      2. org.specs.specification.ExampleStructure$class.ownSkipped(ExampleStructure.scala:60)
      3. org.specs.specification.Examples.ownSkipped(Examples.scala:52)
      4. org.specs.runner.ExampleTestCase.run(JUnit.scala:205)
      4 frames
    7. JUnit
      TestSuite.run
      1. junit.framework.TestSuite.runTest(TestSuite.java:243)
      2. junit.framework.TestSuite.run(TestSuite.java:238)
      2 frames
    8. ${project.artifactId}
      ExamplesTestSuite.run
      1. org.specs.runner.JUnitSuite$class.run(JUnit.scala:62)
      2. org.specs.runner.ExamplesTestSuite.run(JUnit.scala:167)
      2 frames
    9. JUnit
      TestSuite.run
      1. junit.framework.TestSuite.runTest(TestSuite.java:243)
      2. junit.framework.TestSuite.run(TestSuite.java:238)
      2 frames
    10. ${project.artifactId}
      JUnitSuiteRunner.run
      1. org.specs.runner.JUnitSuite$class.run(JUnit.scala:62)
      2. org.specs.SpecificationWithJUnit.run(SpecificationWithJUnit.scala:29)
      3. org.specs.runner.JUnitSuiteRunner.run(JUnitSuiteRunner.scala:45)
      3 frames
    11. JUnit
      JUnitCore.run
      1. org.junit.runner.JUnitCore.run(JUnitCore.java:157)
      1 frame
    12. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
      1 frame
    13. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:202)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:65)
      2 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    15. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
      1 frame