@@ -51,7 +51,7 @@ public class PListReaderTest {
51
51
enum QueryType {
52
52
STRING (PListReader ::queryValue ),
53
53
BOOLEAN (PListReader ::queryBoolValue ),
54
- STRING_ARRY (PListReader ::queryArrayValue );
54
+ STRING_ARRAY (PListReader ::queryArrayValue );
55
55
56
56
QueryType (BiFunction <PListReader , String , ?> queryMethod ) {
57
57
this .queryMethod = Objects .requireNonNull (queryMethod );
@@ -98,7 +98,7 @@ Builder expectedValue(Object v) {
98
98
} else if (v instanceof Boolean ) {
99
99
queryType (QueryType .BOOLEAN );
100
100
} else if (v instanceof List <?>) {
101
- queryType (QueryType .STRING_ARRY );
101
+ queryType (QueryType .STRING_ARRAY );
102
102
}
103
103
return this ;
104
104
}
@@ -196,7 +196,7 @@ public void testWrongValueType(QueryType queryType) {
196
196
testSpecs .add (builder .keyName ("string-key" ).create ());
197
197
testSpecs .add (builder .keyName ("array-key" ).create ());
198
198
}
199
- case STRING_ARRY -> {
199
+ case STRING_ARRAY -> {
200
200
testSpecs .add (builder .keyName ("string-key" ).create ());
201
201
testSpecs .add (builder .keyName ("boolean-true-key" ).create ());
202
202
testSpecs .add (builder .keyName ("boolean-false-key" ).create ());
@@ -230,7 +230,7 @@ private static List<QueryValueTestSpec> testQueryValue() {
230
230
testSpec (QueryType .BOOLEAN ).xml ("<key>foo</key><False/>" ).create (),
231
231
testSpec ().expectedValue (List .of ("foo" , "bar" )).xml ("<key>foo</key><array><string>foo</string><string>bar</string></array>" ).create (),
232
232
testSpec ().expectedValue (List .of ()).xml ("<key>foo</key><array/>" ).create (),
233
- testSpec (QueryType .STRING_ARRY ).xml ("<key>foo</key><Array/>" ).create (),
233
+ testSpec (QueryType .STRING_ARRAY ).xml ("<key>foo</key><Array/>" ).create (),
234
234
testSpec ().expectedValue ("A" ).xml ("<key>foo</key><string>A</string><string>B</string>" ).create (),
235
235
testSpec ().expectedValue ("A" ).xml ("<key>foo</key><string>A</string><key>foo</key><string>B</string>" ).create ()
236
236
);
0 commit comments