Java 类javax.sql.rowset.serial.SerialJavaObject 实例源码

项目:jdk8u-jdk    文件:SerialJavaObjectTests.java   
@Test
public void test02() throws Exception {
    SerialException e = new SerialException();
    SerialJavaObject sjo = new SerialJavaObject(e);
    Field[] f = e.getClass().getFields();
    assertTrue(Arrays.equals(f, sjo.getFields()));
    assertFalse(Arrays.equals("hello".getClass().getFields(),
            sjo.getFields()));
}
项目:jdk8u-jdk    文件:SerialJavaObjectTests.java   
/**
 * Validate that a SerialJavaObject that is serialized & deserialized is
 * equal to itself
 */
@Test
public void test04() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = serializeDeserializeObject(sjo);
    assertTrue(sjo.equals(sjo2));
}
项目:openjdk-jdk10    文件:SerialJavaObjectTests.java   
@Test
public void test02() throws Exception {
    SerialException e = new SerialException();
    SerialJavaObject sjo = new SerialJavaObject(e);
    Field[] f = e.getClass().getFields();
    assertTrue(Arrays.equals(f, sjo.getFields()));
    assertFalse(Arrays.equals("hello".getClass().getFields(),
            sjo.getFields()));
}
项目:openjdk-jdk10    文件:SerialJavaObjectTests.java   
/**
 * Validate that a SerialJavaObject that is serialized & deserialized is
 * equal to itself
 */
@Test
public void test04() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = serializeDeserializeObject(sjo);
    assertTrue(sjo.equals(sjo2));
}
项目:openjdk9    文件:SerialJavaObjectTests.java   
@Test
public void test02() throws Exception {
    SerialException e = new SerialException();
    SerialJavaObject sjo = new SerialJavaObject(e);
    Field[] f = e.getClass().getFields();
    assertTrue(Arrays.equals(f, sjo.getFields()));
    assertFalse(Arrays.equals("hello".getClass().getFields(),
            sjo.getFields()));
}
项目:openjdk9    文件:SerialJavaObjectTests.java   
/**
 * Validate that a SerialJavaObject that is serialized & deserialized is
 * equal to itself
 */
@Test
public void test04() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = serializeDeserializeObject(sjo);
    assertTrue(sjo.equals(sjo2));
}
项目:jdk8u_jdk    文件:SerialJavaObjectTests.java   
@Test
public void test02() throws Exception {
    SerialException e = new SerialException();
    SerialJavaObject sjo = new SerialJavaObject(e);
    Field[] f = e.getClass().getFields();
    assertTrue(Arrays.equals(f, sjo.getFields()));
    assertFalse(Arrays.equals("hello".getClass().getFields(),
            sjo.getFields()));
}
项目:jdk8u_jdk    文件:SerialJavaObjectTests.java   
/**
 * Validate that a SerialJavaObject that is serialized & deserialized is
 * equal to itself
 */
@Test
public void test04() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = serializeDeserializeObject(sjo);
    assertTrue(sjo.equals(sjo2));
}
项目:lookaside_java-1.8.0-openjdk    文件:SerialJavaObjectTests.java   
@Test
public void test02() throws Exception {
    SerialException e = new SerialException();
    SerialJavaObject sjo = new SerialJavaObject(e);
    Field[] f = e.getClass().getFields();
    assertTrue(Arrays.equals(f, sjo.getFields()));
    assertFalse(Arrays.equals("hello".getClass().getFields(),
            sjo.getFields()));
}
项目:lookaside_java-1.8.0-openjdk    文件:SerialJavaObjectTests.java   
/**
 * Validate that a SerialJavaObject that is serialized & deserialized is
 * equal to itself
 */
