DocumentSchema.NO_SCHEMA_CONSTRAINTS); doc.consume(new DocOpBuilder().annotationBoundary( new AnnotationBoundaryMapBuilder().change("a", null, "0").build()) .characters(b.toString()).retain(2) .annotationBoundary(new AnnotationBoundaryMapBuilder().end("a").build()).build()); Automatons.fromReadable(doc), new DocOpBuilder().annotationBoundary( new AnnotationBoundaryMapBuilder().change("a", "0", "1").build()) .retain(length + 2) .annotationBoundary(new AnnotationBoundaryMapBuilder().end("a").build()).build())
DocumentSchema.NO_SCHEMA_CONSTRAINTS); doc.consume(new DocOpBuilder().annotationBoundary( new AnnotationBoundaryMapBuilder().change("a", null, "0").build()) .characters(b.toString()).retain(2) .annotationBoundary(new AnnotationBoundaryMapBuilder().end("a").build()).build()); Automatons.fromReadable(doc), new DocOpBuilder().annotationBoundary( new AnnotationBoundaryMapBuilder().change("a", "0", "1").build()) .retain(length + 2) .annotationBoundary(new AnnotationBoundaryMapBuilder().end("a").build()).build())
anBuilder.end(key); } else { anBuilder.change(key, oldValue, newValue);
public void XtestAnchorRemovalIsUnworthy2() throws OperationException { IndexedDocument<Node, Element, Text> d = DocProviders.POJO.build( new DocInitializationBuilder() .annotationBoundary(new AnnotationBoundaryMapBuilder().change("a", null, "b").build()) .elementStart(WorthyChangeChecker.THREAD_INLINE_ANCHOR_TAGNAME, Attributes.EMPTY_MAP) .elementEnd() .annotationBoundary(new AnnotationBoundaryMapBuilder().end("a").build()) .build(), DocumentSchema.NO_SCHEMA_CONSTRAINTS); DocOp op = d.consumeAndReturnInvertible(new Nindo.Builder() { { deleteElementStart(); deleteElementEnd(); } }.build()); assertFalse(WorthyChangeChecker.isWorthy(op)); }
public void XtestAnchorRemovalIsUnworthy2() throws OperationException { IndexedDocument<Node, Element, Text> d = DocProviders.POJO.build( new DocInitializationBuilder() .annotationBoundary(new AnnotationBoundaryMapBuilder().change("a", null, "b").build()) .elementStart(WorthyChangeChecker.THREAD_INLINE_ANCHOR_TAGNAME, Attributes.EMPTY_MAP) .elementEnd() .annotationBoundary(new AnnotationBoundaryMapBuilder().end("a").build()) .build(), DocumentSchema.NO_SCHEMA_CONSTRAINTS); DocOp op = d.consumeAndReturnInvertible(new Nindo.Builder() { { deleteElementStart(); deleteElementEnd(); } }.build()); assertFalse(WorthyChangeChecker.isWorthy(op)); }
public void testAnchorRemovalIsUnworthy1() throws OperationException { IndexedDocument<Node, Element, Text> d = DocProviders.POJO.build( new DocInitializationBuilder() .annotationBoundary(new AnnotationBoundaryMapBuilder().change("a", null, "b").build()) .characters("a") .annotationBoundary(new AnnotationBoundaryMapBuilder().end("a").build()) .characters("a") .elementStart(WorthyChangeChecker.THREAD_INLINE_ANCHOR_TAGNAME, Attributes.EMPTY_MAP) .elementEnd() .build(), DocumentSchema.NO_SCHEMA_CONSTRAINTS); DocOp op = d.consumeAndReturnInvertible(new Nindo.Builder() { { skip(2); deleteElementStart(); deleteElementEnd(); } }.build()); assertFalse(WorthyChangeChecker.isWorthy(op)); }
public void testAnchorRemovalIsUnworthy1() throws OperationException { IndexedDocument<Node, Element, Text> d = DocProviders.POJO.build( new DocInitializationBuilder() .annotationBoundary(new AnnotationBoundaryMapBuilder().change("a", null, "b").build()) .characters("a") .annotationBoundary(new AnnotationBoundaryMapBuilder().end("a").build()) .characters("a") .elementStart(WorthyChangeChecker.THREAD_INLINE_ANCHOR_TAGNAME, Attributes.EMPTY_MAP) .elementEnd() .build(), DocumentSchema.NO_SCHEMA_CONSTRAINTS); DocOp op = d.consumeAndReturnInvertible(new Nindo.Builder() { { skip(2); deleteElementStart(); deleteElementEnd(); } }.build()); assertFalse(WorthyChangeChecker.isWorthy(op)); }