blob: 4bd28a4356882e23bf677d09485fca1b53afb621 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
package com.siyeh.ipp.junit;
import com.siyeh.IntentionPowerPackBundle;
import com.siyeh.ipp.IPPTestCase;
/**
* @see FlipAssertLiteralIntention
* @author Bas Leijdekkers
*/
public class FlipAssertLiteralIntentionTest extends IPPTestCase {
public void testMessage() { doTest(); }
public void testExistingStaticImport() { doTest(); }
public void testStaticImportWithoutTestMethod() { doTest(); }
@Override
protected void setUp() throws Exception {
super.setUp();
myFixture.addClass("package org.junit;" +
"class Assert {" +
" public static void assertTrue(java.lang.String message, boolean condition) {}" +
"}");
myFixture.addClass("package org.junit;" +
"@Retention(RetentionPolicy.RUNTIME)" +
"@Target({ElementType.METHOD})" +
"public @interface Test {}");
}
@Override
protected String getRelativePath() {
return "junit/flip_assert_literal";
}
@Override
protected String getIntentionName() {
return IntentionPowerPackBundle.message("flip.assert.literal.intention.name", "assertTrue", "assertFalse");
}
}
|