use of ai.grakn.concept.Concept in project grakn by graknlabs.
the class QueryErrorTest method testGetNonExistentVariable.
@Test
public void testGetNonExistentVariable() {
Match match = qb.match(var("x").isa("movie"));
Stream<Concept> concepts = match.get("y");
exception.expect(GraqlQueryException.class);
exception.expectMessage(ErrorMessage.VARIABLE_NOT_IN_QUERY.getMessage(Graql.var("y")));
// noinspection ResultOfMethodCallIgnored
concepts.count();
}
Aggregations