Class Overview
Set of basic unit tests for verifying basic generator
features.
Summary
[Expand]
Inherited Methods |
From class
com.fasterxml.jackson.test.BaseTest
void
|
assertToken(JsonToken expToken, JsonParser jp)
|
void
|
assertToken(JsonToken expToken, JsonToken actToken)
|
void
|
assertType(Object ob, Class<?> expType)
|
JsonParser
|
createParserUsingReader(String input)
|
JsonParser
|
createParserUsingReader(JsonFactory f, String input)
|
JsonParser
|
createParserUsingStream(JsonFactory f, String input, String encoding)
|
JsonParser
|
createParserUsingStream(String input, String encoding)
|
byte[]
|
encodeInUTF32BE(String input)
|
String
|
fieldNameFor(int index)
|
void
|
fieldNameFor(StringBuilder sb, int index)
|
String
|
getAndVerifyText(JsonParser jp)
Method that gets textual contents of the current token using
available methods, and ensures results are consistent, before
returning them
|
String
|
quote(String str)
|
void
|
verifyException(Throwable e, String... matches)
|
void
|
verifyFieldName(JsonParser jp, String expName)
|
void
|
verifyIntValue(JsonParser jp, long expValue)
|
void
|
verifyJsonSpecSampleDoc(JsonParser jp, boolean verifyContents)
|
void
|
verifyJsonSpecSampleDoc(JsonParser jp, boolean verifyContents, boolean requireNumbers)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
TestGeneratorMisc
()
Public Methods
public
void
testBinaryWrite
()
This is really inadequate test, all in all, but should serve
as some kind of sanity check. Reader-side should more thoroughly
test things, as it does need writers to construct the data first.
public
void
testIsClosed
()
public
void
testLongerObjects
()
Unit test that tries to trigger buffer-boundary conditions
public
void
testRawValue
()
public
void
testSimpleWriteObject
()