google-code-export / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
1 stars 0 forks source link

Query filter fails in Junit Test #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a User entity with id and email properties
2.ofy().query(User.class).filter("email", "test@test.com").list()

What is the expected output? What do you see instead?
Even it has a row to return, it will return zero rows

What version of the product are you using? On what operating system?
3.0

Create put and get are working fine from junit tests of app engine, but not the 
filter is working fine.

Original issue reported on code.google.com by ramesh.v...@gmail.com on 18 May 2012 at 2:12

GoogleCodeExporter commented 9 years ago
I have used a wrong LocalServiceTestHelper. And i fixed it by the below one
    private final LocalServiceTestHelper helper =
        new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig());

Original comment by ramesh.v...@gmail.com on 30 May 2012 at 12:47

GoogleCodeExporter commented 9 years ago
Thanks for the note - closing.

Original comment by lhori...@gmail.com on 30 May 2012 at 4:49