From 9f461fae7f805ac2e8f83a6f6fd2eb12064a5969 Mon Sep 17 00:00:00 2001 From: Ksenia Zhmurina Date: Mon, 4 Mar 2024 20:48:02 -0800 Subject: [PATCH] Fixed some warnings, appearing during clean install --- src/test/java/org/jpeek/skeleton/SkeletonTest.java | 4 ++-- src/test/java/org/jpeek/skeleton/TypesOfTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/jpeek/skeleton/SkeletonTest.java b/src/test/java/org/jpeek/skeleton/SkeletonTest.java index 1d1178ee..70b12b5e 100644 --- a/src/test/java/org/jpeek/skeleton/SkeletonTest.java +++ b/src/test/java/org/jpeek/skeleton/SkeletonTest.java @@ -92,8 +92,8 @@ void findsMethodsAndArgs() { "//class/methods[count(method)=7]", "//method[@name='methodSix']/args[count(arg)=1]", "//method[@name='methodSix']/args/arg[@type='Ljava/sql/Timestamp']", - "//method[@name='methodSix' and return='Ljava/util/Date']", - "//method[@name='methodTwo' and return='V']", + "//method[@name='methodSix' and child::return='Ljava/util/Date']", + "//method[@name='methodTwo' and child::return='V']", "//method[@name='methodOne']/args/arg[@type='Ljava/lang/Object']" ) ).affirm(); diff --git a/src/test/java/org/jpeek/skeleton/TypesOfTest.java b/src/test/java/org/jpeek/skeleton/TypesOfTest.java index eb60ea61..d0fff428 100644 --- a/src/test/java/org/jpeek/skeleton/TypesOfTest.java +++ b/src/test/java/org/jpeek/skeleton/TypesOfTest.java @@ -50,7 +50,7 @@ void parsesSignature() { XhtmlMatchers.hasXPaths( "/method/args[count(arg) = 2]", "/method/args/arg[@type = 'Ljava/lang/String']", - "/method[return='Z']" + "/method[child::return='Z']" ) ).affirm(); }