use of com.amazon.ion.TextSpan in project ion-java by amzn.
the class TextSpanTest method expectNextSpan.
protected void expectNextSpan(int startLine, int startColumn) {
in.next();
Span s = sp.currentSpan();
TextSpan ts = Facets.assumeFacet(TextSpan.class, s);
checkSpan(startLine, startColumn, ts);
ts = currentSpan(TextSpan.class, in);
checkSpan(startLine, startColumn, ts);
}
use of com.amazon.ion.TextSpan in project ion-java by amzn.
the class SpansTest method testCurrentSpanFacet.
@Test
public void testCurrentSpanFacet() {
TextSpan s = currentSpan(TextSpan.class, null);
assertNull("span should be null", s);
s = currentSpan(TextSpan.class, new Object());
assertNull("span should be null", s);
}
Aggregations