MCPcopy
hub / github.com/apache/groovy / checkStringWithOneAnno

Method checkStringWithOneAnno

src/test/groovy/bugs/Groovy8008Bug.java:89–93  ·  view source on GitHub ↗
(Parameter param)

Source from the content-addressed store, hash-verified

87 }
88
89 private void checkStringWithOneAnno(Parameter param) {
90 assertEquals(String.class.getName(), param.getType().getName());
91 assertEquals(1, param.getAnnotations().size());
92 assertEquals(TestAnno2.class.getName(), param.getAnnotations().get(0).getClassNode().getName());
93 }
94
95 private void checkStringWithNoAnnos(Parameter param) {
96 assertEquals(String.class.getName(), param.getType().getName());

Calls 7

getNameMethod · 0.65
getTypeMethod · 0.65
sizeMethod · 0.65
getAnnotationsMethod · 0.65
getClassNodeMethod · 0.65
getMethod · 0.65
assertEqualsMethod · 0.45

Tested by

no test coverage detected