summaryrefslogtreecommitdiff
path: root/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/notifications/OnProxyClosedTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/notifications/OnProxyClosedTests.java')
-rw-r--r--android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/notifications/OnProxyClosedTests.java25
1 files changed, 14 insertions, 11 deletions
diff --git a/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/notifications/OnProxyClosedTests.java b/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/notifications/OnProxyClosedTests.java
index defede878..1ef639029 100644
--- a/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/notifications/OnProxyClosedTests.java
+++ b/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/notifications/OnProxyClosedTests.java
@@ -3,10 +3,12 @@ package com.smartdevicelink.test.rpc.notifications;
import com.smartdevicelink.proxy.callbacks.InternalProxyMessage;
import com.smartdevicelink.proxy.callbacks.OnProxyClosed;
import com.smartdevicelink.proxy.rpc.enums.SdlDisconnectedReason;
-import com.smartdevicelink.test.Test;
+import com.smartdevicelink.test.TestValues;
import junit.framework.TestCase;
+import org.junit.Test;
+
/**
* This is a unit test class for the SmartDeviceLink library project class :
* {@link com.smartdevicelink.proxy.callbacks.OnProxyClosed}
@@ -18,24 +20,25 @@ public class OnProxyClosedTests extends TestCase {
* {@link com.smartdevicelink.proxy.callbacks.OnProxyClosed#OnProxyClosed()}
* {@link com.smartdevicelink.proxy.callbacks.OnProxyClosed#OnProxyClosed(String, Exception, SdlDisconnectedReason)}
*/
+ @Test
public void testValues () {
// Valid Tests
OnProxyClosed testOnProxyClosed = new OnProxyClosed();
- assertEquals(Test.MATCH, InternalProxyMessage.OnProxyClosed, testOnProxyClosed.getFunctionName());
+ assertEquals(TestValues.MATCH, InternalProxyMessage.OnProxyClosed, testOnProxyClosed.getFunctionName());
Exception testE = new Exception();
SdlDisconnectedReason testReason = SdlDisconnectedReason.DEFAULT;
- testOnProxyClosed = new OnProxyClosed(Test.GENERAL_STRING, testE, testReason);
- assertEquals(Test.MATCH, InternalProxyMessage.OnProxyClosed, testOnProxyClosed.getFunctionName());
- assertEquals(Test.MATCH, Test.GENERAL_STRING, testOnProxyClosed.getInfo());
- assertEquals(Test.MATCH, testE, testOnProxyClosed.getException());
- assertEquals(Test.MATCH, testReason, testOnProxyClosed.getReason());
+ testOnProxyClosed = new OnProxyClosed(TestValues.GENERAL_STRING, testE, testReason);
+ assertEquals(TestValues.MATCH, InternalProxyMessage.OnProxyClosed, testOnProxyClosed.getFunctionName());
+ assertEquals(TestValues.MATCH, TestValues.GENERAL_STRING, testOnProxyClosed.getInfo());
+ assertEquals(TestValues.MATCH, testE, testOnProxyClosed.getException());
+ assertEquals(TestValues.MATCH, testReason, testOnProxyClosed.getReason());
// Invalid/Null Tests
testOnProxyClosed = new OnProxyClosed(null, null, null);
- assertEquals(Test.MATCH, InternalProxyMessage.OnProxyClosed, testOnProxyClosed.getFunctionName());
- assertNull(Test.NULL, testOnProxyClosed.getInfo());
- assertNull(Test.NULL, testOnProxyClosed.getException());
- assertNull(Test.NULL, testOnProxyClosed.getReason());
+ assertEquals(TestValues.MATCH, InternalProxyMessage.OnProxyClosed, testOnProxyClosed.getFunctionName());
+ assertNull(TestValues.NULL, testOnProxyClosed.getInfo());
+ assertNull(TestValues.NULL, testOnProxyClosed.getException());
+ assertNull(TestValues.NULL, testOnProxyClosed.getReason());
}
} \ No newline at end of file