issue983 Add a new test case for an annotation with a single non value element
This commit is contained in:
@@ -95,6 +95,25 @@ public class Foo {
|
|||||||
int x = 42;
|
int x = 42;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
]]></code>
|
||||||
|
</test-code>
|
||||||
|
|
||||||
|
<test-code>
|
||||||
|
<description><![CDATA[
|
||||||
|
Single non Value Element in Method Annotation
|
||||||
|
]]></description>
|
||||||
|
<expected-problems>0</expected-problems>
|
||||||
|
<code><![CDATA[
|
||||||
|
public class Foo {
|
||||||
|
|
||||||
|
private String y;
|
||||||
|
|
||||||
|
@TestMethodAnnotation(other = "TEST")
|
||||||
|
public void bar() {
|
||||||
|
int x = 42;
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]]></code>
|
]]></code>
|
||||||
</test-code>
|
</test-code>
|
||||||
|
Reference in New Issue
Block a user