Search in sources :

Example 1 with PathParser

use of com.inova8.pathql.parser.PathParser in project com.inova8.intelligentgraph by peterjohnlawrence.

the class PathPatternTests method test_20.

/**
 * Test 20.
 */
@Test
@Order(20)
void test_20() {
    try {
        new PathParser();
        PathElement element = PathParser.parsePathPattern(repositoryContext, "(*){1, 2}/:massThroughput");
        assertEquals("*{1,2} / <http://default/massThroughput>", element.toString());
    } catch (Exception e) {
        assertEquals("", e.getMessage());
    }
}
Also used : PathElement(com.inova8.pathql.element.PathElement) PathParser(com.inova8.pathql.parser.PathParser) RecognitionException(org.antlr.v4.runtime.RecognitionException) TestMethodOrder(org.junit.jupiter.api.TestMethodOrder) Order(org.junit.jupiter.api.Order) Test(org.junit.jupiter.api.Test)

Aggregations

PathElement (com.inova8.pathql.element.PathElement)1 PathParser (com.inova8.pathql.parser.PathParser)1 RecognitionException (org.antlr.v4.runtime.RecognitionException)1 Order (org.junit.jupiter.api.Order)1 Test (org.junit.jupiter.api.Test)1 TestMethodOrder (org.junit.jupiter.api.TestMethodOrder)1