17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | ******************************************************************************/
22 | package com.skype.connector.osx;
23 |
24 | import java.util.EventListener;
25 |
26 | interface SkypeFrameworkListener extends EventListener {
27 | void becameAvailable();
28 | void becameUnavailable();
29 | void attachResponse(int attachResponseCode);
30 | void notificationReceived(String notificationString);
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/java/com/skype/connector/osx/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides the connector for Max OS X
3 | */
4 | package com.skype.connector.osx;
5 |
--------------------------------------------------------------------------------
/src/main/java/com/skype/connector/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides the classes for the connector
3 | */
4 | package com.skype.connector;
5 |
--------------------------------------------------------------------------------
/src/main/java/com/skype/connector/win32/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides the connector for Windows by JNI
3 | */
4 | package com.skype.connector.win32;
5 |
--------------------------------------------------------------------------------
/src/main/java/com/skype/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | <#if locale="ja">
3 | *
4 | * Skype4Javaのアプリケーションレベルのクラスを提供します。
5 | *
6 | * 最も重要なクラスは、Skypeの情報モデルを表す{@link com.skype.Skype}とユーザインターフェイスを表す{@link com.skype.SkypeClient}です。
7 | *
8 | * Skype4JavaでサポートされていないSkype APIの機能はコネクタレベルのクラスを用いて追加できます。
9 | *
10 | <#else>
11 | * Provides the classes for Skype API
12 | #if>
13 | */
14 | package com.skype;
15 |
--------------------------------------------------------------------------------
/src/main/resources/Skype.Framework:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/taksan/skype-java-api/e7007433f851c1d233b7f7b53abfc031cc271ecd/src/main/resources/Skype.Framework
--------------------------------------------------------------------------------
/src/main/resources/libskype.jnilib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/taksan/skype-java-api/e7007433f851c1d233b7f7b53abfc031cc271ecd/src/main/resources/libskype.jnilib
--------------------------------------------------------------------------------
/src/main/resources/libskype_dbus_x64.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/taksan/skype-java-api/e7007433f851c1d233b7f7b53abfc031cc271ecd/src/main/resources/libskype_dbus_x64.so
--------------------------------------------------------------------------------
/src/main/resources/libskype_dbus_x86.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/taksan/skype-java-api/e7007433f851c1d233b7f7b53abfc031cc271ecd/src/main/resources/libskype_dbus_x86.so
--------------------------------------------------------------------------------
/src/main/resources/libskype_x11_x64.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/taksan/skype-java-api/e7007433f851c1d233b7f7b53abfc031cc271ecd/src/main/resources/libskype_x11_x64.so
--------------------------------------------------------------------------------
/src/main/resources/libskype_x11_x86.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/taksan/skype-java-api/e7007433f851c1d233b7f7b53abfc031cc271ecd/src/main/resources/libskype_x11_x86.so
--------------------------------------------------------------------------------
/src/main/resources/skype_amd64.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/taksan/skype-java-api/e7007433f851c1d233b7f7b53abfc031cc271ecd/src/main/resources/skype_amd64.dll
--------------------------------------------------------------------------------
/src/main/resources/skype_x86.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/taksan/skype-java-api/e7007433f851c1d233b7f7b53abfc031cc271ecd/src/main/resources/skype_x86.dll
--------------------------------------------------------------------------------
/src/test/java/com/skype/.cvsignore:
--------------------------------------------------------------------------------
1 | FriendAPITest.properties
2 | ProfileAPITest.properties
3 | TestData.properties
4 | Main.java
5 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/AutoAp2ApAPITest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
22 | ******************************************************************************/
23 | package com.skype;
24 |
25 | import org.junit.Ignore;
26 | import org.junit.Test;
27 |
28 | @Ignore
29 | public class AutoAp2ApAPITest {
30 |
31 | @Test
32 | public void testRecreatingApplication() throws Exception {
33 | String APPLICATION_NAME = "test";
34 | Application application = Skype.addApplication(APPLICATION_NAME);
35 | application.finish();
36 | application = Skype.addApplication(APPLICATION_NAME);
37 | application.finish();
38 | }
39 |
40 | @Test
41 | public void testDoubleConnecting() throws Exception {
42 | Application application = Skype.addApplication("test");
43 | Stream[] streams = application.connect("echo123");
44 | streams[0].write("TEST");
45 | application.finish();
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/AutoCallAPITest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
22 | ******************************************************************************/
23 | package com.skype;
24 |
25 | import com.skype.Call.DTMF;
26 | import com.skype.connector.test.TestCaseByCSVFile;
27 |
28 | public class AutoCallAPITest extends TestCaseByCSVFile {
29 | @Override
30 | protected void setUp() throws Exception {
31 | setRecordingMode(false);
32 | }
33 |
34 | public void testSendDTMF() throws Exception {
35 | Thread.sleep(2000);
36 | Call call = Skype.call("echo123");
37 | for (DTMF command: DTMF.values()) {
38 | call.send(command);
39 | }
40 | call.finish();
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/AutoMainWindowStateTest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
22 | ******************************************************************************/
23 | package com.skype;
24 |
25 | import com.skype.SkypeClient.WindowState;
26 | import com.skype.connector.test.TestCaseByCSVFile;
27 |
28 | public class AutoMainWindowStateTest extends TestCaseByCSVFile {
29 | @Override
30 | protected void setUp() throws Exception {
31 | setRecordingMode(false);
32 | }
33 |
34 | public void testBasic() throws Exception {
35 | SkypeClient.setMainWindowState(WindowState.MAXIMIZED);
36 | assertEquals(WindowState.MAXIMIZED, SkypeClient.getMainWindowState());
37 | Thread.sleep(1000);
38 | SkypeClient.setMainWindowState(WindowState.MINIMIZED);
39 | assertEquals(WindowState.MINIMIZED, SkypeClient.getMainWindowState());
40 | Thread.sleep(1000);
41 | SkypeClient.setMainWindowState(WindowState.NORMAL);
42 | assertEquals(WindowState.NORMAL, SkypeClient.getMainWindowState());
43 | Thread.sleep(1000);
44 | SkypeClient.setMainWindowState(WindowState.HIDDEN);
45 | assertEquals(WindowState.HIDDEN, SkypeClient.getMainWindowState());
46 | Thread.sleep(1000);
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/AutoSkypeAPITest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
22 | ******************************************************************************/
23 | package com.skype;
24 |
25 | import org.junit.Ignore;
26 |
27 | import com.skype.connector.test.TestCaseByCSVFile;
28 |
29 | @Ignore
30 | public class AutoSkypeAPITest extends TestCaseByCSVFile {
31 | @Override
32 | protected void setUp() throws Exception {
33 | setRecordingMode(false);
34 | }
35 |
36 | public void testSetSilentMode() throws Exception {
37 | User[] users = Skype.searchUsers("test");
38 | if (isRecordingMode()) {
39 | System.out.println(users.length);
40 | } else {
41 | assertEquals(89, users.length);
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/AutoSkypeClientAPITest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
22 | ******************************************************************************/
23 | package com.skype;
24 |
25 | import com.skype.connector.test.TestCaseByCSVFile;
26 |
27 | public class AutoSkypeClientAPITest extends TestCaseByCSVFile {
28 | @Override
29 | protected void setUp() throws Exception {
30 | setRecordingMode(false);
31 | }
32 |
33 | public void test() {
34 |
35 | }
36 |
37 | public void ignore_testSetSilentMode() throws Exception {
38 | SkypeClient.setSilentMode(true);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/CallForwardingTest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype;
23 |
24 | import org.junit.Ignore;
25 | import org.junit.Test;
26 |
27 | import com.skype.Profile.CallForwardingRule;
28 | import com.skype.Profile.Status;
29 |
30 | @Ignore
31 | public class CallForwardingTest {
32 | @Test
33 | public void testSetCallForwarding() throws Exception {
34 | Skype.setDaemon(true);
35 | Skype.setDebug(true);
36 | Skype.getProfile().setStatus(Status.OFFLINE);
37 | // CallForwardingRule[] oldCallForwardingRules =
38 | // Skype.getProfile().getAllCallForwardingRules();
39 | // boolean oldCallForwarding = Skype.getProfile().isCallForwarding();
40 | Skype.getProfile().setAllCallForwardingRules(new CallForwardingRule[] { new CallForwardingRule(0, 30, "+819018875000") });
41 | Skype.getProfile().setCallForwarding(true);
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/CallListenerTest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
22 | ******************************************************************************/
23 | package com.skype;
24 |
25 | import org.junit.Assert;
26 | import org.junit.Ignore;
27 | import org.junit.Test;
28 |
29 | // non automatic test
30 | @Ignore
31 | public class CallListenerTest {
32 | @Test
33 | public void testBasic() throws Exception {
34 | final boolean[] maked = new boolean[1];
35 | Skype.addCallListener(new CallAdapter() {
36 | @Override
37 | public void callMaked(Call makedCall) throws SkypeException {
38 | maked[0] = true;
39 | Skype.removeCallListener(this);
40 | }
41 | });
42 | TestUtils.showMessageDialog("Please, make a call to " + TestData.getFriendId() + " and finish.");
43 | Assert.assertTrue(maked[0]);
44 |
45 | final boolean[] received = new boolean[1];
46 | Skype.addCallListener(new CallAdapter() {
47 | @Override
48 | public void callReceived(Call receivedCall) throws SkypeException {
49 | received[0] = true;
50 | Skype.removeCallListener(this);
51 | }
52 | });
53 | TestUtils.showMessageDialog("Please, receive a call from " + TestData.getFriendId() + " and finish.");
54 | Assert.assertTrue(received[0]);
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/CallStatusChangedListenerTest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
22 | ******************************************************************************/
23 | package com.skype;
24 |
25 | import org.junit.Assert;
26 | import org.junit.Ignore;
27 | import org.junit.Test;
28 |
29 | import com.skype.Call.Status;
30 |
31 | @Ignore
32 | public class CallStatusChangedListenerTest {
33 | @Test
34 | public void testBasic() throws Exception {
35 | final StringBuffer statuses = new StringBuffer();
36 | Skype.addCallListener(new CallAdapter() {
37 | @Override
38 | public void callMaked(Call makedCall) throws SkypeException {
39 | makedCall.addCallStatusChangedListener(new CallStatusChangedListener() {
40 | public void statusChanged(Status status) throws SkypeException {
41 | statuses.append("[" + status + "]");
42 | }
43 | });
44 | }
45 | });
46 | TestUtils.showMessageDialog("Please, make a call to " + TestData.getFriendId() + " and finish.");
47 | Assert.assertEquals("[RINGING][CANCELLED]", statuses.toString());
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/ChatAPITest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype;
23 |
24 | import org.junit.Assert;
25 | import org.junit.Ignore;
26 |
27 | // non automatic test
28 | @Ignore
29 | public class ChatAPITest {
30 | public void testChat() throws Exception {
31 | Friend friend = TestData.getFriend();
32 | Chat chat = friend.chat();
33 |
34 | long time = chat.getTime().getTime();
35 | Assert.assertTrue(0 <= time && time <= System.currentTimeMillis());
36 | Assert.assertNull(chat.getAdder());
37 | Assert.assertTrue(chat.getStatus().equals(Chat.Status.DIALOG));
38 | Assert.assertTrue(0 < chat.getWindowTitle().length());
39 | Assert.assertEquals(0, chat.getAllPosters().length);
40 | Assert.assertEquals(2, chat.getAllMembers().length);
41 |
42 | chat.send("Test Message");
43 | TestUtils.showCheckDialog(TestData.getFriendId() + " has received \"Test Message\"");
44 | chat.setTopic("New Topic");
45 | TestUtils.showCheckDialog("Topic was changed to \"New Topic\"");
46 | Friend friend2 = TestData.getFriend2();
47 | chat.addUser(friend2);
48 | Assert.assertEquals(1, chat.getAllPosters().length);
49 | Assert.assertEquals(3, chat.getAllMembers().length);
50 | TestUtils.showCheckDialog(friend2.getId() + " was added to this chat");
51 | chat.leave();
52 | Assert.assertEquals(2, chat.getAllMembers().length);
53 | TestUtils.showCheckDialog("You have left from this chat");
54 | Assert.assertTrue(0 < chat.getAllChatMessages().length);
55 | Assert.assertTrue(0 < chat.getRecentChatMessages().length);
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/ChatMessageEditConnectorListenerTest.java:
--------------------------------------------------------------------------------
1 | package com.skype;
2 |
3 | import static org.junit.Assert.assertEquals;
4 |
5 | import java.util.Date;
6 | import java.util.concurrent.atomic.AtomicReference;
7 |
8 | import org.junit.Test;
9 |
10 | public class ChatMessageEditConnectorListenerTest {
11 |
12 | @Test
13 | public void onProcessMessage_ShouldTriggerListenerEventIfEditSequenceIsMet()
14 | {
15 | ChatMessageEditConnectorListener subject = new ChatMessageEditConnectorListener();
16 | final AtomicReference actualWhen = new AtomicReference();
17 | final AtomicReference actualWho = new AtomicReference() ;
18 | final AtomicReference actualEdited = new AtomicReference();
19 | subject.addListener(new ChatMessageEditListener() {
20 | @Override
21 | public void chatMessageEdited(ChatMessage editedMessage, Date when, User who) {
22 | actualWhen.set(when);
23 | actualWho.set(who);
24 | actualEdited.set(editedMessage);
25 | }
26 | });
27 |
28 | subject.processMessage("CHATMESSAGE 1045193 EDITED_TIMESTAMP 1340851521");
29 | subject.processMessage("CHATMESSAGE 1045193 EDITED_BY anhanga.tinhoso");
30 | subject.processMessage("CHATMESSAGE 1045192 EDITED_TIMESTAMP 1340851521");
31 | subject.processMessage("CHATMESSAGE 1045192 EDITED_BY manhoso");
32 | subject.processMessage("CHATMESSAGE 1045193 BODY dude not good");
33 |
34 | Date expected = new Date(1340851521);
35 | User user = User.getInstance("anhanga.tinhoso");
36 | assertEquals(expected, actualWhen.get());
37 | assertEquals(user.getId(), actualWho.get().getId());
38 | assertEquals("1045193", actualEdited.get().getId());
39 | }
40 | }
--------------------------------------------------------------------------------
/src/test/java/com/skype/ChatMessageListenerTest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype;
23 |
24 | import org.junit.Assert;
25 | import org.junit.Ignore;
26 | import org.junit.Test;
27 |
28 | @Ignore
29 | public class ChatMessageListenerTest {
30 | @Test
31 | public void testBasic() throws Exception {
32 | final boolean[] sent = new boolean[1];
33 | Skype.addChatMessageListener(new ChatMessageAdapter() {
34 | @Override
35 | public void chatMessageSent(ChatMessage sentChatMessage) throws SkypeException {
36 | sent[0] = true;
37 | Skype.removeChatMessageListener(this);
38 | }
39 | });
40 | TestUtils.showMessageDialog("Please, send a chat message to " + TestData.getFriendId() + ".");
41 | Assert.assertTrue(sent[0]);
42 |
43 | final boolean[] received = new boolean[1];
44 | Skype.addChatMessageListener(new ChatMessageAdapter() {
45 | @Override
46 | public void chatMessageReceived(ChatMessage receivedChatMessage) throws SkypeException {
47 | received[0] = true;
48 | Skype.removeChatMessageListener(this);
49 | }
50 | });
51 | TestUtils.showMessageDialog("Please, receive a chat message from " + TestData.getFriendId() + ".");
52 | Assert.assertTrue(received[0]);
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/CountryIsoByCountryNameTest.java:
--------------------------------------------------------------------------------
1 | package com.skype;
2 |
3 | import static org.junit.Assert.assertEquals;
4 |
5 | import org.junit.Test;
6 |
7 | public class CountryIsoByCountryNameTest {
8 | @Test
9 | public void onGetIsoForCountry_ShouldReturnCountryIso()
10 | {
11 | String actual = CountryIsoByCountryName.getIsoForCountry("Russia");
12 | assertEquals("ru", actual);
13 | }
14 | }
--------------------------------------------------------------------------------
/src/test/java/com/skype/GroupAPITest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype;
23 |
24 | import org.junit.Assert;
25 | import org.junit.Ignore;
26 | import org.junit.Test;
27 |
28 | @Ignore
29 | public class GroupAPITest {
30 |
31 | @Test
32 | public void testGetGroup() throws Exception {
33 | TestUtils.showMessageDialog("Please create 'Test' group and add " + TestData.getFriendId() + " to it before closing this dialog.");
34 | Group group = Skype.getContactList().getGroup("Test");
35 | Assert.assertNotNull(group);
36 | Assert.assertTrue(group.hasFriend(TestData.getFriend()));
37 | }
38 |
39 | @Test
40 | public void testAddAndRemoveGroup() throws Exception {
41 | String addedGroupName = "GroupAPITest";
42 | Group added = Skype.getContactList().addGroup(addedGroupName);
43 | Assert.assertNotNull(Skype.getContactList().getGroup(addedGroupName));
44 | Skype.getContactList().removeGroup(added);
45 | Assert.assertNull(Skype.getContactList().getGroup(addedGroupName));
46 | }
47 |
48 | @Test
49 | public void testAddAndRemoveFriend() throws Exception {
50 | Group addedGroup = Skype.getContactList().addGroup("GroupAPITest");
51 | Friend addedFriend = TestData.getFriend();
52 | addedGroup.addFriend(addedFriend);
53 | Assert.assertTrue(addedGroup.hasFriend(addedFriend));
54 | addedGroup.removeFriend(addedFriend);
55 | Assert.assertFalse(addedGroup.hasFriend(addedFriend));
56 | Skype.getContactList().removeGroup(addedGroup);
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/HistoryAPITest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype;
23 |
24 | import java.util.Date;
25 |
26 | import org.junit.Assert;
27 | import org.junit.Ignore;
28 | import org.junit.Test;
29 |
30 | @Ignore
31 | public class HistoryAPITest {
32 | @Test
33 | public void testGetAllMessages() throws Exception {
34 | TestUtils.showMessageDialog("Please, send a chat message 'Hello, World!' to " + TestData.getFriendId() + ".");
35 | Friend friend = TestData.getFriend();
36 | ChatMessage[] messages = friend.getAllChatMessages();
37 | Assert.assertTrue(0 < messages.length);
38 | }
39 |
40 | @Test
41 | public void testGetAllCalls() throws Exception {
42 | TestUtils.showMessageDialog("Please, start a call to " + TestData.getFriendId() + "and finsh it in 10 seconds.");
43 | Friend friend = TestData.getFriend();
44 | Call[] calls = friend.getAllCalls();
45 | Assert.assertTrue(0 < calls.length);
46 | Call latest = calls[0];
47 | Assert.assertEquals(TestData.getFriendId(), latest.getPartnerId());
48 | Assert.assertEquals(TestData.getFriendDisplayName(), latest.getPartnerDisplayName());
49 | Assert.assertTrue(new Date().getTime() - 10000 <= latest.getStartTime().getTime());
50 | Assert.assertEquals(Call.Type.OUTGOING_P2P, latest.getType());
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/PhoneAPITest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype;
23 |
24 | import org.junit.Assert;
25 | import org.junit.Ignore;
26 | import org.junit.Test;
27 |
28 | // not supported on linux
29 | @Ignore
30 | public final class PhoneAPITest {
31 | @Test
32 | public void testAudioInputDevice() throws Exception {
33 | String device = Skype.getAudioInputDevice();
34 | Skype.setAudioInputDevice(null);
35 | Assert.assertNull(Skype.getAudioInputDevice());
36 | Skype.setAudioInputDevice(device);
37 | Assert.assertEquals(device, Skype.getAudioInputDevice());
38 | }
39 |
40 | @Test
41 | public void testAudioOutputDevice() throws Exception {
42 | String device = Skype.getAudioOutputDevice();
43 | Skype.setAudioOutputDevice(null);
44 | Assert.assertNull(Skype.getAudioOutputDevice());
45 | Skype.setAudioOutputDevice(device);
46 | Assert.assertEquals(device, Skype.getAudioOutputDevice());
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/SMSTest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
22 | ******************************************************************************/
23 | package com.skype;
24 |
25 | import org.junit.Assert;
26 | import org.junit.Ignore;
27 | import org.junit.Test;
28 |
29 | @Ignore
30 | public final class SMSTest {
31 | @Test
32 | public void testSendSMS() throws SkypeException {
33 | SMS message = Skype.sendSMS(TestData.getSMSNumber(), "test");
34 | Assert.assertEquals("test", message.getContent());
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/SkypeObjectTest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
22 | ******************************************************************************/
23 | package com.skype;
24 |
25 | import org.junit.Assert;
26 | import org.junit.Ignore;
27 | import org.junit.Test;
28 |
29 | @Ignore
30 | public class SkypeObjectTest {
31 | @Test
32 | public void testBasic() throws Exception {
33 | String name = "name";
34 | Object userData = new Object();
35 | TestData.getFriend().setData(name, userData);
36 | Assert.assertEquals(userData, TestData.getFriend().getData(name));
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/SkypeTest.java:
--------------------------------------------------------------------------------
1 | package com.skype;
2 |
3 | import junit.framework.Assert;
4 |
5 | import org.junit.After;
6 | import org.junit.Test;
7 |
8 | import com.skype.mocks.ConnectorMock;
9 |
10 | public class SkypeTest {
11 | @Test
12 | public void addListener_ShouldNotAddListenerIfExceptionIsThrown() throws SkypeException
13 | {
14 | Skype.setReplacementConnectorInstance(new ConnectorMock());
15 |
16 | CallListener mockListener = createMockListener();
17 |
18 | try {
19 | Skype.addCallListener(mockListener);
20 | Assert.fail("An exception was expected");
21 | }catch(Exception e) {
22 | Assert.assertFalse(Skype.isCallListenerRegistered(mockListener));
23 | }
24 | }
25 |
26 | private CallListener createMockListener() {
27 | return new CallListener() {
28 |
29 | @Override
30 | public void callReceived(Call receivedCall) throws SkypeException {
31 | }
32 |
33 | @Override
34 | public void callMaked(Call makedCall) throws SkypeException {
35 | }
36 | };
37 | }
38 |
39 | @After
40 | public void tearDown() {
41 | Skype.setReplacementConnectorInstance(null);
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/SystemTest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype;
23 |
24 | import org.junit.Assert;
25 | import org.junit.Ignore;
26 | import org.junit.Test;
27 |
28 | @Ignore
29 | public class SystemTest {
30 | @Test
31 | public void testIsInstalled() throws Exception {
32 | Assert.assertTrue(Skype.isInstalled());
33 | }
34 |
35 | @Test
36 | public void testIsRunning() throws Exception {
37 | Assert.assertTrue(Skype.isRunning());
38 | }
39 |
40 | @Test
41 | public void testGetVersion() throws Exception {
42 | String version = Skype.getVersion();
43 | Assert.assertNotNull(version);
44 | Assert.assertTrue(!"".equals(version));
45 | }
46 | }
--------------------------------------------------------------------------------
/src/test/java/com/skype/TestCaseProperties.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype;
23 |
24 | import java.util.Properties;
25 |
26 | import org.junit.Ignore;
27 |
28 | import junit.framework.Assert;
29 |
30 | @Ignore
31 | @SuppressWarnings("rawtypes")
32 | final class TestCaseProperties {
33 | private final Class testCaseClass;
34 |
35 | private Properties properties;
36 |
37 | TestCaseProperties(Class testCaseClass) {
38 | this.testCaseClass = testCaseClass;
39 | properties = new Properties();
40 | try {
41 | properties.load(getClass().getResourceAsStream(getPropertyFileName()));
42 | } catch (Exception e) {
43 | Assert.fail("Please, create '" + getPropertyFileName() + "' file by '" + getPropertyFileName() + ".base' file in the same directory.");
44 | }
45 | }
46 |
47 | private String getPropertyFileName() {
48 | return testCaseClass.getSimpleName() + ".properties";
49 | }
50 |
51 | String getProperty(String key) {
52 | if (!properties.containsKey(key)) {
53 | throw new IllegalArgumentException("'" + getPropertyFileName() + "' file doesn't have '" + key + "' entry.");
54 | }
55 | return properties.getProperty(key);
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/TestData.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
22 | ******************************************************************************/
23 | package com.skype;
24 |
25 | import org.junit.Ignore;
26 |
27 | import com.skype.Friend;
28 | import com.skype.Skype;
29 | import com.skype.SkypeException;
30 |
31 | @Ignore
32 | final class TestData {
33 | private static TestCaseProperties data = new TestCaseProperties(TestData.class);
34 |
35 | static Friend getFriend() throws SkypeException {
36 | return Skype.getContactList().getFriend(data.getProperty("id"));
37 | }
38 |
39 | static Friend getFriend2() throws SkypeException {
40 | return Skype.getContactList().getFriend(data.getProperty("id2"));
41 | }
42 |
43 | static String getFriendId() throws SkypeException {
44 | return getFriend().getId();
45 | }
46 |
47 | static String getFriendDisplayName() throws SkypeException {
48 | return getFriend().getDisplayName();
49 | }
50 |
51 | static String getSMSNumber() throws SkypeException {
52 | return data.getProperty("smsNumber");
53 | }
54 |
55 | private TestData() {
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/TestUtils.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype;
23 |
24 | import javax.swing.JDialog;
25 | import javax.swing.JOptionPane;
26 |
27 | import org.junit.Ignore;
28 |
29 | import junit.framework.Assert;
30 |
31 | @Ignore
32 | public final class TestUtils {
33 | public static void showCheckDialog(String message) {
34 | JOptionPane pane = new JOptionPane(message, JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_OPTION);
35 | JDialog dialog = pane.createDialog(null, "Check by the tester");
36 | dialog.setVisible(true);
37 | int result = ((Integer) pane.getValue()).intValue();
38 | if (result != JOptionPane.YES_OPTION) {
39 | Assert.fail("\"" + message + "\" -> Failed");
40 | }
41 | }
42 |
43 | public static void showMessageDialog(String message) {
44 | JOptionPane.showMessageDialog(null, message);
45 | }
46 |
47 | private TestUtils() {
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/VideoAPITest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
22 | ******************************************************************************/
23 | package com.skype;
24 |
25 | import org.junit.Ignore;
26 | import org.junit.Test;
27 |
28 |
29 | @Ignore
30 | public class VideoAPITest {
31 | @Test
32 | public void testGetVideoDevice() throws Exception {
33 | String name = Skype.getVideoDevice();
34 | if (name == null) {
35 | name = "Default video device";
36 | }
37 | TestUtils.showCheckDialog("Webcam is '" + name + "'?");
38 | }
39 | @Test
40 | public void testOpenVideoTestWindow() throws Exception {
41 | SkypeClient.openVideoTestWindow();
42 | TestUtils.showCheckDialog("Webcam test window is showed?");
43 | TestUtils.showMessageDialog("Please, close the window before the next step.");
44 | }
45 |
46 | @Test
47 | public void testOpenVideoOptionsWindow() throws Exception {
48 | SkypeClient.openVideoOptionsWindow();
49 | TestUtils.showCheckDialog("Options window with selectiong 'Video' page is showed?");
50 | TestUtils.showMessageDialog("Please, close the window before the next step.");
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/VoiceMailAPITest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype;
23 |
24 | import org.junit.Ignore;
25 | import org.junit.Test;
26 |
27 | @Ignore
28 | public class VoiceMailAPITest {
29 | @Test
30 | public void testLeaveVoiceMail() throws Exception {
31 | TestData.getFriend().voiceMail();
32 | TestUtils.showCheckDialog(TestData.getFriend().getId() + " has received a voicemail?");
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/connector/AutoPropertyTest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype.connector;
23 |
24 | import com.skype.connector.test.TestConnector;
25 |
26 | import junit.framework.TestCase;
27 |
28 | public class AutoPropertyTest extends TestCase {
29 | public void testBasic() throws Exception {
30 | Connector.setInstance(TestConnector.getInstance());
31 |
32 | Connector connector = Connector.getInstance();
33 |
34 | final String PROPERTY_NAME = "name";
35 | final String PROPERTY_VALUE = "value";
36 |
37 | assertNull(connector.getStringProperty(PROPERTY_NAME));
38 |
39 | connector.setStringProperty(PROPERTY_NAME, PROPERTY_VALUE);
40 | assertEquals(PROPERTY_VALUE, connector.getStringProperty(PROPERTY_NAME));
41 |
42 | connector.setStringProperty(PROPERTY_NAME, null);
43 | assertNull(connector.getStringProperty(PROPERTY_NAME));
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/connector/ConnectorTest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype.connector;
23 |
24 | import com.skype.connector.test.TestConnector;
25 |
26 | import junit.framework.TestCase;
27 |
28 | public class ConnectorTest extends TestCase {
29 | public void testProperty() throws Exception {
30 | Connector.setInstance(TestConnector.getInstance());
31 |
32 | Connector connector = Connector.getInstance();
33 |
34 | final String PROPERTY_NAME = "name";
35 | final String PROPERTY_VALUE = "value";
36 |
37 | assertNull(connector.getStringProperty(PROPERTY_NAME));
38 |
39 | connector.setStringProperty(PROPERTY_NAME, PROPERTY_VALUE);
40 | assertEquals(PROPERTY_VALUE, connector.getStringProperty(PROPERTY_NAME));
41 |
42 | connector.setStringProperty(PROPERTY_NAME, null);
43 | assertNull(connector.getStringProperty(PROPERTY_NAME));
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/connector/ConnectorUtilsTest.java:
--------------------------------------------------------------------------------
1 | package com.skype.connector;
2 |
3 | import java.io.File;
4 |
5 | import junit.framework.Assert;
6 |
7 | import org.junit.Test;
8 |
9 | import com.skype.connector.win32.Win32Connector;
10 |
11 | public class ConnectorUtilsTest {
12 | @Test
13 | public void getTempDir_ShouldReturnARandomTemporaryDirUnderTempDir()
14 | {
15 | String tempDir = System.getProperty("java.io.tmpdir");
16 | String actual = ConnectorUtils.getSkypeTempDir();
17 |
18 | Assert.assertTrue(actual.contains(tempDir));
19 | Assert.assertFalse(actual.endsWith(tempDir));
20 | File actualDir = new File(actual);
21 | Assert.assertTrue(actualDir.exists());
22 | Assert.assertTrue(actualDir.isDirectory());
23 |
24 | String anotherActual = ConnectorUtils.getSkypeTempDir();
25 | Assert.assertEquals(actual, anotherActual);
26 | }
27 |
28 | @Test
29 | public void getConnectorInstance_ShouldReturnValidConnector() {
30 | ensureSkypeDirIsCleanBeforeTestingInitialization();
31 |
32 | if (Connector.getInstance() instanceof Win32Connector) {
33 | class Win32ConnectorToTest extends Win32Connector {
34 | public void runInit() {
35 | initializeImpl();
36 | }
37 | }
38 | new Win32ConnectorToTest().runInit();
39 | }
40 | }
41 |
42 | private void ensureSkypeDirIsCleanBeforeTestingInitialization() {
43 | File skypeTempDir = new File(ConnectorUtils.getSkypeTempDir());
44 | skypeTempDir.delete();
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/connector/osx/OSXConnectorTest.java:
--------------------------------------------------------------------------------
1 | package com.skype.connector.osx;
2 |
3 | import org.junit.Assert;
4 | import org.junit.Test;
5 |
6 | public class OSXConnectorTest {
7 | @Test
8 | public void onFixLegacyMessage_ShouldAddChatPrefix()
9 | {
10 | String actual = OSXConnector.fixLegacyMessage("MESSAGE 1413257 STATUS RECEIVED");
11 | Assert.assertEquals("CHATMESSAGE 1413257 STATUS RECEIVED", actual);
12 |
13 | actual = OSXConnector.fixLegacyMessage("USER davyjones ONLINESTATUS ONLINE");
14 | Assert.assertEquals("USER davyjones ONLINESTATUS ONLINE", actual);
15 |
16 | actual = OSXConnector.fixLegacyMessage("#1 MESSAGE 1411049 STATUS RECEIVED");
17 | Assert.assertEquals("#1 CHATMESSAGE 1411049 STATUS RECEIVED", actual);
18 | }
19 | }
--------------------------------------------------------------------------------
/src/test/java/com/skype/connector/osx/SkypeFrameworkTest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype.connector.osx;
23 |
24 | import org.junit.Ignore;
25 |
26 | @Ignore
27 | public class SkypeFrameworkTest {
28 | public static void main(String[] args) throws Exception {
29 | SkypeFramework.init("Skype4Java");
30 |
31 | System.out.println("isRunning: " + SkypeFramework.isRunning());
32 | System.out.println("isAvabileable: " + SkypeFramework.isAvailable());
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/connector/test/AutoConnectorTest.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype.connector.test;
23 |
24 | import com.skype.Call;
25 | import com.skype.Skype;
26 |
27 | public final class AutoConnectorTest extends TestCaseByCSVFile {
28 | @Override
29 | protected void setUp() throws Exception {
30 | setRecordingMode(false);
31 | }
32 |
33 | public void testGetVersion() throws Exception {
34 | String result = Skype.getVersion();
35 | if(isRecordingMode()) {
36 | System.out.println(result);
37 | } else {
38 | assertEquals("2.5.0.130", result);
39 | }
40 | }
41 |
42 | public void testCall() throws Exception {
43 | TestConnector.resetInstance();
44 | Call call = Skype.getContactList().getFriend("echo123").call();
45 | Thread.sleep(5000);
46 | call.finish();
47 |
48 | String result = call.getDuration() + "," + call.getId() + "," + call.getPartnerId() + "," + call.getType();
49 | if(isRecordingMode()) {
50 | System.out.println(result);
51 | } else {
52 | assertEquals("2,8345,echo123,OUTGOING_P2P", result);
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/connector/test/CSVRecorder.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | ******************************************************************************/
22 | package com.skype.connector.test;
23 |
24 | import java.io.BufferedWriter;
25 | import java.io.File;
26 | import java.io.FileWriter;
27 | import java.io.IOException;
28 | import java.io.PrintWriter;
29 | import java.io.Writer;
30 |
31 | import com.skype.connector.ConnectorUtils;
32 |
33 | public final class CSVRecorder extends Recorder {
34 | private PrintWriter writer;
35 |
36 | public CSVRecorder(String filePath) throws IOException {
37 | this(new File(filePath));
38 | }
39 |
40 | public CSVRecorder(File file) throws IOException {
41 | this(new FileWriter(file));
42 | }
43 |
44 | public CSVRecorder(Writer writer) {
45 | ConnectorUtils.checkNotNull("writer", writer);
46 | this.writer = new PrintWriter(new BufferedWriter(writer));
47 | }
48 |
49 | @Override
50 | protected void recordReceivedMessage(long time, String message) {
51 | write("received", time, message);
52 | }
53 |
54 | @Override
55 | protected void recordSentMessage(long time, String message) {
56 | write("sent", time, message);
57 | }
58 |
59 | private synchronized void write(String header, long time, String message) {
60 | writer.print(header);
61 | writer.print(',');
62 | writer.print(time);
63 | writer.print(',');
64 | writer.println(message);
65 | }
66 |
67 | public void close() {
68 | writer.close();
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/connector/test/Player.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | ******************************************************************************/
22 | package com.skype.connector.test;
23 |
24 | public abstract class Player {
25 | protected void init() {
26 | }
27 |
28 | protected abstract boolean hasNextMessage();
29 | protected abstract PlayerMessage getNextMessage();
30 |
31 | protected void destory() {
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/connector/test/PlayerMessage.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | ******************************************************************************/
22 | package com.skype.connector.test;
23 |
24 | public final class PlayerMessage {
25 | public enum Type {
26 | RECEIVED, SENT;
27 | }
28 |
29 | private final Type type;
30 | private final long time;
31 | private final String message;
32 |
33 | public PlayerMessage(final Type type, final long time, final String message) {
34 | this.type = type;
35 | this.time = time;
36 | this.message = message;
37 | }
38 |
39 | public String getMessage() {
40 | return message;
41 | }
42 |
43 | public long getTime() {
44 | return time;
45 | }
46 |
47 | public Type getType() {
48 | return type;
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/connector/test/Recorder.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors:
20 | * Koji Hisano - initial API and implementation
21 | ******************************************************************************/
22 | package com.skype.connector.test;
23 |
24 | public abstract class Recorder {
25 | private long startTime;
26 |
27 | final boolean isStarted() {
28 | return startTime != 0;
29 | }
30 |
31 | final void setStartTime(long startTime) {
32 | this.startTime = startTime;
33 | }
34 |
35 | final long getStartTime() {
36 | return startTime;
37 | }
38 |
39 | protected abstract void recordSentMessage(long time, String message);
40 | protected abstract void recordReceivedMessage(long time, String message);
41 | }
42 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/connector/test/TestCaseByCSVFile.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2006-2007 Koji Hisano - UBION Inc. Developer
3 | * Copyright (c) 2006-2007 UBION Inc.
4 | *
5 | * Copyright (c) 2006-2007 Skype Technologies S.A.
6 | *
7 | * Skype4Java is licensed under either the Apache License, Version 2.0 or
8 | * the Eclipse Public License v1.0.
9 | * You may use it freely in commercial and non-commercial products.
10 | * You may obtain a copy of the licenses at
11 | *
12 | * the Apache License - http://www.apache.org/licenses/LICENSE-2.0
13 | * the Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html
14 | *
15 | * If it is possible to cooperate with the publicity of Skype4Java, please add
16 | * links to the Skype4Java web site
17 | * in your web site or documents.
18 | *
19 | * Contributors: Koji Hisano - initial API and implementation
20 | * Gabriel Takeuchi - Ignored non working tests, fixed some, removed warnings
21 | ******************************************************************************/
22 | package com.skype.connector.test;
23 |
24 | import java.io.File;
25 |
26 | import junit.framework.TestCase;
27 |
28 | public abstract class TestCaseByCSVFile extends TestCase {
29 | private boolean _isRecordingMode;
30 |
31 | public final void setRecordingMode(final boolean on) {
32 | _isRecordingMode = on;
33 | }
34 |
35 | public final boolean isRecordingMode() {
36 | return _isRecordingMode;
37 | }
38 |
39 | @Override
40 | protected final void runTest() throws Throwable {
41 | TestConnector.resetInstance();
42 | if (isRecordingMode()) {
43 | CSVRecorder recorder = null;
44 | try {
45 | recorder = new CSVRecorder(getTestDataFileName());
46 | TestConnector.getInstance().addRecorder(recorder);
47 | super.runTest();
48 | } finally {
49 | if (recorder != null) {
50 | recorder.close();
51 | }
52 | }
53 | } else {
54 | try {
55 | TestConnector.getInstance().setPlayer(new CSVPlayer(getTestDataFileName()));
56 | super.runTest();
57 | } finally {
58 | TestConnector.getInstance().clearPlayer();
59 | }
60 | }
61 | }
62 |
63 | private String getTestDataFileName() {
64 | return File.separator + getClass().getName().replace(".", File.separator) + "_" + getName() + ".csv";
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/connector/test/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides the connector for testing
3 | */
4 | package com.skype.connector.test;
5 |
--------------------------------------------------------------------------------
/src/test/java/com/skype/mocks/ConnectorMock.java:
--------------------------------------------------------------------------------
1 | package com.skype.mocks;
2 |
3 | import com.skype.connector.Connector;
4 | import com.skype.connector.ConnectorException;
5 |
6 | public class ConnectorMock extends Connector {
7 |
8 | @Override
9 | protected void initializeImpl() throws ConnectorException {
10 | throw new RuntimeException("NOT IMPLEMENTED");
11 | }
12 |
13 | @Override
14 | protected Status connect(int timeout) throws ConnectorException {
15 | throw new RuntimeException("NOT IMPLEMENTED");
16 | }
17 |
18 | @Override
19 | protected void disposeImpl() throws ConnectorException {
20 | throw new RuntimeException("NOT IMPLEMENTED");
21 | }
22 |
23 | @Override
24 | protected void sendCommand(String command) {
25 | throw new RuntimeException("NOT IMPLEMENTED");
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoAp2ApAPITest_testDoubleConnecting.csv:
--------------------------------------------------------------------------------
1 | sent,15,CREATE APPLICATION test
2 | received,15,CREATE APPLICATION test
3 | sent,15,ALTER APPLICATION test CONNECT echo123
4 | received,15,ALTER APPLICATION test CONNECT echo123
5 | received,15,APPLICATION test CONNECTING echo123
6 | received,15,APPLICATION test STREAMS echo123:1
7 | sent,15,#0 GET APPLICATION test STREAMS
8 | received,15,#0 APPLICATION test STREAMS echo123:1
9 | sent,15,#1 ALTER APPLICATION test WRITE echo123:1 TEST
10 | received,15,#1 ALTER APPLICATION test WRITE echo123:1
11 | received,15,APPLICATION test SENDING echo123:1=28
12 | received,15,APPLICATION test SENDING
13 | sent,15,DELETE APPLICATION test
14 | received,15,DELETE APPLICATION test
15 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoAp2ApAPITest_testRecreatingApplication.csv:
--------------------------------------------------------------------------------
1 | sent,15,CREATE APPLICATION test
2 | received,15,CREATE APPLICATION test
3 | sent,15,DELETE APPLICATION test
4 | received,15,DELETE APPLICATION test
5 | sent,15,CREATE APPLICATION test
6 | received,15,CREATE APPLICATION test
7 | sent,15,DELETE APPLICATION test
8 | received,15,DELETE APPLICATION test
9 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoCallAPITest_testConferenceId.csv:
--------------------------------------------------------------------------------
1 | sent,16,#0 CALL bitman, jessy
2 | received,110,#0 CALL 19502 STATUS UNPLACED
3 | sent,313,GET CALL 19502 CONF_ID
4 | received,1797,CALL 19502 CONF_ID 11676
5 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoCallAPITest_testSendDTMF.csv:
--------------------------------------------------------------------------------
1 | sent,2015,#0 CALL echo123
2 | received,2078,#0 CALL 32493 STATUS UNPLACED
3 | sent,2172,SET CALL 32493 DTMF 0
4 | received,2531,CALL 32493 STATUS ROUTING
5 | received,2562,CALL 32493 STATUS ROUTING
6 | received,2765,CALL 32493 STATUS RINGING
7 | received,2812,SET CALL 32493 DTMF 0
8 | sent,2812,SET CALL 32493 DTMF 1
9 | received,2812,SET CALL 32493 DTMF 1
10 | sent,2812,SET CALL 32493 DTMF 2
11 | received,2812,SET CALL 32493 DTMF 2
12 | sent,2812,SET CALL 32493 DTMF 3
13 | received,2812,SET CALL 32493 DTMF 3
14 | sent,2812,SET CALL 32493 DTMF 4
15 | received,2828,SET CALL 32493 DTMF 4
16 | sent,2828,SET CALL 32493 DTMF 5
17 | received,2828,SET CALL 32493 DTMF 5
18 | sent,2828,SET CALL 32493 DTMF 6
19 | received,2828,SET CALL 32493 DTMF 6
20 | sent,2843,SET CALL 32493 DTMF 7
21 | received,2859,CALL 32493 STATUS INPROGRESS
22 | received,2859,SET CALL 32493 DTMF 7
23 | sent,2859,SET CALL 32493 DTMF 8
24 | received,2875,SET CALL 32493 DTMF 8
25 | sent,2875,SET CALL 32493 DTMF 9
26 | received,2875,SET CALL 32493 DTMF 9
27 | sent,2875,SET CALL 32493 DTMF #
28 | received,2875,SET CALL 32493 DTMF #
29 | sent,2875,SET CALL 32493 DTMF *
30 | received,2906,SET CALL 32493 DTMF *
31 | sent,2906,#1 SET CALL 32493 STATUS FINISHED
32 | received,2968,CALL 32493 DURATION 0
33 | received,2968,CALL 32493 STATUS FINISHED
34 | received,2968,#1 CALL 32493 STATUS FINISHED
35 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoChatAPITest_testGetAllActiveChat.csv:
--------------------------------------------------------------------------------
1 | sent,0,SEARCH ACTIVECHATS
2 | received,0,CHATS #bitman/$jessy;eb06e65612353279, #bitman/$jdenton;9244e98f82d7d391
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoChatAPITest_testGetAllBookmarkedChat.csv:
--------------------------------------------------------------------------------
1 | sent,31,SEARCH BOOKMARKEDCHATS
2 | received,31,CHATS #bitman/$jessy;eb06e65612353279, #bitman/$jdenton;9244e98f82d7d391
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoChatAPITest_testGetAllChat.csv:
--------------------------------------------------------------------------------
1 | sent,15,SEARCH CHATS
2 | received,47,CHATS #bitman/$jessy;eb06e65612353279, #bitman/$jdenton;9244e98f82d7d391
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoChatAPITest_testGetAllMissedChat.csv:
--------------------------------------------------------------------------------
1 | sent,16,SEARCH MISSEDCHATS
2 | received,31,CHATS #bitman/$jessy;eb06e65612353279, #bitman/$jdenton;9244e98f82d7d391
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoChatAPITest_testGetAllRecentChat.csv:
--------------------------------------------------------------------------------
1 | sent,140,SEARCH RECENTCHATS
2 | received,140,CHATS #bitman/$jessy;eb06e65612353279, #bitman/$jdenton;9244e98f82d7d391
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoDebugOutTest_testBasic.csv:
--------------------------------------------------------------------------------
1 | sent,15,GET SKYPEVERSION
2 | received,15,SKYPEVERSION 3.8.0.139
3 | sent,15,GET SKYPEVERSION
4 | received,15,SKYPEVERSION 3.8.0.139
5 | sent,15,GET SKYPEVERSION
6 | received,15,SKYPEVERSION 3.8.0.139
7 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoMainWindowStateTest_testBasic.csv:
--------------------------------------------------------------------------------
1 | sent,0,SET WINDOWSTATE MAXIMIZED
2 | received,453,WINDOWSTATE MAXIMIZED
3 | sent,453,GET WINDOWSTATE
4 | received,453,WINDOWSTATE MAXIMIZED
5 | received,516,WINDOWSTATE MAXIMIZED
6 | sent,1453,SET WINDOWSTATE MINIMIZED
7 | received,1766,WINDOWSTATE MINIMIZED
8 | sent,1766,GET WINDOWSTATE
9 | received,1766,WINDOWSTATE MINIMIZED
10 | received,1766,WINDOWSTATE MINIMIZED
11 | sent,2766,SET WINDOWSTATE NORMAL
12 | received,3484,WINDOWSTATE NORMAL
13 | received,3484,WINDOWSTATE NORMAL
14 | sent,3484,GET WINDOWSTATE
15 | received,3563,WINDOWSTATE NORMAL
16 | sent,4484,SET WINDOWSTATE HIDDEN
17 | received,4563,WINDOWSTATE HIDDEN
18 | received,4563,WINDOWSTATE HIDDEN
19 | sent,4563,GET WINDOWSTATE
20 | received,4609,WINDOWSTATE HIDDEN
21 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoSkypeAPITest_testSetSilentMode.csv:
--------------------------------------------------------------------------------
1 | sent,0,#0 SEARCH USERS test
2 | sent,3000,PING
3 | received,3000,PONG
4 | sent,6016,PING
5 | received,6016,PONG
6 | sent,9016,PING
7 | received,9016,PONG
8 | received,10031,#0 USERS test-fixture-3, testtest1107, test.phone, test.bvz, testtest6634, test_sdp2, test.1212, testtest4480, test1212126, test.frank.gardes, testuseruk, testeur8, test.account77, testtest5883, test_caen, test-hd, testtest3095, test.racunar2, test.cimax, testtest8811, test_skype.1, test.12348612, testtest5335, test12242, test.frovia, testtest1934, myspace:testfestival, test.account777, testtest6965, test_connect10, axem-test, test.asd, drlenoir, fuji_test12, chatham.test, testttm, jf-martine78000, rainer.paat, particle.test, lyceetest, test_plk, wsradiotest, meeshnewman, car.test, test_zanasichina, skypeliuliu, micha_test_ghp, test429, simon.betts.citc.test, test.facility, wulfkirman79, stephen.glynn.test, vibemac_spa, pebau1, gloomyblack, blueocarina_test, testov_test, krsrao1661, myspace:testtester111, myspace:testmehctib, st_ranger71, runegoon, testtest6485, ikweetgeenanderenaam, paulys25, voip.test1, lowe_test, test-x, test12345712, signaltestinc, myspace:paigeylynn, qlin123, thebigguy24, q12test, watter82, vi_on_g4, vika_forever4, myspace:joshskorn, test.my.phone, huamei001, otto.hunziker.t, ichel-gastpc, ibm_test_english_10, testvmware, hotcho4, oldcompeter, bryontest, virtual.pc.hp, myspace:devildoq
9 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoSkypeClientAPITest_test.csv:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/taksan/skype-java-api/e7007433f851c1d233b7f7b53abfc031cc271ecd/src/test/resources/com/skype/AutoSkypeClientAPITest_test.csv
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoSkypeClientAPITest_testSetSilentMode.csv:
--------------------------------------------------------------------------------
1 | sent,0,SET SILENT_MODE ON
2 | sent,3000,PING
3 | received,3000,PONG
4 | received,4500,SILENT_MODE ON
5 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoVoiceMailAPITest_testGetAllVoiceMails.csv:
--------------------------------------------------------------------------------
1 | sent,0,SEARCH VOICEMAILS
2 | received,0,VOICEMAILS 65, 70, 71
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoVoiceMailAPITest_testVoiceMail.csv:
--------------------------------------------------------------------------------
1 | sent,16,#0 VOICEMAIL echo123
2 | received,94,#0 VOICEMAIL 2346 STATUS BLANK
3 | sent,250,#1 GET VOICEMAIL 2346 TYPE
4 | received,625,CALL 2342 STATUS ROUTING
5 | received,625,VOICEMAIL 2345 TYPE CUSTOM_GREETING
6 | received,625,VOICEMAIL 2345 PARTNER_HANDLE echo123
7 | received,641,VOICEMAIL 2345 PARTNER_DISPNAME Skype Test Call
8 | received,641,VOICEMAIL 2345 ALLOWED_DURATION 60
9 | received,641,VOICEMAIL 2345 SUBJECT
10 | received,641,VOICEMAIL 2345 TIMESTAMP 1156016035
11 | received,641,VOICEMAIL 2345 DURATION 0
12 | received,656,VOICEMAIL 2345 STATUS NOTDOWNLOADED
13 | received,672,VOICEMAIL 2345 STATUS DOWNLOADING
14 | received,750,VOICEMAIL 2346 TYPE OUTGOING
15 | received,781,VOICEMAIL 2346 PARTNER_HANDLE echo123
16 | received,781,VOICEMAIL 2346 PARTNER_DISPNAME Skype Test Call
17 | received,828,VOICEMAIL 2346 ALLOWED_DURATION 600
18 | received,828,VOICEMAIL 2346 SUBJECT
19 | received,828,VOICEMAIL 2346 TIMESTAMP 1156016035
20 | received,891,VOICEMAIL 2346 DURATION 0
21 | received,891,VOICEMAIL 2346 STATUS BLANK
22 | received,906,VOICEMAIL 2345 STATUS PLAYING
23 | received,922,CALL 2342 STATUS VM_BUFFERING_GREETING
24 | received,938,CALL 2342 VM_ALLOWED_DURATION 600
25 | received,938,#1 VOICEMAIL 2346 TYPE OUTGOING
26 | sent,938,GET VOICEMAIL 2346 PARTNER_HANDLE
27 | received,938,CALL 2342 VM_DURATION 0
28 | received,953,CALL 2342 STATUS VM_PLAYING_GREETING
29 | received,953,VOICEMAIL 2346 PARTNER_HANDLE echo123
30 | sent,953,GET VOICEMAIL 2346 PARTNER_DISPNAME
31 | received,953,VOICEMAIL 2346 PARTNER_DISPNAME Skype Test Call
32 | sent,953,GET VOICEMAIL 2346 TIMESTAMP
33 | received,969,VOICEMAIL 2346 TIMESTAMP 1156016035
34 | received,985,CALL 2342 STATUS VM_PLAYING_GREETING
35 | received,985,VOICEMAIL 2345 STATUS BUFFERING
36 | received,1031,CALL 2342 STATUS VM_PLAYING_GREETING
37 | sent,1031,GET VOICEMAIL 2346 DURATION
38 | received,1047,VOICEMAIL 2346 DURATION 0
39 | sent,1047,GET VOICEMAIL 2346 ALLOWED_DURATION
40 | received,1063,VOICEMAIL 2346 ALLOWED_DURATION 600
41 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/AutoVoiceMailAPITest_testVoiceMailStatusChangedListener.csv:
--------------------------------------------------------------------------------
1 | sent,0,#2 VOICEMAIL echo123
2 | received,93,#2 VOICEMAIL 8014 STATUS BLANK
3 | received,547,CALL 8011 STATUS ROUTING
4 | received,562,VOICEMAIL 8014 TYPE OUTGOING
5 | received,562,VOICEMAIL 8014 PARTNER_HANDLE echo123
6 | received,578,VOICEMAIL 8014 PARTNER_DISPNAME Skype Test Call
7 | received,578,VOICEMAIL 8014 ALLOWED_DURATION 600
8 | received,593,VOICEMAIL 8014 SUBJECT
9 | received,609,VOICEMAIL 8014 TIMESTAMP 1156109450
10 | received,781,VOICEMAIL 8014 DURATION 0
11 | received,812,VOICEMAIL 8014 STATUS BLANK
12 | received,843,VOICEMAIL 7989 STATUS PLAYING
13 | received,859,CALL 8011 VM_ALLOWED_DURATION 600
14 | received,875,CALL 8011 VM_DURATION 0
15 | received,875,CALL 8011 STATUS VM_PLAYING_GREETING
16 | received,875,CALL 8011 STATUS VM_PLAYING_GREETING
17 | received,5734,VOICEMAIL 7989 STATUS PLAYED
18 | received,5734,VOICEMAIL 8014 TIMESTAMP 1156109456
19 | received,5765,VOICEMAIL 8014 STATUS RECORDING
20 | received,5765,CALL 8011 STATUS VM_RECORDING
21 | received,5984,VOICEMAIL 8014 DURATION 1
22 | received,5984,CALL 8011 VM_DURATION 1
23 | received,7000,VOICEMAIL 8014 DURATION 2
24 | received,7000,CALL 8011 VM_DURATION 2
25 | received,7484,VOICEMAIL 8014 STATUS UPLOADING
26 | received,7500,CALL 8011 STATUS VM_UPLOADING
27 | received,8843,VOICEMAIL 8014 STATUS UPLOADED
28 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/FriendTest_testFriendProperties.csv:
--------------------------------------------------------------------------------
1 | sent,0,SEARCH FRIENDS
2 | received,0,USERS skype_api_for_java
3 | sent,16,GET USER skype_api_for_java FULLNAME
4 | received,47,USER skype_api_for_java FULLNAME Skype API for Java
5 | sent,78,GET USER skype_api_for_java BIRTHDAY
6 | received,78,USER skype_api_for_java BIRTHDAY 19801205
7 | sent,78,GET USER skype_api_for_java SEX
8 | received,78,USER skype_api_for_java SEX MALE
9 | sent,78,GET USER skype_api_for_java LANGUAGE
10 | received,78,USER skype_api_for_java LANGUAGE ja Japanese
11 | sent,78,GET USER skype_api_for_java LANGUAGE
12 | received,78,USER skype_api_for_java LANGUAGE ja Japanese
13 | sent,78,GET USER skype_api_for_java COUNTRY
14 | received,78,USER skype_api_for_java COUNTRY jp Japan
15 | sent,78,GET USER skype_api_for_java COUNTRY
16 | received,78,USER skype_api_for_java COUNTRY jp Japan
17 | sent,78,GET USER skype_api_for_java PROVINCE
18 | received,78,USER skype_api_for_java PROVINCE Tokyo
19 | sent,78,GET USER skype_api_for_java CITY
20 | received,78,USER skype_api_for_java CITY Chofu
21 | sent,94,GET USER skype_api_for_java PHONE_HOME
22 | received,94,USER skype_api_for_java PHONE_HOME +813-0000-0000
23 | sent,94,GET USER skype_api_for_java PHONE_OFFICE
24 | received,94,USER skype_api_for_java PHONE_OFFICE +813-0000-0000
25 | sent,94,GET USER skype_api_for_java PHONE_MOBILE
26 | received,94,USER skype_api_for_java PHONE_MOBILE +890-0000-0000
27 | sent,94,GET USER skype_api_for_java HOMEPAGE
28 | received,94,USER skype_api_for_java HOMEPAGE http://skype.sourceforge.jp/
29 | sent,94,GET USER skype_api_for_java ABOUT
30 | received,94,USER skype_api_for_java ABOUT Please, enjoy 'Skype API for Java'.
31 | sent,94,GET USER skype_api_for_java MOOD_TEXT
32 | received,94,USER skype_api_for_java MOOD_TEXT
33 | sent,94,GET USER skype_api_for_java IS_VIDEO_CAPABLE
34 | received,94,USER skype_api_for_java IS_VIDEO_CAPABLE TRUE
35 | sent,94,GET USER skype_api_for_java BUDDYSTATUS
36 | received,94,USER skype_api_for_java BUDDYSTATUS 3
37 | sent,94,GET USER skype_api_for_java ISAUTHORIZED
38 | received,94,USER skype_api_for_java ISAUTHORIZED TRUE
39 | sent,94,GET USER skype_api_for_java ISBLOCKED
40 | received,94,USER skype_api_for_java ISBLOCKED FALSE
41 | sent,94,GET USER skype_api_for_java LASTONLINETIMESTAMP
42 | received,94,USER skype_api_for_java LASTONLINETIMESTAMP 1174559278
43 | sent,109,GET USER skype_api_for_java CAN_LEAVE_VM
44 | received,109,USER skype_api_for_java CAN_LEAVE_VM TRUE
45 | sent,125,GET USER skype_api_for_java SPEEDDIAL
46 | received,125,USER skype_api_for_java SPEEDDIAL
47 | sent,125,GET USER skype_api_for_java TIMEZONE
48 | received,125,USER skype_api_for_java TIMEZONE 86400
49 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/FriendTest_testGetAllFriends.csv:
--------------------------------------------------------------------------------
1 | sent,31,SEARCH FRIENDS
2 | received,31,USERS skype_api_for_java
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/ProfileTest_testBasic.csv:
--------------------------------------------------------------------------------
1 | sent,16,GET CURRENTUSERHANDLE
2 | received,16,CURRENTUSERHANDLE skype_api_for_java
3 | sent,16,GET USERSTATUS
4 | received,16,USERSTATUS ONLINE
5 | sent,16,GET PRIVILEGE SKYPEOUT
6 | received,16,PRIVILEGE SKYPEOUT TRUE
7 | sent,16,GET PRIVILEGE SKYPEIN
8 | received,16,PRIVILEGE SKYPEIN TRUE
9 | sent,16,GET PRIVILEGE VOICEMAIL
10 | received,16,PRIVILEGE VOICEMAIL TRUE
11 | sent,16,GET PROFILE PSTN_BALANCE
12 | received,16,PROFILE PSTN_BALANCE 1000000
13 | sent,16,GET PROFILE PSTN_BALANCE_CURRENCY
14 | received,16,PROFILE PSTN_BALANCE_CURRENCY JPY
15 | sent,16,GET PROFILE FULLNAME
16 | received,16,PROFILE FULLNAME Skype API for Java
17 | sent,78,GET PROFILE BIRTHDAY
18 | received,78,PROFILE BIRTHDAY 19801205
19 | sent,78,GET PROFILE SEX
20 | received,78,PROFILE SEX MALE
21 | sent,78,GET PROFILE LANGUAGES
22 | received,78,PROFILE LANGUAGES ja
23 | sent,78,GET PROFILE COUNTRY
24 | received,78,PROFILE COUNTRY jp Japan
25 | sent,78,GET PROFILE COUNTRY
26 | received,78,PROFILE COUNTRY jp Japan
27 | sent,78,GET PROFILE IPCOUNTRY
28 | received,78,PROFILE IPCOUNTRY jp
29 | sent,78,GET PROFILE PROVINCE
30 | received,78,PROFILE PROVINCE Tokyo
31 | sent,78,GET PROFILE CITY
32 | received,94,PROFILE CITY Chofu
33 | sent,94,GET PROFILE PHONE_HOME
34 | received,94,PROFILE PHONE_HOME +8130-0000-0000
35 | sent,94,GET PROFILE PHONE_OFFICE
36 | received,94,PROFILE PHONE_OFFICE +8130-0000-0000
37 | sent,94,GET PROFILE PHONE_MOBILE
38 | received,94,PROFILE PHONE_MOBILE +8190-0000-0000
39 | sent,94,GET PROFILE HOMEPAGE
40 | received,94,PROFILE HOMEPAGE http://skype.sourceforge.jp/
41 | sent,94,GET PROFILE ABOUT
42 | received,94,PROFILE ABOUT Skype API for Java
43 | sent,94,GET PROFILE MOOD_TEXT
44 | received,94,PROFILE MOOD_TEXT Please, enjoy 'Skype API for Java'.
45 | sent,94,GET PROFILE TIMEZONE
46 | received,94,PROFILE TIMEZONE 118800
47 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/TestData.properties:
--------------------------------------------------------------------------------
1 | id=echo123
2 | id2=echo123
3 | smsNumber=42424242
4 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/TestData.properties.base:
--------------------------------------------------------------------------------
1 | id=
2 | id2=
3 | smsNumber=
4 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/connector/test/AutoConnectorTest_testCall.csv:
--------------------------------------------------------------------------------
1 | sent,16,SEARCH FRIENDS
2 | received,16,USERS echo123
3 | sent,32,#0 CALL echo123
4 | received,78,#0 CALL 8345 STATUS ROUTING
5 | received,1032,CALL 8345 STATUS ROUTING
6 | received,1047,CALL 8345 STATUS ROUTING
7 | received,1047,CALL 8345 STATUS RINGING
8 | received,1047,CALL 8345 STATUS RINGING
9 | received,2875,CALL 8345 STATUS INPROGRESS
10 | received,2875,CALL 8345 VIDEO_SEND_STATUS AVAILABLE
11 | received,2891,CALL 8345 VIDEO_STATUS VIDEO_BOTH_ENABLED
12 | received,3578,CALL 8345 DURATION 1
13 | received,4547,CALL 8345 DURATION 2
14 | sent,5078,#1 SET CALL 8345 STATUS FINISHED
15 | received,5110,#1 CALL 8345 STATUS FINISHED
16 | sent,5110,GET CALL 8345 DURATION
17 | received,5110,CALL 8345 STATUS FINISHED
18 | received,5250,CALL 8345 DURATION 2
19 | sent,5250,GET CALL 8345 PARTNER_HANDLE
20 | received,5266,CALL 8345 PARTNER_HANDLE echo123
21 | sent,5266,GET CALL 8345 TYPE
22 | received,5313,CALL 8345 TYPE OUTGOING_P2P
23 |
--------------------------------------------------------------------------------
/src/test/resources/com/skype/connector/test/AutoConnectorTest_testGetVersion.csv:
--------------------------------------------------------------------------------
1 | sent,0,GET SKYPEVERSION
2 | received,0,SKYPEVERSION 2.5.0.130
3 |
--------------------------------------------------------------------------------