javax.sql.rowset.serial.SerialJavaObject Java Examples

The following examples show how to use javax.sql.rowset.serial.SerialJavaObject. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SerialJavaObjectTests.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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));
}
 
Example #2
Source File: SerialJavaObjectTests.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@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()));
}
 
Example #3
Source File: SerialJavaObjectTests.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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));
}
 
Example #4
Source File: SerialJavaObjectTests.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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));
}
 
Example #5
Source File: SerialJavaObjectTests.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@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()));
}
 
Example #6
Source File: SerialJavaObjectTests.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@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()));
}
 
Example #7
Source File: SerialJavaObjectTests.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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));
}
 
Example #8
Source File: SerialJavaObjectTests.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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));
}
 
Example #9
Source File: SerialJavaObjectTests.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@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()));
}
 
Example #10
Source File: SerialJavaObjectTests.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@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()));
}
 
Example #11
Source File: SerialJavaObjectTests.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@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()));
}
 
Example #12
Source File: SerialJavaObjectTests.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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));
}
 
Example #13
Source File: SerialJavaObjectTests.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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));
}
 
Example #14
Source File: SerialJavaObjectTests.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
@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()));
}
 
Example #15
Source File: SerialJavaObjectTests.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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));
}
 
Example #16
Source File: SerialJavaObjectTests.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@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()));
}
 
Example #17
Source File: SerialJavaObjectTests.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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));
}
 
Example #18
Source File: SerialJavaObjectTests.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
@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()));
}
 
Example #19
Source File: SerialJavaObjectTests.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test
public void test05() throws Exception {
    String s = "Hello world";
    SerialJavaObject sjo = new SerialJavaObject(s);
    assertTrue(s.equals(sjo.getObject()));
}
 
Example #20
Source File: SerialJavaObjectTests.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Test
public void test05() throws Exception {
    String s = "Hello world";
    SerialJavaObject sjo = new SerialJavaObject(s);
    assertTrue(s.equals(sjo.getObject()));
}
 
Example #21
Source File: SerialJavaObjectTests.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Test
public void test03() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = (SerialJavaObject) sjo.clone();
    assertTrue(sjo.equals(sjo2));
}
 
Example #22
Source File: SerialJavaObjectTests.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Test
public void test05() throws Exception {
    String s = "Hello world";
    SerialJavaObject sjo = new SerialJavaObject(s);
    assertTrue(s.equals(sjo.getObject()));
}
 
Example #23
Source File: SerialJavaObjectTests.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions = NullPointerException.class)
public void test() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(null);
}
 
Example #24
Source File: SerialJavaObjectTests.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions = SerialException.class, enabled = false)
public void test01() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(new RowSetMetaDataImpl());
}
 
Example #25
Source File: SerialJavaObjectTests.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test
public void test03() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = (SerialJavaObject) sjo.clone();
    assertTrue(sjo.equals(sjo2));
}
 
Example #26
Source File: SerialJavaObjectTests.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test
public void test03() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = (SerialJavaObject) sjo.clone();
    assertTrue(sjo.equals(sjo2));
}
 
Example #27
Source File: SerialJavaObjectTests.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions = SerialException.class, enabled = false)
public void test01() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(new RowSetMetaDataImpl());
}
 
Example #28
Source File: SerialJavaObjectTests.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test
public void test05() throws Exception {
    String s = "Hello world";
    SerialJavaObject sjo = new SerialJavaObject(s);
    assertTrue(s.equals(sjo.getObject()));
}
 
Example #29
Source File: SerialJavaObjectTests.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions = NullPointerException.class)
public void test() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(null);
}
 
Example #30
Source File: SerialJavaObjectTests.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions = SerialException.class, enabled = false)
public void test01() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(new RowSetMetaDataImpl());
}