?????????????????е???????setUp() -> test() -> tearDown()

??????JUnit????У???????ò??????TestSuite????????????????????????TestSuite???????????????ExampleTest1??ExampleTest2??????????

?????????TestRunner????ExampleTestSuite???????????ExampleTest1??ExampleTest2?е??????????????С?

????Android/OPhone??????JUnit???к????????????????????????OPhone??y??в???????????????JUnit??????????????????磬??TestCase??г??????ε??????

????????OPhone?????????????????????AndroidTestCase??ActivityInstrumentationTestCase2??ActivityUnitTestCase??

?????????API???????ο?Android SDK?е??????

?????塢Android/OPhone??????????

????Android/OPhone????????????????????Android/OPhone??????????????????????????????

???????????OPhone SDK?????Snake??y??в??????OPhone???????????

???????????????????á?

?????? ??Eclipse??Navigator???????New -> OPhone Project??

?????? ??Contents???????Create project from existing source???????Browse??????????????????????Snake?????????????????У???OPhone SDK???????platforms/android-1.5/samples/apkophoneapps/Snake???£???????????

?????? ???Finish

?????????????????????????????-?????????μ?ADT?п???????????Android Test Project????

?????? ??Eclipse??Navigator???????New -> OPhone Project??

?????? ??Contents???????Create new project in workspace??

?????? Project name??SnakeUnitTest??

?????? Properties????Package name??oms.unittest.snake??

?????? Create Activity?????????????????С?

?????? ????Finish??