没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > nutestworld |
nutestworld
|
0 | 0 | 2 |
贡献者 | 讨论 | 代码提交 |
NUTestWorldWorld LibrariesThe collection of World libraries replicates the functionality of corresponding libraries in ProfessorJ environment, supporting the design of programs that include simple drawings and interactive animations and games. An additional library allows the programmer to publish the drawing, animation, or a game as a Java applet.
ProfessorJ programmers can use the World libraries without changing the program (other than adding public visibility modifiers in a few places).
The Test HarnessThe tester library provides a test harness that supports a comparison of two instances of a class based on the values of the data (extensional equality), in contrast to the reference equality (intensional equality) that is provided by default through the Java equals method and is used by the JUnit framework.
The test harness reports the number of tests performed, the number failed, provides a report on all failed tests with a reference to the test that failed as well as a display of the actual and expected values. Additionally, it also supports the conversion of any object to a representation as a well-formatted String. The test report includes a display of all data defined in the class that invoked the tests.
Converting from ProfessorJ to JavaThe conversion of the test cases from ProfessorJ to full Java requires mostly syntactical translation. We include a description of the transition from ProfessorJ style of test design to the one supported by the tester library.
To ease this transition from ProfessorJ to full Java language, we provide a simple set of conversion programs (targeted for the Eclipse, NetBeans, command line, and BlueJ programming environments).