public class readExternal_Test
extends com.sun.javatest.lib.MultiTest
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. We first write out a string object using writeExternal() method and then read it back, if both string values match then this testcase passes, otherwise it fails.
Constructor and Description |
---|
readExternal_Test() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv) |
com.sun.javatest.Status |
readExternalTest() |