test("Parse /Products?$select=Name"){ | |
val uri = "http://services.odata.org/OData.svc/Products?$select=Name,Price" | |
val actual = p.parseThis(mainParser,uri).get | |
val expectedAst = | |
ODataQuery( | |
URL("http://services.odata.org/OData.svc"), | |
ResourcePath("Products",EmptyExp(),EmptyExp()), | |
QueryOperations(List(Select(List(Property("Name"), Property("Price")))))) | |
assert(actual == expectedAst) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment