MCPcopy Create free account
hub / github.com/ReadyTalk/avian / testComplexAnnotation

Method testComplexAnnotation

test/Annotations.java:67–77  ·  view source on GitHub ↗
(TestComplex annotation)

Source from the content-addressed store, hash-verified

65 }
66
67 private static void testComplexAnnotation(TestComplex annotation)
68 throws Exception
69 {
70 expect(2 == annotation.arrayValue().length);
71 expect("Hello, world!".equals(annotation.arrayValue()[0].value()));
72 expect("7/9".equals(annotation.arrayValue()[1].value()));
73 expect("adjunct element".equals(annotation.stringValue()));
74 expect('7' == annotation.charValue());
75 expect(0.7778 == annotation.doubleValue());
76 expect(TestInteger.class == annotation.classValue());
77 }
78
79 public static void testComplexAnnotation() throws Exception {
80 ClassLoader loader = Annotations.class.getClassLoader();

Callers 1

mainMethod · 0.95

Calls 9

expectMethod · 0.95
getMethodMethod · 0.95
getProxyClassMethod · 0.95
charValueMethod · 0.80
getClassLoaderMethod · 0.80
equalsMethod · 0.65
getAnnotationMethod · 0.65
valueMethod · 0.45
doubleValueMethod · 0.45

Tested by

no test coverage detected