Java Code Examples for javax.sql.rowset.serial.SerialJavaObject

The following examples show how to use javax.sql.rowset.serial.SerialJavaObject. These examples are extracted from open source projects. 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
@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 2
/**
 * 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 3
@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 4
/**
 * 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
@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
/**
 * 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 7
@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 8
/**
 * 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
@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
/**
 * 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 11
@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
/**
 * 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
@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 14
/**
 * 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 15
Source Project: hottub   Source File: SerialJavaObjectTests.java    License: 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 16
Source Project: hottub   Source File: SerialJavaObjectTests.java    License: 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 17
@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 18
/**
 * 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 19
@Test(expectedExceptions = NullPointerException.class)
public void test() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(null);
}
 
Example 20
@Test(expectedExceptions = SerialException.class, enabled = false)
public void test01() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(new RowSetMetaDataImpl());
}
 
Example 21
@Test
public void test03() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = (SerialJavaObject) sjo.clone();
    assertTrue(sjo.equals(sjo2));
}
 
Example 22
@Test
public void test05() throws Exception {
    String s = "Hello world";
    SerialJavaObject sjo = new SerialJavaObject(s);
    assertTrue(s.equals(sjo.getObject()));
}
 
Example 23
@Test(expectedExceptions = NullPointerException.class)
public void test() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(null);
}
 
Example 24
@Test(expectedExceptions = SerialException.class, enabled = false)
public void test01() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(new RowSetMetaDataImpl());
}
 
Example 25
@Test
public void test03() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = (SerialJavaObject) sjo.clone();
    assertTrue(sjo.equals(sjo2));
}
 
Example 26
@Test
public void test05() throws Exception {
    String s = "Hello world";
    SerialJavaObject sjo = new SerialJavaObject(s);
    assertTrue(s.equals(sjo.getObject()));
}
 
Example 27
@Test(expectedExceptions = NullPointerException.class)
public void test() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(null);
}
 
Example 28
@Test(expectedExceptions = SerialException.class, enabled = false)
public void test01() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject(new RowSetMetaDataImpl());
}
 
Example 29
@Test
public void test03() throws Exception {
    SerialJavaObject sjo = new SerialJavaObject("Hello");
    SerialJavaObject sjo2 = (SerialJavaObject) sjo.clone();
    assertTrue(sjo.equals(sjo2));
}
 
Example 30
@Test
public void test05() throws Exception {
    String s = "Hello world";
    SerialJavaObject sjo = new SerialJavaObject(s);
    assertTrue(s.equals(sjo.getObject()));
}