public class NbTestDecorator extends junit.extensions.TestDecorator implements NbTest
Constructor and Description |
---|
NbTestDecorator(junit.framework.Test test) |
Modifier and Type | Method and Description |
---|---|
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.
|
basicRun, countTestCases, getTest, run, toString
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, failNotEquals, failNotSame, failSame, format
public NbTestDecorator(junit.framework.Test test)
test
- junit test instancepublic void setFilter(Filter filter)
public String getExpectedFail()
getExpectedFail
in interface NbTest
public boolean canRun()
public static void assertFile(String message, String test, String pass, String diff, Diff externalDiff)
message
- the detail message for this assertiontest
- first file to be compared, by the convention this should be
the test-generated filepass
- second file to be compared, it should be so called 'golden'
file, which defines the correct content for the test-generated file.diff
- file, where differences will be stored, when null differences
will not be stored. In case it points to directory the result file name
is constructed from the pass argument and placed to that
directory. Constructed file name consists from the name of pass file
(without extension and path) appended by the '.diff'.externalDiff
- instance of class implementing the
Diff
interface, it has to be already
initialized, when passed in this assertFile function.public static void assertFile(String test, String pass, String diff, Diff externalDiff)
test
- first file to be compared, by the convention this should be
the test-generated filepass
- second file to be compared, it should be so called 'golden'
file, which defines the correct content for the test-generated file.diff
- file, where differences will be stored, when null differences
will not be stored. In case it points to directory the result file name
is constructed from the pass argument and placed to that
directory. Constructed file name consists from the name of pass file
(without extension and path) appended by the '.diff'.externalDiff
- instance of class implementing the
Diff
interface, it has to be already
initialized, when passed in this assertFile function.public static void assertFile(String message, String test, String pass, String diff)
message
- the detail message for this assertiontest
- first file to be compared, by the convention this should be
the test-generated filepass
- second file to be compared, it should be so called 'golden'
file, which defines the correct content for the test-generated file.diff
- file, where differences will be stored, when null differences
will not be stored. In case it points to directory the result file name
is constructed from the pass argument and placed to that
directory. Constructed file name consists from the name of pass file
(without extension and path) appended by the '.diff'.public static void assertFile(String test, String pass, String diff)
test
- first file to be compared, by the convention this should be
the test-generated filepass
- second file to be compared, it should be so called 'golden'
file, which defines the correct content for the test-generated file.diff
- file, where differences will be stored, when null differences
will not be stored. In case it points to directory the result file name
is constructed from the pass argument and placed to that
directory. Constructed file name consists from the name of pass file
(without extension and path) appended by the '.diff'.public static void assertFile(String test, String pass)
test
- first file to be compared, by the convention this should be
the test-generated filepass
- second file to be compared, it should be so called 'golden'
file, which defines the correct content for the test-generated file.public static void assertFile(String message, File test, File pass, File diff, Diff externalDiff)
message
- the detail message for this assertiontest
- first file to be compared, by the convention this should be
the test-generated filepass
- second file to be compared, it should be so called 'golden'
file, which defines the correct content for the test-generated file.diff
- file, where differences will be stored, when null differences
will not be stored. In case it points to directory the result file name
is constructed from the pass argument and placed to that
directory. Constructed file name consists from the name of pass file
(without extension and path) appended by the '.diff'.externalDiff
- instance of class implementing the
Diff
interface, it has to be already
initialized, when passed in this assertFile function.public static void assertFile(File test, File pass, File diff, Diff externalDiff)
test
- first file to be compared, by the convention this should be
the test-generated filepass
- second file to be compared, it should be so called 'golden'
file, which defines the correct content for the test-generated file.diff
- file, where differences will be stored, when null differences
will not be stored. In case it points to directory the result file name
is constructed from the pass argument and placed to that
directory. Constructed file name consists from the name of pass file
(without extension and path) appended by the '.diff'.externalDiff
- instance of class implementing the
Diff
interface, it has to be already
initialized, when passed in this assertFile function.public static void assertFile(String message, File test, File pass, File diff)
message
- the detail message for this assertiontest
- first file to be compared, by the convention this should be
the test-generated filepass
- second file to be compared, it should be so called 'golden'
file, which defines the correct content for the test-generated file.diff
- file, where differences will be stored, when null differences
will not be stored. In case it points to directory the result file name
is constructed from the pass argument and placed to that
directory. Constructed file name consists from the name of pass file
(without extension and path) appended by the '.diff'.public static void assertFile(File test, File pass, File diff)
test
- first file to be compared, by the convention this should be
the test-generated filepass
- second file to be compared, it should be so called 'golden'
file, which defines the correct content for the test-generated file.diff
- file, where differences will be stored, when null differences
will not be stored. In case it points to directory the result file name
is constructed from the pass argument and placed to that
directory. Constructed file name consists from the name of pass file
(without extension and path) appended by the '.diff'.public static void assertFile(File test, File pass)
test
- first file to be compared, by the convention this should be
the test-generated filepass
- second file to be compared, it should be so called 'golden'
file, which defines the correct content for the test-generated file.