Fix CallHistoryImpl and tests

cusax-fix
Damian Minkov 20 years ago
parent c239edb6cc
commit cd8aaa93c4

@ -371,7 +371,7 @@ else if(propName.equals(STRUCTURE_NAMES[5]))
for (int i = 0; i < callParticipantIDs.size(); i++)
{
CallParticipantRecord cpr = new CallParticipantRecord(
CallParticipantRecordImpl cpr = new CallParticipantRecordImpl(
(String)callParticipantIDs.get(i),
new Date(Long.parseLong((String)callParticipantStart.get(i))),
new Date(Long.parseLong((String)callParticipantEnd.get(i)))
@ -756,7 +756,7 @@ private void handleParticipantAdded(CallParticipant callParticipant)
if(callRecord == null)
return;
CallParticipantRecord newRec = new CallParticipantRecord(
CallParticipantRecordImpl newRec = new CallParticipantRecordImpl(
callParticipant.getAddress(),
new Date(),
null);

@ -220,14 +220,14 @@ public void readRecords()
assertTrue("Participant incorrect ",
participant.getParticipantAddress().
equals(participantAddresses.get(1)));
equals(participantAddresses.get(2)));
rec = (CallRecord)resultIter.next();
participant = (CallParticipantRecord)rec.getParticipantRecords().get(0);
assertTrue("Participant incorrect ",
participant.getParticipantAddress().
equals(participantAddresses.get(2)));
equals(participantAddresses.get(1)));
/**
* must find 1 record
@ -257,7 +257,7 @@ public void readRecords()
assertTrue("Participant incorrect ",
participant.getParticipantAddress().
equals(participantAddresses.get(1)));
equals(participantAddresses.get(3)));
rec = (CallRecord)resultIter.next();
participant = (CallParticipantRecord) rec.getParticipantRecords().get(0);
@ -271,7 +271,7 @@ public void readRecords()
assertTrue("Participant incorrect ",
participant.getParticipantAddress().
equals(participantAddresses.get(3)));
equals(participantAddresses.get(1)));
}
public void checkRecordCompleteness()

Loading…
Cancel
Save