@Test
public void test04() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = serializeDeserializeObject(sjo);
    assertTrue(sjo.equals(sjo2));
}
项目:jdk8u-jdk    文件:SerialJavaObjectTests.java   
@Test(expectedExceptions = NullPointerException.class)
public void test() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(null);
}
项目:jdk8u-jdk    文件:SerialJavaObjectTests.java   
@Test(expectedExceptions = SerialException.class, enabled = false)
public void test01() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(new RowSetMetaDataImpl());
}
项目:jdk8u-jdk    文件:SerialJavaObjectTests.java   
@Test
public void test03() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = (SerialJavaObject) sjo.clone();
    assertTrue(sjo.equals(sjo2));
}
项目:jdk8u-jdk    文件:SerialJavaObjectTests.java   
@Test
public void test05() throws Exception {
    String s = "Hello world";
    SerialJavaObject sjo = new SerialJavaObject(s);
    assertTrue(s.equals(sjo.getObject()));
}
项目:openjdk-jdk10    文件:SerialJavaObjectTests.java   
@Test(expectedExceptions = NullPointerException.class)
public void test() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(null);
}
项目:openjdk-jdk10    文件:SerialJavaObjectTests.java   
@Test(expectedExceptions = SerialException.class, enabled = false)
public void test01() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(new RowSetMetaDataImpl());
}
项目:openjdk-jdk10    文件:SerialJavaObjectTests.java   
@Test
public void test03() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = (SerialJavaObject) sjo.clone();
    assertTrue(sjo.equals(sjo2));
}
项目:openjdk-jdk10    文件:SerialJavaObjectTests.java   
@Test
public void test05() throws Exception {
    String s = "Hello world";
    SerialJavaObject sjo = new SerialJavaObject(s);
    assertTrue(s.equals(sjo.getObject()));
}
项目:openjdk9    文件:SerialJavaObjectTests.java   
@Test(expectedExceptions = NullPointerException.class)
public void test() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(null);
}
项目:openjdk9    文件:SerialJavaObjectTests.java   
@Test(expectedExceptions = SerialException.class, enabled = false)
public void test01() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(new RowSetMetaDataImpl());
}
项目:openjdk9    文件:SerialJavaObjectTests.java   
@Test
public void test03() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = (SerialJavaObject) sjo.clone();
    assertTrue(sjo.equals(sjo2));
}
项目:openjdk9    文件:SerialJavaObjectTests.java   
@Test
public void test05() throws Exception {
    String s = "Hello world";
    SerialJavaObject sjo = new SerialJavaObject(s);
    assertTrue(s.equals(sjo.getObject()));
}
项目:jdk8u_jdk    文件:SerialJavaObjectTests.java   
@Test(expectedExceptions = NullPointerException.class)
public void test() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(null);
}
项目:jdk8u_jdk    文件:SerialJavaObjectTests.java   
@Test(expectedExceptions = SerialException.class, enabled = false)
public void test01() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(new RowSetMetaDataImpl());
}
项目:jdk8u_jdk    文件:SerialJavaObjectTests.java   
@Test
public void test03() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = (SerialJavaObject) sjo.clone();
    assertTrue(sjo.equals(sjo2));
}
项目:jdk8u_jdk    文件:SerialJavaObjectTests.java   
@Test
public void test05() throws Exception {
    String s = "Hello world";
    SerialJavaObject sjo = new SerialJavaObject(s);
    assertTrue(s.equals(sjo.getObject()));
}
项目:lookaside_java-1.8.0-openjdk    文件:SerialJavaObjectTests.java   
@Test(expectedExceptions = NullPointerException.class)
public void test() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(null);
}
项目:lookaside_java-1.8.0-openjdk    文件:SerialJavaObjectTests.java   
@Test(expectedExceptions = SerialException.class, enabled = false)
public void test01() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(new RowSetMetaDataImpl());
}
项目:lookaside_java-1.8.0-openjdk    文件:SerialJavaObjectTests.java   
@Test
public void test03() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = (SerialJavaObject) sjo.clone();
    assertTrue(sjo.equals(sjo2));
}
项目:lookaside_java-1.8.0-openjdk    文件:SerialJavaObjectTests.java   
@Test
public void test05() throws Exception {
    String s = "Hello world";
    SerialJavaObject sjo = new SerialJavaObject(s);
    assertTrue(s.equals(sjo.getObject()));
}