@@ -103,7 +103,7 @@ public void x509Provider_emptyFile_throws() {
103103 InputStream certConfigStream = new ByteArrayInputStream ("" .getBytes ());
104104 TestX509Provider testProvider = new TestX509Provider (certConfigPath );
105105 testProvider .addFile (certConfigPath , certConfigStream );
106- String expectedErrorMessage = "no JSON input found: " + certConfigPath ;
106+ String expectedErrorMessage = "no JSON input found" ;
107107
108108 IllegalArgumentException exception =
109109 Assert .assertThrows (IllegalArgumentException .class , testProvider ::getKeyStore );
@@ -187,9 +187,9 @@ public void x509Provider_succeeds_withWellKnownPath()
187187 }
188188
189189 static class TestX509Provider extends X509Provider {
190- private Map <String , InputStream > files ;
191- private Map <String , String > variables ;
192- private Map <String , String > properties ;
190+ private final Map <String , InputStream > files ;
191+ private final Map <String , String > variables ;
192+ private final Map <String , String > properties ;
193193
194194 TestX509Provider () {
195195 this (null );
@@ -221,10 +221,6 @@ String getProperty(String property, String def) {
221221 return value == null ? def : value ;
222222 }
223223
224- void setProperty (String name , String value ) {
225- properties .put (name , value );
226- }
227-
228224 @ Override
229225 boolean isFile (File file ) {
230226 return files .containsKey (file .getPath ());
0 commit comments