Class FormatterServiceDelegateTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.netbeans.junit.NbTestCase
de.funfried.netbeans.plugins.external.formatter.FormatterServiceDelegateTest
All Implemented Interfaces:
junit.framework.Test, org.netbeans.junit.NbTest

public class FormatterServiceDelegateTest extends org.netbeans.junit.NbTestCase
Author:
bahlef
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Test of FormatterServiceDelegate.format(javax.swing.text.StyledDocument, java.util.SortedSet) method, of class FormatterServiceDelegate.
    void
    Test of FormatterServiceDelegate.format(javax.swing.text.StyledDocument, java.util.SortedSet) method, of class FormatterServiceDelegate.
    void
    Test of FormatterServiceDelegate.format(javax.swing.text.StyledDocument, java.util.SortedSet) method, of class FormatterServiceDelegate.
    void
    Test of FormatterServiceDelegate.format(javax.swing.text.StyledDocument, java.util.SortedSet) method, of class FormatterServiceDelegate.

    Methods inherited from class org.netbeans.junit.NbTestCase

    assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertGC, assertGC, assertSize, assertSize, assertSize, assertSize, canRun, clearWorkDir, compareReferenceFiles, compareReferenceFiles, convertNBFSURL, failByBug, failByBug, getDataDir, getExpectedFail, getGoldenFile, getGoldenFile, getLog, getLog, getRef, getTestNumber, getWorkDir, getWorkDirPath, log, log, logLevel, logRoot, ref, run, runBare, runInEQ, setFilter, timeOut

    Methods inherited from class junit.framework.TestCase

    assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runTest, setName, setUp, tearDown, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface junit.framework.Test

    countTestCases
  • Constructor Details

    • FormatterServiceDelegateTest

      public FormatterServiceDelegateTest(String name)
  • Method Details

    • testFormatWithEclipseFormatter

      public void testFormatWithEclipseFormatter() throws Exception
      Test of FormatterServiceDelegate.format(javax.swing.text.StyledDocument, java.util.SortedSet) method, of class FormatterServiceDelegate.
      Throws:
      Exception - if an error occurs
    • testFormatWithGoogleFormatter

      public void testFormatWithGoogleFormatter() throws Exception
      Test of FormatterServiceDelegate.format(javax.swing.text.StyledDocument, java.util.SortedSet) method, of class FormatterServiceDelegate.
      Throws:
      Exception - if an error occurs
    • testFormatWithWrongChangedElements

      public void testFormatWithWrongChangedElements() throws Exception
      Test of FormatterServiceDelegate.format(javax.swing.text.StyledDocument, java.util.SortedSet) method, of class FormatterServiceDelegate.
      Throws:
      Exception - if an error occurs
    • testNullDocument

      public void testNullDocument() throws Exception
      Test of FormatterServiceDelegate.format(javax.swing.text.StyledDocument, java.util.SortedSet) method, of class FormatterServiceDelegate.
      Throws:
      Exception - if an error occurs