HA4 fázis során, miután a modelleket elkészítettem és a teszt interfészeket legeneráltam, létrehoztam a teszt implementációkat. Az osztályokat elláttam a @GraphWalker annotációval, illetve a többi paraméterrel (stopcondition, start,stb..)
A problémám az lenne, hogy miután mindezt végrehajtottam, az "mvn graphwalker:test" parancs futtatása sehogy sem tud hiba nélkül lefutni.
(A modelleket leteszteltem a graphwalkerrel, offline pathokat is generáltam már)
Mindig ez a hiba fogad:
23:52:13.756 [main] ERROR o.g.j.factory.StopConditionFactory - org.graphwalker.core.condition.TimeDuration.(java.lang.String)
23:52:13.759 [main] ERROR o.g.j.factory.StopConditionFactory - org.graphwalker.core.condition.TimeDuration.(long)
23:52:13.759 [main] ERROR o.g.j.factory.StopConditionFactory - org.graphwalker.core.condition.TimeDuration.(int)
23:52:13.759 [main] ERROR o.g.j.factory.StopConditionFactory - org.graphwalker.core.condition.TimeDuration.(double)
23:52:13.759 [main] ERROR o.g.j.factory.StopConditionFactory - org.graphwalker.core.condition.TimeDuration.(float)
23:52:13.759 [main] ERROR o.g.j.factory.PathGeneratorFactory - null
[ERROR] null
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.544 s
[INFO] Finished at: 2017-11-26T23:52:13+01:00
[INFO] Final Memory: 47M/729M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.graphwalker:graphwalker-maven-plugin:3.4.2:test (default-cli) on project swsv-ris: Execution default-cli of goal org.graphwalker:graphwalker-maven-plugin:3.4.2:test failed: java.lang.reflect.InvocationTargetException: org.graphwalker.java.test.TestExecutionException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Mi lehet a hiba?
Köszönöm a válaszokat előre is!
Update:
A teszt osztályok fejlécei:
@GraphWalker(start = "sendRandomValidHeartBeat", pathGenerator = RandomPath.class, stopCondition = TimeDuration.class, stopConditionValue = "10")
@GraphWalker(start = "sendStatusWithExistingNeighbors", pathGenerator = RandomPath.class, stopCondition = TimeDuration.class, stopConditionValue = "10")
@GraphWalker(start = "startHeartBeat_invoked", pathGenerator = RandomPath.class, stopCondition = TimeDuration.class, stopConditionValue = "10")
@GraphWalker(start = "init", pathGenerator = RandomPath.class, stopCondition = VertexCoverage.class, stopConditionValue = "100")