diff options
author | Tor Norbye <tnorbye@google.com> | 2013-04-19 13:32:49 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2013-04-19 13:32:49 -0700 |
commit | b569bc6aa78f6eacf72e8b90622d300e1a9db25f (patch) | |
tree | 309048e52eab434a381cf8554436f14de6342cbf /plugins/InspectionGadgets/test/com | |
parent | d1a59a0799588a226d255d9b45c4825b19651554 (diff) | |
download | idea-b569bc6aa78f6eacf72e8b90622d300e1a9db25f.tar.gz |
Snapshot 0b0329a61f47b6070bb9084be8e176635a16fa5c from master branch of git://git.jetbrains.org/idea/community.git
Change-Id: I2e8857776f197bed2d768ea37c67d2e2a1e97952
Diffstat (limited to 'plugins/InspectionGadgets/test/com')
-rw-r--r-- | plugins/InspectionGadgets/test/com/siyeh/igtest/junit/rule/wrongsignature.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/junit/rule/wrongsignature.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/junit/rule/wrongsignature.java new file mode 100644 index 000000000000..0a55b80c4633 --- /dev/null +++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/junit/rule/wrongsignature.java @@ -0,0 +1,11 @@ +class Test { + @org.junit.ClassRule public static org.junit.rules.TestRule f1; + @org.junit.ClassRule public org.junit.rules.TestRule <warning descr="Fields annotated with @org.junit.ClassRule should be static">f2</warning>; + @org.junit.ClassRule static org.junit.rules.TestRule <warning descr="Fields annotated with @org.junit.ClassRule should be public">f3</warning>; + @org.junit.ClassRule org.junit.rules.TestRule <warning descr="Fields annotated with @org.junit.ClassRule should be public and static">f4</warning>; + + @org.junit.Rule public static org.junit.rules.TestRule <warning descr="Fields annotated with @org.junit.Rule should be non-static">f5</warning>; + @org.junit.Rule public org.junit.rules.TestRule f6; + @org.junit.Rule static org.junit.rules.TestRule <warning descr="Fields annotated with @org.junit.Rule should be public and non-static">f7</warning>; + @org.junit.Rule org.junit.rules.TestRule <warning descr="Fields annotated with @org.junit.Rule should be public">f8</warning>; +}
\ No newline at end of file |