Beispiel #1
0
  @Test
  public void testIllegalFilterSyntax() {
    String configuratorKey = Matcher.createTargetKey(ApplicationConfiguration.class);
    when(httpServiceReference.getProperty(configuratorKey)).thenReturn("(((");

    try {
      matcher.matches();
      fail();
    } catch (IllegalArgumentException expected) {
    }
  }
Beispiel #2
0
 private void createConfiguratorFilter() {
   String configuratorKey = Matcher.createTargetKey(ApplicationConfiguration.class);
   when(httpServiceReference.getProperty(configuratorKey)).thenReturn(KEY_VALUE);
 }
Beispiel #3
0
 private void createHttpServiceFilter() {
   String httpServiceKey = Matcher.createTargetKey(HttpService.class);
   when(configuratorReference.getProperty(httpServiceKey)).thenReturn(KEY_VALUE);
 }