Can somebody help me please? On Fri, Apr 8, 2011 at 5:33 PM, Kayode Odeyemi <[email protected]> wrote:
> I am hoping David Chandler can help here as regards his post at > http://turbomanage.wordpress.com/2009/10/19/unit-testing-the-appengine-datastore-with-jdo/. > I have added aeftools.jar to my project classpath, but the test keeps > failing with the error: > > warning: FAILED: No tests found > junit.framework.AssertionFailedError > > Initially, I added just the 3 classes in > com.appenginefan.toolkit.unittests, as well as appengine-testing.jar to my > classpath, but the compiler keeps reporting a NoClassFound on > "com.google.appengine.tools.development.ApiProxyLocalImpl". > > Please I need help on this as I really can't query the datastore and > blobstore without a unit test. > > Here's my test class: > > public class UserEntityJDOTest extends BaseTest { > > > @Test > public void testFindUserByEmail(String email) { > > UserEntityDAOImpl userentityDAO = new UserEntityDAOImpl(); > email = "[email protected]"; > PersistenceManager manager = newPersistenceManager(); > // run a query > UserEntity expectedemail = manager.getObjectById(UserEntity.class, > email); > assertEquals(expectedemail, userentityDAO.findUserByEmail(email)); > manager.close(); > fail("The test case is a prototype."); > } > } > > Regards > -- > Odeyemi 'Kayode O. > http://www.sinati.com > > -- Odeyemi 'Kayode O. http://www.sinati.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en.
