StringBasedAnnotationHandler extends NoOpAnnotationHandler<A> { protected String[] ph(String... strs) { String[] res = new String[strs.length]; for(int i = 0; i < res.length; i++){ res[i] = ph(strs[i]); } return res; } StringBasedAnnotationHandler(CRestConfig crestConfig);   }
@Test public void phsShouldUsePlaceholderMap(){ mockStatic(Placeholders.class); when(Placeholders.merge(placeholders, "a")).thenReturn("aa"); when(Placeholders.merge(placeholders, "b")).thenReturn("bb"); String[] actual = toTest.ph("a", "b"); assertArrayEquals(new String[]{"aa", "bb"}, actual); }
@Test public void phShouldUsePlaceholderMap(){ mockStatic(Placeholders.class); when(Placeholders.merge(placeholders, "a")).thenReturn("aa"); String actual = toTest.ph("a"); assertEquals("aa", actual); }