Introductory workshop to programming with Greenfoot and Alice. Greenfoot and Alice are visual educational tools for learning the basics of Java programming and problem solving skills. In this workshop, students used only drag and drop functions to create their animations.
A tutorial about testing REST-ful services. Tests for both tools can be written in JUnit, which means these tests can be part of your normal automated unit tests.
- REST-assured, a framework that offers a DSL-like syntax to create well readable tests.
- Jersey-Test-Framework which offers a execution environment and is built upon the JAX-RS reference implementation, Jersey.
In the tutorial you will create a simple SOAP service and then implement integration tests for this service using both frameworks.
In Eclipse I missed a way to see the relation between a test class and the class under test. Well, the MoreUnit plugin relates the two and offers tools to help you switch between code of the test and the tested class. From the site:
- MoreUnit decorates classes which have a test case.
- It marks methods in the editor which are under test.
- You can jump to a test case/test method in the editor via the menu or a shortcut (Ctrl-J by default).
- You can run a test case/test method from the class under test via the menu or a shortcut (Ctrl-R by default).
- Rename classes/methods and MoreUnit will rename the corresponding test code too.
- Move classes and MoreUnit will move the corresponding test cases.
- You can generate a test method stub for the method under the cursor in the editor via the menu or a shortcut.
All useful features to help writing and managing the unit tests of your Java classes. You do write unit tests, do you?
For a Java program that can be run from the command line I used the Maven Assembly plugin to generate a JAR file with all dependencies included.
Although the build was successful, running the software generated a NoClassDefFoundError, caused somewhere in Axis. After a lot of time I finally found some information about the existence of two Axis artifacts in the central Maven repository. Axis 1.4 is available under groupid axis and org.apache.axis.
The POM file of the axis:axis:1.4 artifact includes a number of runtime dependencies, which are not included in the other. Since I used the incomplete version the resulting JAR missed some necessary classes.
So if you use Axis 1.4, define a dependency on the axis:axis:1.4 artifact, not org.apache.axis:axis:1.4.