nThe @Ignore annotation tells the runner to
ignore the test and report that it was not run. You can pass in a string as a parameter to @Ignore annotation that explains
why the test was
ignored.
nE.g. The new JUnit will not run a test method
annotated with @Ignore(“Database
is down”) but will only report
it.
n
n // Java doesn't yet support the UTF-32BE and UTF32LE
encodings
n@Ignore(“Java doesn't yet support the
UTF-32BE”)
n@Test public void
testUTF32BE()
nthrows
ParsingException, IOException, XIncludeException {
n File input = new
File("data/xinclude/input/UTF32BE.xml");
n Document doc =
builder.build(input);
n Document result =
XIncluder.resolve(doc);
n Document
expectedResult = builder.build(
n new
File(outputDir, "UTF32BE.xml"));
n
assertEquals(expectedResult, result);
n}