org.netbeans.modules.nbjunit/1 1.29

org.netbeans.junit
Class NbTestDecorator

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.extensions.TestDecorator
          extended byorg.netbeans.junit.NbTestDecorator
All Implemented Interfaces:
NbTest, junit.framework.Test
Direct Known Subclasses:
NbTestSetup

public class NbTestDecorator
extends junit.extensions.TestDecorator
implements NbTest

NetBeans extension to JUnit's TestDecorator class. Tests created with the help of this class can use method assertFile and can be filtered.


Field Summary
 
Fields inherited from class junit.extensions.TestDecorator
fTest
 
Constructor Summary
NbTestDecorator(junit.framework.Test test)
           
 
Method Summary
static void assertFile(File test, File pass)
          for description, see this method in NbTestCase class
static void assertFile(File test, File pass, File diff)
          for description, see this method in NbTestCase class
static void assertFile(File test, File pass, File diff, Diff externalDiff)
          for description, see this method in NbTestCase class
static void assertFile(String message, File test, File pass, File diff)
          for description, see this method in NbTestCase class
static void assertFile(String message, File test, File pass, File diff, Diff externalDiff)
          for description, see this method in NbTestCase class
static void assertFile(String test, String pass)
          for description, see this method in NbTestCase class
static void assertFile(String test, String pass, String diff)
          for description, see this method in NbTestCase class
static void assertFile(String test, String pass, String diff, Diff externalDiff)
          for description, see this method in NbTestCase class
static void assertFile(String message, String test, String pass, String diff)
          for description, see this method in NbTestCase class
static void assertFile(String message, String test, String pass, String diff, Diff externalDiff)
          for description, see this method in NbTestCase class
 boolean canRun()
          Checks if a test isn't filtered out by the active filter.
 String getExpectedFail()
          Returns expected fail message.
 void setFilter(Filter filter)
          Sets active filter.
 
Methods inherited from class junit.extensions.TestDecorator
basicRun, countTestCases, getTest, run, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail
 
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, run
 

Constructor Detail

NbTestDecorator

public NbTestDecorator(junit.framework.Test test)
Method Detail

setFilter

public void setFilter(Filter filter)
Sets active filter.

Specified by:
setFilter in interface NbTest
Parameters:
filter - Filter to be set as active for current test, null will reset filtering.

getExpectedFail

public String getExpectedFail()
Returns expected fail message.

Specified by:
getExpectedFail in interface NbTest
Returns:
expected fail message if it's expected this test fail, null otherwise.

canRun

public boolean canRun()
Checks if a test isn't filtered out by the active filter.

Specified by:
canRun in interface NbTest
Returns:
true if the test can run

assertFile

public static void assertFile(String message,
                              String test,
                              String pass,
                              String diff,
                              Diff externalDiff)
for description, see this method in NbTestCase class


assertFile

public static void assertFile(String test,
                              String pass,
                              String diff,
                              Diff externalDiff)
for description, see this method in NbTestCase class


assertFile

public static void assertFile(String message,
                              String test,
                              String pass,
                              String diff)
for description, see this method in NbTestCase class


assertFile

public static void assertFile(String test,
                              String pass,
                              String diff)
for description, see this method in NbTestCase class


assertFile

public static void assertFile(String test,
                              String pass)
for description, see this method in NbTestCase class


assertFile

public static void assertFile(String message,
                              File test,
                              File pass,
                              File diff,
                              Diff externalDiff)
for description, see this method in NbTestCase class


assertFile

public static void assertFile(File test,
                              File pass,
                              File diff,
                              Diff externalDiff)
for description, see this method in NbTestCase class


assertFile

public static void assertFile(String message,
                              File test,
                              File pass,
                              File diff)
for description, see this method in NbTestCase class


assertFile

public static void assertFile(File test,
                              File pass,
                              File diff)
for description, see this method in NbTestCase class


assertFile

public static void assertFile(File test,
                              File pass)
for description, see this method in NbTestCase class


org.netbeans.modules.nbjunit/1 1.29

Built on May 12 2006.  |  Portions Copyright 1997-2006 Sun Microsystems, Inc. All rights reserved.