Exemplo n.º 1
0
 @Test
 public void testConfigure() {
   WildcardMatchConstraint wildcardMatchConstraint = new WildcardMatchConstraint();
   WildcardMatch annotation = mock(WildcardMatch.class);
   String pattern = "foo";
   stub(annotation.value()).toReturn(pattern);
   wildcardMatchConstraint.configure(annotation);
   assertEquals(
       "method must return the same pattern as was set to annotation when configure",
       wildcardMatchConstraint.getPattern(),
       pattern);
 }