if (runsFromAnt()) {
System.out.println("Note: running version tests (FROM_ANT=true)");
assertVersion(new JsonFactory().version(), MAJOR_VERSION, MINOR_VERSION);
assertVersion(new ReaderBasedParser(getIOContext(), 0, null, null, null).version(),
MAJOR_VERSION, MINOR_VERSION);
assertVersion(new WriterBasedGenerator(getIOContext(), 0, null, null).version(),
MAJOR_VERSION, MINOR_VERSION);
} else {
System.out.println("Skipping version test (FROM_ANT=false)");
}
}