diff --git a/approvaltests-tests/src/test/java/org/approvaltests/DocumentHelpersTest.listAllVerifyFunctions.approved.md b/approvaltests-tests/src/test/java/org/approvaltests/DocumentHelpersTest.listAllVerifyFunctions.approved.md index 41018521..55dce3ba 100644 --- a/approvaltests-tests/src/test/java/org/approvaltests/DocumentHelpersTest.listAllVerifyFunctions.approved.md +++ b/approvaltests-tests/src/test/java/org/approvaltests/DocumentHelpersTest.listAllVerifyFunctions.approved.md @@ -61,3 +61,4 @@ * JsonJacksonApprovals. [verifyAsJson ](https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/src/main/java/org/approvaltests/JsonJacksonApprovals.java#L25-L29) (Object, Function1, $\color{#AAA}{\textsf{Options}}$) * JsonXstreamApprovals. [verifyAsJson ](https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/src/main/java/org/approvaltests/JsonXstreamApprovals.java#L18-L21) (Object, $\color{#AAA}{\textsf{Options}}$) * VelocityApprovals. [verify ](https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/src/main/java/org/approvaltests/velocity/VelocityApprovals.java#L16-L24) (ContextAware, $\color{#AAA}{\textsf{Options}}$) + * XmlXomApprovals. [verifyXml ](https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/src/main/java/org/approvaltests/XmlXomApprovals.java#L17-L20) (String, $\color{#AAA}{\textsf{Options}}$) diff --git a/approvaltests-tests/src/test/java/org/approvaltests/OptionsTest.java b/approvaltests-tests/src/test/java/org/approvaltests/OptionsTest.java index 3ac9260d..73f5b96f 100644 --- a/approvaltests-tests/src/test/java/org/approvaltests/OptionsTest.java +++ b/approvaltests-tests/src/test/java/org/approvaltests/OptionsTest.java @@ -85,7 +85,7 @@ void testEachMethodHasOneWithOptions() public static List> getApprovalClasses() { return Arrays.asList(Approvals.class, CombinationApprovals.class, AwtApprovals.class, JsonApprovals.class, - VelocityApprovals.class, JsonJacksonApprovals.class, JsonXstreamApprovals.class); + VelocityApprovals.class, JsonJacksonApprovals.class, JsonXstreamApprovals.class, XmlXomApprovals.class); // TODO: missing verification that JsonApprovals, JsonJacksonApprovals and JsonXStreamApprovals offer the same verify methods } public static void verifyEachVerifyMethodHasOneWithOptions(Class approvalsClass, String methodPrefix) diff --git a/approvaltests-tests/src/test/java/org/approvaltests/ParsingFilesTest.java b/approvaltests-tests/src/test/java/org/approvaltests/ParsingFilesTest.java index 83f20866..0537225c 100644 --- a/approvaltests-tests/src/test/java/org/approvaltests/ParsingFilesTest.java +++ b/approvaltests-tests/src/test/java/org/approvaltests/ParsingFilesTest.java @@ -17,10 +17,10 @@ public void getLineNumberOfThisMethod() throws Exception { addApprovalTestPath(); var expected = """ - (line 5,col 3)-(line 7,col 3) + (line 13,col 3)-(line 16,col 3) """; - Method method = XmlXomApprovals.class.getMethod("verify", String.class); + Method method = XmlXomApprovals.class.getMethod("verifyXml", String.class); Range r = ParserUtilities.getLineNumbersForMethod(method); Approvals.verify(r, new Options().inline(expected)); } -} +} \ No newline at end of file