use of org.teiid.dqp.message.RequestID in project teiid by teiid.
the class TestRequestID method testEquivalence4.
public void testEquivalence4() {
// $NON-NLS-1$
RequestID r1 = new RequestID("100", 200);
// $NON-NLS-1$
RequestID r2 = new RequestID("100", 201);
UnitTestUtil.helpTestEquivalence(1, r1, r2);
}
use of org.teiid.dqp.message.RequestID in project teiid by teiid.
the class TestRequestID method testGetters2.
public void testGetters2() {
long executionID = 200;
RequestID r = new RequestID(executionID);
// $NON-NLS-1$
assertEquals("Lost connectionID", null, r.getConnectionID());
// $NON-NLS-1$
assertEquals("Lost executionID", executionID, r.getExecutionID());
// $NON-NLS-1$ //$NON-NLS-2$
assertEquals("Wrong string representation", "C.200", r.toString());
}
use of org.teiid.dqp.message.RequestID in project teiid by teiid.
the class TestRequestID method testEquivalence7.
public void testEquivalence7() {
RequestID r1 = new RequestID(200);
// $NON-NLS-1$
RequestID r2 = new RequestID("100", 200);
UnitTestUtil.helpTestEquivalence(1, r1, r2);
}
use of org.teiid.dqp.message.RequestID in project teiid by teiid.
the class TestRequestID method testEquivalence2.
public void testEquivalence2() {
// $NON-NLS-1$
RequestID r1 = new RequestID("100", 200);
// $NON-NLS-1$
RequestID r2 = new RequestID("100", 200);
UnitTestUtil.helpTestEquivalence(0, r1, r2);
}
use of org.teiid.dqp.message.RequestID in project teiid by teiid.
the class TestRequestID method testSerialize1.
public void testSerialize1() throws Exception {
// $NON-NLS-1$
RequestID copy = UnitTestUtil.helpSerialize(new RequestID("1", 100));
// $NON-NLS-1$
assertEquals("1", copy.getConnectionID());
assertEquals(100, copy.getExecutionID());
// $NON-NLS-1$
assertEquals("1.100", copy.toString());
}
Aggregations