@@ -51,7 +51,7 @@ public class PListReaderTest {
5151 enum QueryType {
5252 STRING (PListReader ::queryValue ),
5353 BOOLEAN (PListReader ::queryBoolValue ),
54- STRING_ARRY (PListReader ::queryArrayValue );
54+ STRING_ARRAY (PListReader ::queryArrayValue );
5555
5656 QueryType (BiFunction <PListReader , String , ?> queryMethod ) {
5757 this .queryMethod = Objects .requireNonNull (queryMethod );
@@ -98,7 +98,7 @@ Builder expectedValue(Object v) {
9898 } else if (v instanceof Boolean ) {
9999 queryType (QueryType .BOOLEAN );
100100 } else if (v instanceof List <?>) {
101- queryType (QueryType .STRING_ARRY );
101+ queryType (QueryType .STRING_ARRAY );
102102 }
103103 return this ;
104104 }
@@ -196,7 +196,7 @@ public void testWrongValueType(QueryType queryType) {
196196 testSpecs .add (builder .keyName ("string-key" ).create ());
197197 testSpecs .add (builder .keyName ("array-key" ).create ());
198198 }
199- case STRING_ARRY -> {
199+ case STRING_ARRAY -> {
200200 testSpecs .add (builder .keyName ("string-key" ).create ());
201201 testSpecs .add (builder .keyName ("boolean-true-key" ).create ());
202202 testSpecs .add (builder .keyName ("boolean-false-key" ).create ());
@@ -230,7 +230,7 @@ private static List<QueryValueTestSpec> testQueryValue() {
230230 testSpec (QueryType .BOOLEAN ).xml ("<key>foo</key><False/>" ).create (),
231231 testSpec ().expectedValue (List .of ("foo" , "bar" )).xml ("<key>foo</key><array><string>foo</string><string>bar</string></array>" ).create (),
232232 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 (),
234234 testSpec ().expectedValue ("A" ).xml ("<key>foo</key><string>A</string><string>B</string>" ).create (),
235235 testSpec ().expectedValue ("A" ).xml ("<key>foo</key><string>A</string><key>foo</key><string>B</string>" ).create ()
236236 );
0 commit comments