From cd8aaa93c481a11dad665f4f7034c0deb1cb30e7 Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Sat, 21 Oct 2006 06:41:07 +0000 Subject: [PATCH] Fix CallHistoryImpl and tests --- .../impl/callhistory/CallHistoryServiceImpl.java | 4 ++-- .../slick/callhistory/TestCallHistoryService.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl.java b/src/net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl.java index a1aba99d0..62ff3cba7 100644 --- a/src/net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl.java +++ b/src/net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl.java @@ -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); diff --git a/test/net/java/sip/communicator/slick/callhistory/TestCallHistoryService.java b/test/net/java/sip/communicator/slick/callhistory/TestCallHistoryService.java index 976618055..19be6099c 100644 --- a/test/net/java/sip/communicator/slick/callhistory/TestCallHistoryService.java +++ b/test/net/java/sip/communicator/slick/callhistory/TestCallHistoryService.java @@ -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()