@Test public void testIllegalFilterSyntax() { String configuratorKey = Matcher.createTargetKey(ApplicationConfiguration.class); when(httpServiceReference.getProperty(configuratorKey)).thenReturn("((("); try { matcher.matches(); fail(); } catch (IllegalArgumentException expected) { } }
private void createConfiguratorFilter() { String configuratorKey = Matcher.createTargetKey(ApplicationConfiguration.class); when(httpServiceReference.getProperty(configuratorKey)).thenReturn(KEY_VALUE); }
private void createHttpServiceFilter() { String httpServiceKey = Matcher.createTargetKey(HttpService.class); when(configuratorReference.getProperty(httpServiceKey)).thenReturn(KEY_VALUE); }