コード例 #1
0
 @Test(expected = MappingException.class)
 public void shouldFailToFindConstructor() {
   directive.setTargetClass(SelfFactory.class);
   byConstructor.create(directive);
 }
コード例 #2
0
 @Test
 public void shouldCreateByConstructor() {
   directive.setTargetClass(String.class);
   assertEquals("", byConstructor.create(directive));
 }