javax.sql.rowset.serial.SerialDatalink Java Examples

The following examples show how to use javax.sql.rowset.serial.SerialDatalink. 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: SerialDataLinkTests.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test03() throws Exception {
    SerialDatalink dl2 = (SerialDatalink) dl.clone();
    assertTrue(dl.equals(dl2));
    SerialDatalink dl3 = new SerialDatalink(u1);
    assertFalse(dl2.equals(dl3));
}
 
Example #2
Source File: SerialDataLinkTests.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validate that a SerialDatalink that is serialized & deserialized is not equal
 * to to a SerialDatalink created using a different URL
 */
@Test
public void test05() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink d3 = new SerialDatalink(u1);
    assertFalse(d3.equals(dl2));
}
 
Example #3
Source File: SQLOutputImplTests.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test09() throws Exception {
    URL u = new URL("http://www.oracle.com/");
    outImpl.writeURL(u);
    SerialDatalink sdl = (SerialDatalink) results.get(0);
    URL u2 = sdl.getDatalink();
    assertTrue(u2.equals(u));
    assertTrue(u2.sameFile(u));
}
 
Example #4
Source File: SQLOutputImplTests.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test09() throws Exception {
    URL u = new URL("http://www.oracle.com/");
    outImpl.writeURL(u);
    SerialDatalink sdl = (SerialDatalink) results.get(0);
    URL u2 = sdl.getDatalink();
    assertTrue(u2.equals(u));
    assertTrue(u2.sameFile(u));
}
 
Example #5
Source File: SerialDataLinkTests.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test04() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink dl3 = new SerialDatalink(u);
    assertTrue(dl.equals(dl2));
    assertTrue(dl3.equals(dl2));
}
 
Example #6
Source File: SerialDataLinkTests.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validate that a SerialDatalink that is serialized & deserialized is not equal
 * to to a SerialDatalink created using a different URL
 */
@Test
public void test05() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink d3 = new SerialDatalink(u1);
    assertFalse(d3.equals(dl2));
}
 
Example #7
Source File: SQLOutputImplTests.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test09() throws Exception {
    URL u = new URL("http://www.oracle.com/");
    outImpl.writeURL(u);
    SerialDatalink sdl = (SerialDatalink) results.get(0);
    URL u2 = sdl.getDatalink();
    assertTrue(u2.equals(u));
    assertTrue(u2.sameFile(u));
}
 
Example #8
Source File: SerialDataLinkTests.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test03() throws Exception {
    SerialDatalink dl2 = (SerialDatalink) dl.clone();
    assertTrue(dl.equals(dl2));
    SerialDatalink dl3 = new SerialDatalink(u1);
    assertFalse(dl2.equals(dl3));
}
 
Example #9
Source File: SerialDataLinkTests.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test04() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink dl3 = new SerialDatalink(u);
    assertTrue(dl.equals(dl2));
    assertTrue(dl3.equals(dl2));
}
 
Example #10
Source File: SerialDataLinkTests.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validate that a SerialDatalink that is serialized & deserialized is not equal
 * to to a SerialDatalink created using a different URL
 */
@Test
public void test05() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink d3 = new SerialDatalink(u1);
    assertFalse(d3.equals(dl2));
}
 
Example #11
Source File: SQLOutputImplTests.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test09() throws Exception {
    URL u = new URL("http://www.oracle.com/");
    outImpl.writeURL(u);
    SerialDatalink sdl = (SerialDatalink) results.get(0);
    URL u2 = sdl.getDatalink();
    assertTrue(u2.equals(u));
    assertTrue(u2.sameFile(u));
}
 
Example #12
Source File: SerialDataLinkTests.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test03() throws Exception {
    SerialDatalink dl2 = (SerialDatalink) dl.clone();
    assertTrue(dl.equals(dl2));
    SerialDatalink dl3 = new SerialDatalink(u1);
    assertFalse(dl2.equals(dl3));
}
 
Example #13
Source File: SerialDataLinkTests.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test04() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink dl3 = new SerialDatalink(u);
    assertTrue(dl.equals(dl2));
    assertTrue(dl3.equals(dl2));
}
 
Example #14
Source File: SerialDataLinkTests.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validate that a SerialDatalink that is serialized & deserialized is not equal
 * to to a SerialDatalink created using a different URL
 */
@Test
public void test05() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink d3 = new SerialDatalink(u1);
    assertFalse(d3.equals(dl2));
}
 
Example #15
Source File: SQLOutputImplTests.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test09() throws Exception {
    URL u = new URL("http://www.oracle.com/");
    outImpl.writeURL(u);
    SerialDatalink sdl = (SerialDatalink) results.get(0);
    URL u2 = sdl.getDatalink();
    assertTrue(u2.equals(u));
    assertTrue(u2.sameFile(u));
}
 
