diff options
Diffstat (limited to 'plugins/IntentionPowerPak/test/com/siyeh/ipp/junit')
8 files changed, 73 insertions, 0 deletions
diff --git a/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/flip_assert_literal/ExistingStaticImport.java b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/flip_assert_literal/ExistingStaticImport.java new file mode 100644 index 000000000000..96be19ed47a7 --- /dev/null +++ b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/flip_assert_literal/ExistingStaticImport.java @@ -0,0 +1,11 @@ +import org.junit.Test; + +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.assertFalse; + +class X { + @Test + void t() { + <caret>assertTrue(true); + } +}
\ No newline at end of file diff --git a/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/flip_assert_literal/ExistingStaticImport_after.java b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/flip_assert_literal/ExistingStaticImport_after.java new file mode 100644 index 000000000000..8eccf08eb0ad --- /dev/null +++ b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/flip_assert_literal/ExistingStaticImport_after.java @@ -0,0 +1,11 @@ +import org.junit.Test; + +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.assertFalse; + +class X { + @Test + void t() { + assertFalse(!true); + } +}
\ No newline at end of file diff --git a/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/flip_assert_literal/StaticImportWithoutTestMethod.java b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/flip_assert_literal/StaticImportWithoutTestMethod.java new file mode 100644 index 000000000000..369c92ea185f --- /dev/null +++ b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/flip_assert_literal/StaticImportWithoutTestMethod.java @@ -0,0 +1,8 @@ +import static org.junit.Assert.assertTrue; + +class StaticImportWithoutTestMethod { + + void t() { + <caret>assertTrue(false); + } +}
\ No newline at end of file diff --git a/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/flip_assert_literal/StaticImportWithoutTestMethod_after.java b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/flip_assert_literal/StaticImportWithoutTestMethod_after.java new file mode 100644 index 000000000000..5bf7c4d7c1fb --- /dev/null +++ b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/flip_assert_literal/StaticImportWithoutTestMethod_after.java @@ -0,0 +1,9 @@ +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + +class StaticImportWithoutTestMethod { + + void t() { + assertFalse(!false); + } +}
\ No newline at end of file diff --git a/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/replace_assert_equals_with_assert_literal/OutsideTestMethod.java b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/replace_assert_equals_with_assert_literal/OutsideTestMethod.java new file mode 100644 index 000000000000..5af128b5478b --- /dev/null +++ b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/replace_assert_equals_with_assert_literal/OutsideTestMethod.java @@ -0,0 +1,8 @@ +import static org.junit.Assert.assertEquals; + +class OutsideTestMethod { + + void m() { + <caret>assertEquals("asdf", null); + } +}
\ No newline at end of file diff --git a/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/replace_assert_equals_with_assert_literal/OutsideTestMethod_after.java b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/replace_assert_equals_with_assert_literal/OutsideTestMethod_after.java new file mode 100644 index 000000000000..e3291d9d271f --- /dev/null +++ b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/replace_assert_equals_with_assert_literal/OutsideTestMethod_after.java @@ -0,0 +1,9 @@ +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNull; + +class OutsideTestMethod { + + void m() { + assertNull("asdf"); + } +}
\ No newline at end of file diff --git a/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/replace_assert_literal_with_assert_equals/OutsideTestMethod.java b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/replace_assert_literal_with_assert_equals/OutsideTestMethod.java new file mode 100644 index 000000000000..34c98500412e --- /dev/null +++ b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/replace_assert_literal_with_assert_equals/OutsideTestMethod.java @@ -0,0 +1,8 @@ +import static org.junit.Assert.assertNull; + +class OutsideTestMethod { + + void m() { + <caret>assertNull("asdf"); + } +}
\ No newline at end of file diff --git a/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/replace_assert_literal_with_assert_equals/OutsideTestMethod_after.java b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/replace_assert_literal_with_assert_equals/OutsideTestMethod_after.java new file mode 100644 index 000000000000..0d6315f93c7b --- /dev/null +++ b/plugins/IntentionPowerPak/test/com/siyeh/ipp/junit/replace_assert_literal_with_assert_equals/OutsideTestMethod_after.java @@ -0,0 +1,9 @@ +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNull; + +class OutsideTestMethod { + + void m() { + assertEquals(null, "asdf"); + } +}
\ No newline at end of file |