diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-04-25 19:57:57 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-04-25 19:57:57 +0200 |
commit | 907158959c159904c3f4d20274c565806746ac15 (patch) | |
tree | f4db3e3d2fc81cf061cb1811b5bc3af4ca91695f /document/src/test/java/com/yahoo/vespaxmlparser/PositionParserTestCase.java | |
parent | 249fe76c9437d0f1a033294df98d8d8101baef2c (diff) |
Refactor to allow for lazy decode.
Diffstat (limited to 'document/src/test/java/com/yahoo/vespaxmlparser/PositionParserTestCase.java')
-rw-r--r-- | document/src/test/java/com/yahoo/vespaxmlparser/PositionParserTestCase.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/document/src/test/java/com/yahoo/vespaxmlparser/PositionParserTestCase.java b/document/src/test/java/com/yahoo/vespaxmlparser/PositionParserTestCase.java index a7fd782484e..e2aafcb4fdc 100644 --- a/document/src/test/java/com/yahoo/vespaxmlparser/PositionParserTestCase.java +++ b/document/src/test/java/com/yahoo/vespaxmlparser/PositionParserTestCase.java @@ -26,7 +26,7 @@ public class PositionParserTestCase { mgr.registerDocumentType(docType); VespaXMLFeedReader parser = new VespaXMLFeedReader("src/test/vespaxmlparser/test_position.xml", mgr); - Iterator<VespaXMLFeedReader.Operation> it = parser.readAll().iterator(); + Iterator<FeedOperation> it = parser.readAll().iterator(); assertTrue(it.hasNext()); assertDocument(PositionDataType.valueOf(1, 2), it.next()); assertTrue(it.hasNext()); @@ -38,9 +38,9 @@ public class PositionParserTestCase { assertFalse(it.hasNext()); } - private static void assertDocument(Struct expected, VespaXMLFeedReader.Operation operation) { + private static void assertDocument(Struct expected, FeedOperation operation) { assertNotNull(operation); - assertEquals(VespaXMLFeedReader.OperationType.DOCUMENT, operation.getType()); + assertEquals(FeedOperation.Type.DOCUMENT, operation.getType()); Document doc = operation.getDocument(); assertNotNull(doc); assertEquals(expected, doc.getFieldValue("my_pos")); |