From ede3b195339ba24afcd89a1d2238ef7c0373e379 Mon Sep 17 00:00:00 2001 From: Emil Ivov Date: Mon, 3 Sep 2007 17:09:30 +0000 Subject: unused --- .../service/gui/TestSuitePhoneUIService.java | 30 --------- .../communicator/service/protocol/TestCall.java | 62 ----------------- .../service/protocol/TestCallParticipantState.java | 78 ---------------------- 3 files changed, 170 deletions(-) delete mode 100644 test/net/java/sip/communicator/service/gui/TestSuitePhoneUIService.java delete mode 100644 test/net/java/sip/communicator/service/protocol/TestCall.java delete mode 100644 test/net/java/sip/communicator/service/protocol/TestCallParticipantState.java diff --git a/test/net/java/sip/communicator/service/gui/TestSuitePhoneUIService.java b/test/net/java/sip/communicator/service/gui/TestSuitePhoneUIService.java deleted file mode 100644 index f39737a..0000000 --- a/test/net/java/sip/communicator/service/gui/TestSuitePhoneUIService.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. - * - * Distributable under LGPL license. - * See terms of license at gnu.org. - */ -package net.java.sip.communicator.service.gui; - -import junit.framework.*; - -/** - * Runs all PhoneUIService unit tests. - * - * @author Emil Ivov - */ -public class TestSuitePhoneUIService - extends TestCase -{ - - public TestSuitePhoneUIService(String s) - { - super(s); - } - - public static Test suite() - { - TestSuite suite = new TestSuite(); - return suite; - } -} diff --git a/test/net/java/sip/communicator/service/protocol/TestCall.java b/test/net/java/sip/communicator/service/protocol/TestCall.java deleted file mode 100644 index c3a0947..0000000 --- a/test/net/java/sip/communicator/service/protocol/TestCall.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. - * - * Distributable under LGPL license. - * See terms of license at gnu.org. - */ -package net.java.sip.communicator.service.protocol; - -import junit.framework.*; - - -/** - * Tests the call abstract class - * - * @author Emil Ivov - */ -public class TestCall extends TestCase -{ - private Call call = null; - private String callID = "identifier0123456789"; - -// private class DummyCall extends Call -// { -// public DummyCall() -// { -// super(callID); -// } -// }; - -// protected void setUp() throws Exception -// { -// super.setUp(); -// call = new DummyCall(); -// } -// - protected void tearDown() throws Exception - { - call = null; - super.tearDown(); - } - - public void testEquals() - { - Object obj = null; - boolean expectedReturn = false; - boolean actualReturn = call.equals(obj); - assertEquals("return value", expectedReturn, actualReturn); - -// obj = new DummyCall(); -// expectedReturn = true; -// actualReturn = call.equals(obj); -// assertEquals("return value", expectedReturn, actualReturn); - } - - public void testGetCallID() - { - String expectedReturn = callID; - String actualReturn = call.getCallID(); - assertEquals("return value", expectedReturn, actualReturn); - } - -} diff --git a/test/net/java/sip/communicator/service/protocol/TestCallParticipantState.java b/test/net/java/sip/communicator/service/protocol/TestCallParticipantState.java deleted file mode 100644 index 6c2cf35..0000000 --- a/test/net/java/sip/communicator/service/protocol/TestCallParticipantState.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. - * - * Distributable under LGPL license. - * See terms of license at gnu.org. - */ -package net.java.sip.communicator.service.protocol; - -import junit.framework.*; - - -/** - * @author Emil Ivov - */ -public class TestCallParticipantState extends TestCase -{ - private CallParticipantState callParticipantState = null; - - protected void setUp() throws Exception - { - super.setUp(); - } - - protected void tearDown() throws Exception - { - super.tearDown(); - } - - public void testGetStateString() - { - String expectedReturn = CallParticipantState._BUSY; - String actualReturn = CallParticipantState.BUSY.getStateString(); - - assertEquals("the BUSY state has an invalid string repr." - ,expectedReturn, actualReturn); - - expectedReturn = CallParticipantState._INCOMING_CALL; - actualReturn = CallParticipantState.INCOMING_CALL.getStateString(); - assertEquals("the CALLING state has an invalid string repr." - ,expectedReturn, actualReturn); - - expectedReturn = CallParticipantState._UNKNOWN; - actualReturn = CallParticipantState.UNKNOWN.getStateString(); - assertEquals("the UNKNOWN state has an invalid string repr." - ,expectedReturn, actualReturn); - - expectedReturn = CallParticipantState._CONNECTED; - actualReturn = CallParticipantState.CONNECTED.getStateString(); - assertEquals("the CONNECTED state has an invalid string repr." - ,expectedReturn, actualReturn); - - expectedReturn = CallParticipantState._CONNECTING; - actualReturn = CallParticipantState.CONNECTING.getStateString(); - assertEquals("the CONNECTING state has an invalid string repr." - ,expectedReturn, actualReturn); - - expectedReturn = CallParticipantState._DISCONNECTED; - actualReturn = CallParticipantState.DISCONNECTED.getStateString(); - assertEquals("the DISCONNECTED state has an invalid string repr." - ,expectedReturn, actualReturn); - - expectedReturn = CallParticipantState._FAILED; - actualReturn = CallParticipantState.FAILED.getStateString(); - assertEquals("the FAILED state has an invalid string repr." - ,expectedReturn, actualReturn); - - expectedReturn = CallParticipantState._ALERTING_REMOTE_SIDE; - actualReturn = CallParticipantState.ALERTING_REMOTE_SIDE.getStateString(); - assertEquals("the RINGING state has an invalid string repr." - ,expectedReturn, actualReturn); - - expectedReturn = CallParticipantState._ON_HOLD; - actualReturn = CallParticipantState.ON_HOLD.getStateString(); - assertEquals("the ON_HOLD state has an invalid string repr." - ,expectedReturn, actualReturn); - - } -} -- cgit v1.1