Hello Ikai L(Google)!
Thank you!
In the demo:
http://code.google.com/appengine/docs/java/tools/localunittesting.html
I have a idea about the JUnit4 testcase!
defined a Basic TestCase:
public class *GAETestCase* {
protected final LocalServiceTestHelper gaeHelper = new
LocalServiceTestHelper(new LocalDatastoreServiceTestConfig());
@Before
public *final* void *setUpForGAEEvn*() throws Exception {
gaeHelper.setUp();
}
@After
public *final* void *tearDownForGAEEvn*() throws Exception {
gaeHelper.tearDown();
}
}
public class OtherTestCase extends *GAETestCase* {
……
@Test
public void myTest() {
……
}
}
the another testcase OtherTestCase extends GAETestCase,
so It's will never forget invoke the *LocalServiceTestHelper.setUp* and *
LocalServiceTestHelper.tearDown* method!
(Krishna Caldas <[email protected]> forgot to invoke *
LocalServiceTestHelper.setUp and **LocalServiceTestHelper.tearDown*,others
may be will forget invoke it!)
在 2010年2月11日 上午8:25,Ikai L (Google) <[email protected]>写道:
> We've got a more simple interface for you now. Take a look:
>
> http://code.google.com/appengine/docs/java/tools/localunittesting.html
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.