コード例 #1
0
 @Test(expected = GenericSignatureFormatError.class)
 public void testMalformedMethodSignature() throws Exception {
   TypeDescription typeDescription = describe(SignatureMalformer.malform(MalformedBase.class));
   assertThat(typeDescription.getDeclaredMethods().filter(isMethod()).size(), is(1));
   typeDescription.getDeclaredMethods().filter(isMethod()).getOnly().getReturnType().getSort();
 }
コード例 #2
0
 @Test(expected = GenericSignatureFormatError.class)
 public void testMalformedTypeSignature() throws Exception {
   TypeDescription typeDescription = describe(SignatureMalformer.malform(MalformedBase.class));
   assertThat(typeDescription.getInterfaces().size(), is(1));
   typeDescription.getInterfaces().getOnly().getSort();
 }