/plugins/InspectionGadgets/testsrc/com/siyeh/ig/fixes/style/StringBufferReplaceableWithStringFixTest.java

https://bitbucket.org/nbargnesi/idea · Java · 27 lines · 23 code · 4 blank · 0 comment · 0 complexity · c3573231beecf683e0a0625bfffed43e MD5 · raw file

  1. package com.siyeh.ig.fixes.style;
  2. import com.siyeh.InspectionGadgetsBundle;
  3. import com.siyeh.ig.IGQuickFixesTestCase;
  4. import com.siyeh.ig.style.StringBufferReplaceableByStringInspection;
  5. public class StringBufferReplaceableWithStringFixTest extends IGQuickFixesTestCase {
  6. @Override
  7. public void setUp() throws Exception {
  8. super.setUp();
  9. myFixture.enableInspections(new StringBufferReplaceableByStringInspection());
  10. myRelativePath = "style/replace_with_string";
  11. myDefaultHint = InspectionGadgetsBundle.message("string.buffer.replaceable.by.string.quickfix");
  12. }
  13. public void testSimpleStringBuffer() { doTest(); }
  14. public void testStringBuilderAppend() { doTest(InspectionGadgetsBundle.message("string.builder.replaceable.by.string.quickfix")); }
  15. public void testStringBufferVariable() { doTest(); }
  16. public void testStringBufferVariable2() { doTest(); }
  17. public void testStartsWithPrimitive() { doTest(); }
  18. public void testPrecedence() { doTest(InspectionGadgetsBundle.message("string.builder.replaceable.by.string.quickfix")); }
  19. public void testPrecedence2() { doTest(InspectionGadgetsBundle.message("string.builder.replaceable.by.string.quickfix")); }
  20. public void testPrecedence3() { doTest(InspectionGadgetsBundle.message("string.builder.replaceable.by.string.quickfix")); }
  21. public void testNonString1() { doTest(InspectionGadgetsBundle.message("string.builder.replaceable.by.string.quickfix")); }
  22. public void testNonString2() { doTest(InspectionGadgetsBundle.message("string.builder.replaceable.by.string.quickfix")); }
  23. }