use of org.apache.jena.sparql.sse.Item in project jena by apache.
the class TestResultSetThrift method make.
private static ResultSetRewindable make(String... strings) {
String s = StrUtils.strjoinNL(strings);
Item item = SSE.parse(s);
ResultSetRewindable rs = ResultSetFactory.makeRewindable(BuilderResultSet.build(item));
return rs;
}
use of org.apache.jena.sparql.sse.Item in project jena by apache.
the class TestSSE_Basic method testNum_03.
@Test
public void testNum_03() {
// Exact double
Item item = SSE.parse("2.5");
assertEquals(2.5d, item.getDouble(), 0);
}
use of org.apache.jena.sparql.sse.Item in project jena by apache.
the class TestSSE_Basic method testNum_05.
@Test
public void testNum_05() {
Item item = SSE.parse("<x>");
try {
item.getInt();
fail("Succeeded where exception expected");
} catch (ItemException ex) {
}
}
use of org.apache.jena.sparql.sse.Item in project jena by apache.
the class TestSSE_Basic method parseBad.
private void parseBad(String str) {
try {
Item item = SSE.parse(str);
//System.out.println(str+" => "+item) ;
fail("Did not get a parse failure");
} catch (ARQException ex) {
}
}
use of org.apache.jena.sparql.sse.Item in project jena by apache.
the class TestSSE_Basic method testSymbol.
private void testSymbol(String str) {
Item item = parse(str);
assertTrue(item.isSymbol());
assertEquals(item.getSymbol(), str);
}
Aggregations