Exemplo n.º 1
0
  /** java.io.ObjectStreamClass#toString() */
  public void test_toString() {
    ObjectStreamClass osc = ObjectStreamClass.lookup(DummyClass.class);
    String oscString = osc.toString();

    // The previous test was more specific than the spec so it was replaced
    // with the test below
    assertTrue(
        "toString returned incorrect string: " + osc.toString(),
        oscString.indexOf("serialVersionUID") >= 0 && oscString.indexOf("999999999999999L") >= 0);
  }