Example #16
Source File: SerialDataLinkTests.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test03() throws Exception {
    SerialDatalink dl2 = (SerialDatalink) dl.clone();
    assertTrue(dl.equals(dl2));
    SerialDatalink dl3 = new SerialDatalink(u1);
    assertFalse(dl2.equals(dl3));
}
 
Example #17
Source File: SerialDataLinkTests.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test04() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink dl3 = new SerialDatalink(u);
    assertTrue(dl.equals(dl2));
    assertTrue(dl3.equals(dl2));
}
 
Example #18
Source File: SerialDataLinkTests.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validate that a SerialDatalink that is serialized & deserialized is not equal
 * to to a SerialDatalink created using a different URL
 */
@Test
public void test05() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink d3 = new SerialDatalink(u1);
    assertFalse(d3.equals(dl2));
}
 
Example #19
Source File: SQLOutputImplTests.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test09() throws Exception {
    URL u = new URL("http://www.oracle.com/");
    outImpl.writeURL(u);
    SerialDatalink sdl = (SerialDatalink) results.get(0);
    URL u2 = sdl.getDatalink();
    assertTrue(u2.equals(u));
    assertTrue(u2.sameFile(u));
}
 
Example #20
Source File: SerialDataLinkTests.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test03() throws Exception {
    SerialDatalink dl2 = (SerialDatalink) dl.clone();
    assertTrue(dl.equals(dl2));
    SerialDatalink dl3 = new SerialDatalink(u1);
    assertFalse(dl2.equals(dl3));
}
 
Example #21
Source File: SerialDataLinkTests.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test04() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink dl3 = new SerialDatalink(u);
    assertTrue(dl.equals(dl2));
    assertTrue(dl3.equals(dl2));
}
 
Example #22
Source File: SerialDataLinkTests.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validate that a SerialDatalink that is serialized & deserialized is not equal
 * to to a SerialDatalink created using a different URL
 */
@Test
public void test05() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink d3 = new SerialDatalink(u1);
    assertFalse(d3.equals(dl2));
}
 
Example #23
Source File: SerialDataLinkTests.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test03() throws Exception {
    SerialDatalink dl2 = (SerialDatalink) dl.clone();
    assertTrue(dl.equals(dl2));
    SerialDatalink dl3 = new SerialDatalink(u1);
    assertFalse(dl2.equals(dl3));
}
 
Example #24
Source File: SerialDataLinkTests.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test03() throws Exception {
    SerialDatalink dl2 = (SerialDatalink) dl.clone();
    assertTrue(dl.equals(dl2));
    SerialDatalink dl3 = new SerialDatalink(u1);
    assertFalse(dl2.equals(dl3));
}
 
Example #25
Source File: SerialDataLinkTests.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test04() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink dl3 = new SerialDatalink(u);
    assertTrue(dl.equals(dl2));
    assertTrue(dl3.equals(dl2));
}
 
Example #26
Source File: SerialDataLinkTests.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validate that a SerialDatalink that is serialized & deserialized is not equal
 * to to a SerialDatalink created using a different URL
 */
@Test
public void test05() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink d3 = new SerialDatalink(u1);
    assertFalse(d3.equals(dl2));
}
 
Example #27
Source File: SQLOutputImplTests.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test09() throws Exception {
    URL u = new URL("http://www.oracle.com/");
    outImpl.writeURL(u);
    SerialDatalink sdl = (SerialDatalink) results.get(0);
    URL u2 = sdl.getDatalink();
    assertTrue(u2.equals(u));
    assertTrue(u2.sameFile(u));
}
 
Example #28
Source File: SQLOutputImplTests.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Test(enabled = true)
public void test09() throws Exception {
    URL u = new URL("http://www.oracle.com/");
    outImpl.writeURL(u);
    SerialDatalink sdl = (SerialDatalink) results.get(0);
    URL u2 = sdl.getDatalink();
    assertTrue(u2.equals(u));
    assertTrue(u2.sameFile(u));
}
 
Example #29
Source File: SerialDataLinkTests.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Validate that a SerialDatalink that is serialized & deserialized is not equal
 * to to a SerialDatalink created using a different URL
 */
@Test
public void test05() throws Exception {
    SerialDatalink dl2 = serializeDeserializeObject(dl);
    SerialDatalink d3 = new SerialDatalink(u1);
    assertFalse(d3.equals(dl2));
}
 
Example #30
Source File: SerialDataLinkTests.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void test03() throws Exception {
    SerialDatalink dl2 = (SerialDatalink) dl.clone();
    assertTrue(dl.equals(dl2));
    SerialDatalink dl3 = new SerialDatalink(u1);
    assertFalse(dl2.equals(dl3));
}