1010
1111import static org .junit .jupiter .api .Assertions .*;
1212
13- class IgnoringFieldMatcherTest {
13+ class IgnoredPathMatcherTest {
1414
1515 @ Nested
1616 class ManageMethod {
1717
1818 @ Test
1919 void shouldMatchExactPath () {
20- var matcher = new IgnoringFieldMatcher ("name" );
20+ var matcher = new IgnoredPathMatcher ("name" );
2121 var path = Path .ROOT .add (Path .PathItem .of ("name" ));
2222
2323 assertTrue (matcher .manage (path , null , null ));
2424 }
2525
2626 @ Test
2727 void shouldMatchEndOfPath () {
28- var matcher = new IgnoringFieldMatcher ("name" );
28+ var matcher = new IgnoredPathMatcher ("name" );
2929 var path = Path .ROOT
3030 .add (Path .PathItem .of ("user" ))
3131 .add (Path .PathItem .of ("name" ));
@@ -35,15 +35,15 @@ void shouldMatchEndOfPath() {
3535
3636 @ Test
3737 void shouldNotMatchDifferentPath () {
38- var matcher = new IgnoringFieldMatcher ("name" );
38+ var matcher = new IgnoredPathMatcher ("name" );
3939 var path = Path .ROOT .add (Path .PathItem .of ("age" ));
4040
4141 assertFalse (matcher .manage (path , null , null ));
4242 }
4343
4444 @ Test
4545 void shouldMatchNestedPath () {
46- var matcher = new IgnoringFieldMatcher ("user.name" );
46+ var matcher = new IgnoredPathMatcher ("user.name" );
4747 var path = Path .ROOT
4848 .add (Path .PathItem .of ("data" ))
4949 .add (Path .PathItem .of ("user" ))
@@ -54,7 +54,7 @@ void shouldMatchNestedPath() {
5454
5555 @ Test
5656 void shouldNotMatchPartialNestedPath () {
57- var matcher = new IgnoringFieldMatcher ("user.name" );
57+ var matcher = new IgnoredPathMatcher ("user.name" );
5858 var path = Path .ROOT
5959 .add (Path .PathItem .of ("name" ));
6060
@@ -63,7 +63,7 @@ void shouldNotMatchPartialNestedPath() {
6363
6464 @ Test
6565 void shouldMatchWithWildcardProperty () {
66- var matcher = new IgnoringFieldMatcher ("*.name" );
66+ var matcher = new IgnoredPathMatcher ("*.name" );
6767 var path = Path .ROOT
6868 .add (Path .PathItem .of ("user" ))
6969 .add (Path .PathItem .of ("name" ));
@@ -73,7 +73,7 @@ void shouldMatchWithWildcardProperty() {
7373
7474 @ Test
7575 void shouldMatchArrayIndex () {
76- var matcher = new IgnoringFieldMatcher ("items[0]" );
76+ var matcher = new IgnoredPathMatcher ("items[0]" );
7777 var path = Path .ROOT
7878 .add (Path .PathItem .of ("items" ))
7979 .add (Path .PathItem .of (0 ));
@@ -83,7 +83,7 @@ void shouldMatchArrayIndex() {
8383
8484 @ Test
8585 void shouldMatchArrayWildcard () {
86- var matcher = new IgnoringFieldMatcher ("items[*].id" );
86+ var matcher = new IgnoredPathMatcher ("items[*].id" );
8787 var path = Path .ROOT
8888 .add (Path .PathItem .of ("items" ))
8989 .add (Path .PathItem .of (5 ))
@@ -94,7 +94,7 @@ void shouldMatchArrayWildcard() {
9494
9595 @ Test
9696 void shouldMatchAnyOfMultiplePatterns () {
97- var matcher = new IgnoringFieldMatcher ("name" , "age" , "email" );
97+ var matcher = new IgnoredPathMatcher ("name" , "age" , "email" );
9898 var pathName = Path .ROOT .add (Path .PathItem .of ("name" ));
9999 var pathAge = Path .ROOT .add (Path .PathItem .of ("age" ));
100100 var pathEmail = Path .ROOT .add (Path .PathItem .of ("email" ));
@@ -108,7 +108,7 @@ void shouldMatchAnyOfMultiplePatterns() {
108108
109109 @ Test
110110 void shouldWorkWithListConstructor () {
111- var matcher = new IgnoringFieldMatcher (List .of ("name" , "age" ));
111+ var matcher = new IgnoredPathMatcher (List .of ("name" , "age" ));
112112 var pathName = Path .ROOT .add (Path .PathItem .of ("name" ));
113113 var pathAge = Path .ROOT .add (Path .PathItem .of ("age" ));
114114
@@ -118,7 +118,7 @@ void shouldWorkWithListConstructor() {
118118
119119 @ Test
120120 void shouldNotMatchRootPath () {
121- var matcher = new IgnoringFieldMatcher ("name" );
121+ var matcher = new IgnoredPathMatcher ("name" );
122122
123123 assertFalse (matcher .manage (Path .ROOT , null , null ));
124124 }
@@ -129,7 +129,7 @@ class JsonDiffMethod {
129129
130130 @ Test
131131 void shouldReturnMatchedDiffWithFullSimilarity () {
132- var matcher = new IgnoringFieldMatcher ("name" );
132+ var matcher = new IgnoredPathMatcher ("name" );
133133 var path = Path .ROOT .add (Path .PathItem .of ("name" ));
134134 var expected = StringNode .valueOf ("John" );
135135 var received = StringNode .valueOf ("Jane" );
@@ -142,7 +142,7 @@ void shouldReturnMatchedDiffWithFullSimilarity() {
142142
143143 @ Test
144144 void shouldReturnMatchedDiffEvenWithDifferentTypes () {
145- var matcher = new IgnoringFieldMatcher ("value" );
145+ var matcher = new IgnoredPathMatcher ("value" );
146146 var path = Path .ROOT .add (Path .PathItem .of ("value" ));
147147 var expected = StringNode .valueOf ("100" );
148148 var received = IntNode .valueOf (100 );
@@ -154,7 +154,7 @@ void shouldReturnMatchedDiffEvenWithDifferentTypes() {
154154
155155 @ Test
156156 void shouldReturnMatchedDiffForNestedPath () {
157- var matcher = new IgnoringFieldMatcher ("user.timestamp" );
157+ var matcher = new IgnoredPathMatcher ("user.timestamp" );
158158 var path = Path .ROOT
159159 .add (Path .PathItem .of ("user" ))
160160 .add (Path .PathItem .of ("timestamp" ));
0 commit comments