javax.sql.rowset.serial.SerialStruct Java Examples
The following examples show how to use
javax.sql.rowset.serial.SerialStruct.
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: SerialStructTests.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * 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 #2
Source File: SQLOutputImplTests.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@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 File: SQLOutputImplTests.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@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
Source File: SerialStructTests.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * 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
Source File: SQLOutputImplTests.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
@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
Source File: SQLOutputImplTests.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@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
Source File: SerialStructTests.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * 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 File: SQLOutputImplTests.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@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 File: SQLOutputImplTests.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@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 File: SerialStructTests.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * 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
Source File: SQLOutputImplTests.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@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
Source File: SQLOutputImplTests.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@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
Source File: SerialStructTests.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * 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
Source File: SQLOutputImplTests.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
@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 #15
Source File: SQLOutputImplTests.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@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 #16
Source File: SQLOutputImplTests.java From hottub with GNU General Public License v2.0 | 5 votes |
@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 #17
Source File: SQLOutputImplTests.java From hottub with GNU General Public License v2.0 | 5 votes |
@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 #18
Source File: SerialStructTests.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * 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 #19
Source File: SQLOutputImplTests.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@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
Source File: SQLOutputImplTests.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@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 #21
Source File: SerialStructTests.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * 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 #22
Source File: SQLOutputImplTests.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@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 File: SQLOutputImplTests.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@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 #24
Source File: SerialStructTests.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * 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 #25
Source File: SerialStructTests.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * 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 #26
Source File: SQLOutputImplTests.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@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 #27
Source File: SerialStructTests.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Test public void test01() throws Exception { SerialStruct ss = new SerialStruct(struct, map); assertEquals(ss.getSQLTypeName(), sqlType); }
Example #28
Source File: SerialStructTests.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Test public void test02() throws Exception { SerialStruct ss = new SerialStruct(hero, map); assertEquals(ss.getSQLTypeName(), sqlType); }
Example #29
Source File: SerialStructTests.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Test public void test03() throws Exception { SerialStruct ss = new SerialStruct(struct, map); assertTrue(Arrays.equals(attributes, ss.getAttributes())); }
Example #30
Source File: SerialStructTests.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@Test public void test04() throws Exception { SerialStruct ss = new SerialStruct(hero, map); assertTrue(Arrays.equals(attributes, ss.getAttributes())); }