apigee/usergrid-stack — pull request #82 by realbeast (2013-04-03 07:18:37+00:00)
Title: New feature Query-Validator tools

I think many mobile developers are expecting query results like sqlite.
So, I made query validator module.

# How to works

1. Load test datas
2. Initialization
- sqlite ( create tables, insert entities )
- backend API ( create entities )
3. Query(sqlite, api)

# Running
```bash
$ mvn clean test

QueryValidationTest.sexEqualAndAgeGreaterthanequalOrSexEqual_sortNameDesc:269
--------------------
* Expected
list size : 4
Entity({created=1364972007605, modified=1364972007605, type=user, address=서울시 동작구 신대방2동, age=37, name=xgurunet, sex=male, username=xgurunet})
Entity({created=1364972007605, modified=1364972007605, type=user, address=인천광역시 어디쯤, age=9, name=tfyr, sex=female, username=tfyr})
Entity({created=1364972007605, modified=1364972007605, type=user, address=서울시 어딘가, age=38, name=dhrim, sex=male, username=dhrim})
Entity({created=1364972007605, modified=1364972007605, type=user, address=서울시 어디인가, age=14, name=curioe, sex=female, username=curioe})

* Actually
list size : 3
Entity({created=1364971606431, modified=1364971606431, type=user, uuid=40cd93be-9c2a-11e2-9593-02e81adcf3d0, activated=true, address=인천광역시 어디쯤, age=9, metadata=, name=tfyr, sex=female, username=tfyr})
Entity({created=1364971605292, modified=1364971605292, type=user, uuid=401fc6df-9c2a-11e2-ae31-02e81ac5a17b, activated=true, address=서울시 어딘가, age=38, metadata=, name=dhrim, sex=male, username=dhrim})
Entity({created=1364971606154, modified=1364971606154, type=user, uuid=40a34f6d-9c2a-11e2-a098-02e81af1fea1, activated=true, address=서울시 어디인가, age=14, metadata=, name=curioe, sex=female, username=curioe})
--------------------

Tests run: 24, Failures: 8, Errors: 0, Skipped: 0
```

# Roadmap
* Integrate local server
* Improve initialization