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

The following examples show how to use javax.sql.rowset.serial.SerialStruct. 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(enabled = true)
public void test08() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    Struct s = new StubStruct(sqlType, attributes);
    outImpl.writeStruct(s);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 2
@Test(enabled = true)
public void test10() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    outImpl.writeObject(hero);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 3
Source Project: jdk8u_jdk   Source File: SQLOutputImplTests.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test08() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    Struct s = new StubStruct(sqlType, attributes);
    outImpl.writeStruct(s);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 4
/**
 * Validate that a SerialStruct that is serialized & deserialized is equal
 * to itself
 */
@Test
public void test08() throws Exception {
    SerialStruct ss = new SerialStruct(struct, map);
    SerialStruct ss1 = serializeDeserializeObject(ss);;
    assertTrue(ss.equals(ss1));
}
 
Example 5
@Test(enabled = true)
public void test08() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    Struct s = new StubStruct(sqlType, attributes);
    outImpl.writeStruct(s);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 6
@Test(enabled = true)
public void test10() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    outImpl.writeObject(hero);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 7
/**
 * Validate that a SerialStruct that is serialized & deserialized is equal
 * to itself
 */
@Test
public void test08() throws Exception {
    SerialStruct ss = new SerialStruct(struct, map);
    SerialStruct ss1 = serializeDeserializeObject(ss);;
    assertTrue(ss.equals(ss1));
}
 
Example 8
Source Project: jdk8u60   Source File: SQLOutputImplTests.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test08() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    Struct s = new StubStruct(sqlType, attributes);
    outImpl.writeStruct(s);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 9
Source Project: jdk8u60   Source File: SQLOutputImplTests.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test10() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    outImpl.writeObject(hero);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 10
Source Project: jdk8u60   Source File: SerialStructTests.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validate that a SerialStruct that is serialized & deserialized is equal
 * to itself
 */
@Test
public void test08() throws Exception {
    SerialStruct ss = new SerialStruct(struct, map);
    SerialStruct ss1 = serializeDeserializeObject(ss);;
    assertTrue(ss.equals(ss1));
}
 
Example 11
@Test(enabled = true)
public void test08() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    Struct s = new StubStruct(sqlType, attributes);
    outImpl.writeStruct(s);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 12
@Test(enabled = true)
public void test10() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    outImpl.writeObject(hero);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 13
/**
 * Validate that a SerialStruct that is serialized & deserialized is equal
 * to itself
 */
@Test
public void test08() throws Exception {
    SerialStruct ss = new SerialStruct(struct, map);
    SerialStruct ss1 = serializeDeserializeObject(ss);;
    assertTrue(ss.equals(ss1));
}
 
Example 14
@Test(enabled = true)
public void test08() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    Struct s = new StubStruct(sqlType, attributes);
    outImpl.writeStruct(s);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 15
Source Project: jdk8u_jdk   Source File: SQLOutputImplTests.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test10() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    outImpl.writeObject(hero);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 16
Source Project: jdk8u_jdk   Source File: SerialStructTests.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validate that a SerialStruct that is serialized & deserialized is equal
 * to itself
 */
@Test
public void test08() throws Exception {
    SerialStruct ss = new SerialStruct(struct, map);
    SerialStruct ss1 = serializeDeserializeObject(ss);;
    assertTrue(ss.equals(ss1));
}
 
Example 17
/**
 * Validate that a SerialStruct that is serialized & deserialized is equal
 * to itself
 */
@Test
public void test08() throws Exception {
    SerialStruct ss = new SerialStruct(struct, map);
    SerialStruct ss1 = serializeDeserializeObject(ss);;
    assertTrue(ss.equals(ss1));
}
 
Example 18
@Test(enabled = true)
public void test08() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    Struct s = new StubStruct(sqlType, attributes);
    outImpl.writeStruct(s);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 19
@Test(enabled = true)
public void test10() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    outImpl.writeObject(hero);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 20
/**
 * Validate that a SerialStruct that is serialized & deserialized is equal
 * to itself
 */
@Test
public void test08() throws Exception {
    SerialStruct ss = new SerialStruct(struct, map);
    SerialStruct ss1 = serializeDeserializeObject(ss);;
    assertTrue(ss.equals(ss1));
}
 
Example 21
Source Project: jdk8u-jdk   Source File: SQLOutputImplTests.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test08() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    Struct s = new StubStruct(sqlType, attributes);
    outImpl.writeStruct(s);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 22
Source Project: jdk8u-jdk   Source File: SQLOutputImplTests.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test10() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    outImpl.writeObject(hero);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 23
Source Project: jdk8u-jdk   Source File: SerialStructTests.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validate that a SerialStruct that is serialized & deserialized is equal
 * to itself
 */
@Test
public void test08() throws Exception {
    SerialStruct ss = new SerialStruct(struct, map);
    SerialStruct ss1 = serializeDeserializeObject(ss);;
    assertTrue(ss.equals(ss1));
}
 
Example 24
Source Project: hottub   Source File: SQLOutputImplTests.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test08() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    Struct s = new StubStruct(sqlType, attributes);
    outImpl.writeStruct(s);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 25
Source Project: hottub   Source File: SQLOutputImplTests.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test10() throws Exception {
    Object[] attributes = new Object[]{"Bruce", "Wayne", 1939,
        "Batman"};
    outImpl.writeObject(hero);
    SerialStruct ss = (SerialStruct) results.get(0);
    assertTrue(Arrays.equals(attributes, (Object[]) ss.getAttributes()));
    assertTrue(sqlType.equals(ss.getSQLTypeName()));
}
 
Example 26
Source Project: hottub   Source File: SerialStructTests.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validate that a SerialStruct that is serialized & deserialized is equal
 * to itself
 */
@Test
public void test08() throws Exception {
    SerialStruct ss = new SerialStruct(struct, map);
    SerialStruct ss1 = serializeDeserializeObject(ss);;
    assertTrue(ss.equals(ss1));
}
 
Example 27
@Test
public void test01() throws Exception {
    SerialStruct ss = new SerialStruct(struct, map);
    assertEquals(ss.getSQLTypeName(), sqlType);
}
 
Example 28
@Test
public void test02() throws Exception {
    SerialStruct ss = new SerialStruct(hero, map);
    assertEquals(ss.getSQLTypeName(), sqlType);
}
 
Example 29
@Test
public void test04() throws Exception {
    SerialStruct ss = new SerialStruct(hero, map);
    assertTrue(Arrays.equals(attributes,
            ss.getAttributes()));
}
 
Example 30
Source Project: jdk8u_jdk   Source File: SerialStructTests.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Test
public void test04() throws Exception {
    SerialStruct ss = new SerialStruct(hero, map);
    assertTrue(Arrays.equals(attributes,
            ss.getAttributes()));
}