summaryrefslogtreecommitdiff
path: root/plugins/IntentionPowerPak/testSrc/com/siyeh/ipp/junit/FlipAssertLiteralIntentionTest.java
blob: 98371872da527e35c148e3d88720121186a1b5c0 (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
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(); }

  @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) {}" +
                       "}");
  }

  @Override
  protected String getRelativePath() {
    return "junit/flip_assert_literal";
  }

  @Override
  protected String getIntentionName() {
    return IntentionPowerPackBundle.message("flip.assert.literal.intention.name", "assertTrue", "assertFalse");
  }
}