Lines Matching defs:object

169      * Returns golden file for an object being tested.
188 * returned by {@link #getData() getData()}to golden files, each object to
211 * Serializes specified object to an output stream.
222 * Deserializes single object from an input stream.
244 * initial object used for creating serialized form
246 * deserialized object
261 * Comparator for verifying that deserialized object is the same as initial.
325 * <code>object</code>.
329 * selected as </code>comparator</code>.<br>- if passed <code>object</code>
332 * method tries to select one of known comparators basing on <code>object's</code>
333 * class,for example, if passed <code>object</code> is instance of
339 * @param object -
340 * object to be compared
341 * @return object's comparator
344 Object object) throws Exception {
350 Method m = object.getClass().getMethod("equals",
361 if (object instanceof java.lang.Throwable) {
363 } else if (object instanceof java.security.PermissionCollection) {
371 * Verifies that object deserialized from golden file correctly.
374 * verifyGolden(test, object, defineComparator(test, object));
378 * @param object -
381 public static void verifyGolden(TestCase test, Object object)
384 verifyGolden(test, object, defineComparator(test, object));
388 * Verifies that object deserialized from golden file correctly.
392 * folder, reads an object from the loaded file and compares it with
393 * <code>object</code> using specified <code>comparator</code>.
397 * @param object-
402 public static void verifyGolden(TestCase test, Object object,
409 comparator.assertDeserialized((Serializable) object, deserialized);
417 * verifyGolden(test, objects, defineComparator(test, object[0]));
437 * folder, from each loaded file it reads an object from and compares it
438 * with corresponding object in provided array (i.e. <code>objects[N]</code>)
440 * in object's array.)
461 * Verifies that object can be smoothly serialized/deserialized.
464 * verifySelf(object, defineComparator(null, object));
466 * @param object -
469 public static void verifySelf(Object object)
472 verifySelf(object, defineComparator(null, object));
476 * Verifies that object can be smoothly serialized/deserialized.
478 * The method serialize/deserialize <code>object</code> and compare it
479 * with initial <code>object</code>.
481 * @param object -
482 * object to be serialized/deserialized
484 * for comparing serialized/deserialized object with initial
485 * object
487 public static void verifySelf(Object object, SerializableAssert comparator)
490 Serializable initial = (Serializable) object;
500 * verifySelf(objects, defineComparator(null, object[0]));
516 * The method serialize/deserialize each object in <code>objects</code>
517 * array and compare it with initial object.
522 * for comparing serialized/deserialized object with initial
523 * object
562 * @param object -
563 * object to be serialized
568 Object object) throws IOException {
583 putObjectToStream(object, new FileOutputStream(goldenFile));
591 * Copies an object by serializing/deserializing it.
594 * an object to be copied
595 * @return copy of provided object