@@ -18,7 +18,7 @@ void testFilterWithJsonFile() throws Exception {
1818        String  jsonInput  = "{\" arguments\" : \" value\" , \" otherKey\" : \" otherValue\" }" ;
1919        InputStream  inputStream  = new  ByteArrayInputStream (jsonInput .getBytes (StandardCharsets .UTF_8 ));
2020
21-         InputStream  result  = StateManagerUtils .filter ("_main.json" , inputStream );
21+         InputStream  result  = StateManagerUtils .stateFilter ("_main.json" , inputStream );
2222        String  text  = new  String (result .readAllBytes (), StandardCharsets .UTF_8 );
2323
2424        ObjectMapper  mapper  = new  ObjectMapper ();
@@ -33,12 +33,12 @@ void testFilterWithYamlFile() throws Exception {
3333        String  yamlInput  = "arguments: value\n otherKey: otherValue" ;
3434        InputStream  inputStream  = new  ByteArrayInputStream (yamlInput .getBytes (StandardCharsets .UTF_8 ));
3535
36-         InputStream  result  = StateManagerUtils .filter ("test.yaml" , inputStream );
36+         InputStream  result  = StateManagerUtils .stateFilter ("test.yaml" , inputStream );
3737
3838        ObjectMapper  mapper  = new  ObjectMapper (new  YAMLFactory ());
3939        Map <String , Object > resultMap  = mapper .readValue (result , Map .class );
4040
41-         // return the same if to filter  items not present 
41+         // return the same if to stateFilter  items not present 
4242        assertEquals (2 , resultMap .size ());
4343        assertEquals ("otherValue" , resultMap .get ("otherKey" ));
4444    }
@@ -48,7 +48,7 @@ void testFilterWithUnsupportedExtension() throws Exception {
4848        String  input  = "key: value" ;
4949        InputStream  inputStream  = new  ByteArrayInputStream (input .getBytes (StandardCharsets .UTF_8 ));
5050
51-         InputStream  result  = StateManagerUtils .filter ("file.txt" , inputStream );
51+         InputStream  result  = StateManagerUtils .stateFilter ("file.txt" , inputStream );
5252        String  text  = new  String (result .readAllBytes (), StandardCharsets .UTF_8 );
5353
5454        assertEquals (input , text );
@@ -60,7 +60,7 @@ void testFilterWithEmptyInput() throws Exception {
6060        String  input  = "" ;
6161        InputStream  inputStream  = new  ByteArrayInputStream (input .getBytes (StandardCharsets .UTF_8 ));
6262
63-         InputStream  result  = StateManagerUtils .filter ("_main.json" , inputStream );
63+         InputStream  result  = StateManagerUtils .stateFilter ("_main.json" , inputStream );
6464        String  text  = new  String (result .readAllBytes (), StandardCharsets .UTF_8 );
6565
6666        assertEquals (input , text );
@@ -72,7 +72,7 @@ void testFilterWithNullRules() throws Exception {
7272        String  jsonInput  = "{\" key\" : \" value\" }" ;
7373        InputStream  inputStream  = new  ByteArrayInputStream (jsonInput .getBytes (StandardCharsets .UTF_8 ));
7474
75-         InputStream  result  = StateManagerUtils .filter ("unknown.json" , inputStream );
75+         InputStream  result  = StateManagerUtils .stateFilter ("unknown.json" , inputStream );
7676        String  text  = new  String (result .readAllBytes (), StandardCharsets .UTF_8 );
7777
7878        assertEquals (jsonInput , text );
@@ -83,7 +83,7 @@ void testFilterWithNullRules() throws Exception {
8383    void  testFilterWithNullInput () throws  Exception  {
8484        String  jsonInput  = "{\" key\" : \" value\" }" ;
8585        InputStream  inputStream  = null ;
86-         InputStream  result  = StateManagerUtils .filter ("unknown.json" , inputStream );
86+         InputStream  result  = StateManagerUtils .stateFilter ("unknown.json" , inputStream );
8787
8888        assertNull (result );
8989    }
0 commit comments