use of commonj.sdo.Sequence in project eclipselink by eclipse-ee4j.
the class ChangeSummaryGetOldSequenceTestCases method testGetOldSequenceDetachedAddress.
public void testGetOldSequenceDetachedAddress() {
cs.beginLogging();
address1Object.detach();
Sequence oldSeq = cs.getOldSequence(address1Object);
assertNotNull(oldSeq);
assertEquals(4, ((SDOSequence) oldSeq).getSettings().size());
assertEquals("name", oldSeq.getProperty(0).getName());
assertEquals("street", oldSeq.getProperty(1).getName());
assertEquals("city", oldSeq.getProperty(2).getName());
assertEquals("state", oldSeq.getProperty(3).getName());
assertEquals("Alice Smith", oldSeq.getValue(0));
assertEquals("123 Maple Street", oldSeq.getValue(1));
assertEquals("Mill Valley", oldSeq.getValue(2));
assertEquals("CA", oldSeq.getValue(3));
}
use of commonj.sdo.Sequence in project eclipselink by eclipse-ee4j.
the class ChangeSummaryGetOldSequenceTestCases method testGetOldSequenceNotLoggingNull.
public void testGetOldSequenceNotLoggingNull() {
purchaseOrderObject.unset("address");
cs.endLogging();
address1Object.unset(address1Object.getInstanceProperty("city"));
Sequence oldAddressSeq = cs.getOldSequence(address1Object);
assertNotNull(oldAddressSeq);
}
Aggregations