资 源 简 介
Introduction
Motific is a Mobile Testing Framework for J2ME developers. Motific makes writing tests simple.
Motific contains a unit testing framework and a generic acceptance testing framework as well. The AT framework enables developers to write AT scripts to run against any canvas based MIDP application without having to rewrite the application around the framework. That is the plan anyway...
Motific unit tests are designed to make writing test cases trivial. The developer only writes the test cases themselves and the motific framework provides the glue-code to run those tests.
Writing Unit tests
For details, see the unit testing usage page
```
import net.recursv.motific.TestSuite;
public class PassingTestSuite extends TestSuite {
public void testIntegerEquality() {
assertEquals(2, 2);
}
public void testStringEquality() {
assertEquals("here", "here");
}