| // Get the model from resources |
| ModelFactory factory = new GraphMLModelFactory(); |
| Model model = factory.create("Amazon", "/models/ShoppingCart.graphml"); |
|
|
| GraphWalker graphWalker = new GraphWalker(); |
| graphWalker.addModel(model, new AStarPath(new EdgeCoverage(100)), "JavaScript", new Amazon()); |
|
|
| // Start executing the test |
Results :
Failed tests:
SimpleMachineTest.executeActionWithVariableNameContext:372
Expected: is <true>
but: was <false>
Tests in error:
SimpleMachineTest.executeActionWithFunction:388 ClassCast java.lang.Integer ca...
Tests run: 225, Failures: 1, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GraphWalker Project ................................ SUCCESS [ 4.373 s]
[INFO] GraphWalker Core ................................... FAILURE [ 16.967 s]
[INFO] GraphWalker Domain-Specific Language ............... SKIPPED
[INFO] GraphWalker Input/Output ........................... SKIPPED
[INFO] GraphWalker Java ................................... SKIPPED
[INFO] GraphWalker Maven Plugin ........................... SKIPPED
[INFO] GraphWalker Restful Service ........................ SKIPPED
[INFO] GraphWalker Checker ................................ SKIPPED
[INFO] GraphWalker WebSocket Service ...................... SKIPPED
[INFO] GraphWalker Maven Archetype ........................ SKIPPED
[INFO] GraphWalker Command Line Interface ................. SKIPPED
[INFO] GraphWalker Studio ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.836 s
[INFO] Finished at: 2017-07-14T14:22:30-04:00
[INFO] Final Memory: 19M/218M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project graphwalker-core: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/Chatarina/Documents/Fraunhofer2017/graphwalker-project/graphwalker-core/target/surefire-reports for the individual test results.
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :graphwalker-core
mvn package -pl graphwalker-studio -am
[INFO] Scanning for projects...
[ERROR] [ERROR] Could not find the selected project in the reactor: graphwalker-studio @
[ERROR] Could not find the selected project in the reactor: graphwalker-studio -> [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/MavenExecutionException
Chatarinas-MBP:graphwalker-studio Chatarina$ mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GraphWalker Studio 4.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.graphwalker:graphwalker-websocket:jar:4.0.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.096 s
[INFO] Finished at: 2017-07-14T16:44:06-04:00
[INFO] Final Memory: 9M/65M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project graphwalker-studio: Could not resolve dependencies for project org.graphwalker:graphwalker-studio:jar:4.0.0-SNAPSHOT: Could not find artifact org.graphwalker:graphwalker-websocket:jar:4.0.0-SNAPSHOT -> [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:
<repositories>
<repository>
<releases>
<enabled>false</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<layout>default</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
Your on project.
That is interesting!
Are you running JDK 8?
Could you run:
mvn -version
and paste the results here?
--
You received this message because you are subscribed to the Google Groups "GraphWalker 3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graphwalker-...@googlegroups.com.
To post to this group, send email to graphw...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/graphwalker-3/7124ed9a-7ede-4a78-9eed-ce33591da50a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Executor executor = new TestExecutor(Model_1.class,
Model_2.class);
WebSocketServer server = new WebSocketServer(8887, executor.getMachine());
server.start();
Result result = executor.execute(true);
I appreciate you taking out the time to make the video, it has been useful.
I am able to recreate the example in the video on my machine.I noticed that you are running the petclinic Spring project before launching the test.
Does the application have to be hosted locally for the graphwalker-studio visualizations to work?