Latest News
|
July 11, 2006 Sony Ericsson Mobile JUnit 1.0 for Java ME CLDC phones |
[Back] |
|
|
Mobile JUnit is a unit testing framework from Sony Ericsson, intended for Java ME CLDC mobile phones, built on the popular, open source JUnit framework. The new Mobile JUnit and the Java ME, CLDC Developers' Guidelines are now available for download here>>
Unit testing aims to break down large systems into small parts and test each part to ensure correct behavior. Each part has a number of test cases, often contained as a wider umbrella test suite. Each test case essentially provides a rule that the code must adhere to.
Automated unit testing provides a number of benefits:
- Reduced debugging
Unit testing is very granular and can isolate a problem quickly.
- Safe refactoring
As different parts of the system change, unit testing makes it easy to automatically ensure other areas are not adversely effected.
- Repeatability
Since the tests are automated and governed by test cases, repeating test conditions is simplified.
- Simplified integration
Unit testing can test individual parts and all the parts together making integration testing easier.
- Documentation
Unit testing provides useful API examples through the test cases.
JUnit framework extended to CLDC platform The benefits of automated JUnit testing are usually applicable to Java EE, SE and Java ME, CDC platforms. By extending the JUnit framework, Mobile JUnit allows automated unit testing to be introduced to CLDC devices, such as mobile phones. In a typical scenario a server based application might have extensive test cases where the mobile client relies on function testing alone. Network latency, connection quality or implementation details may adversely affect the quality of testing leading to a poor user experience.
Mobile JUnit provides support for both emulator and on-device testing enabling. No manual uploading of MIDlets or manually inspecting test results is needed.
Mobile JUnit primarily supports Sony Ericsson phones, but most Wireless Toolkit emulated devices will also be able to run Mobile JUnit.
More information:
|