summaryrefslogtreecommitdiff
path: root/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/VideoStreamingProtocolTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/VideoStreamingProtocolTests.java')
-rw-r--r--android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/VideoStreamingProtocolTests.java118
1 files changed, 58 insertions, 60 deletions
diff --git a/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/VideoStreamingProtocolTests.java b/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/VideoStreamingProtocolTests.java
index 36dba5b6f..090017aca 100644
--- a/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/VideoStreamingProtocolTests.java
+++ b/android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/VideoStreamingProtocolTests.java
@@ -10,72 +10,70 @@ import java.util.List;
public class VideoStreamingProtocolTests extends TestCase {
- /**
- * Verifies that the enum values are not null upon valid assignment.
- */
- public void testValidEnums () {
- String example = "RAW";
- VideoStreamingProtocol enumRAW = VideoStreamingProtocol.valueForString(example);
- example = "RTP";
- VideoStreamingProtocol enumRTP = VideoStreamingProtocol.valueForString(example);
- example = "RTSP";
- VideoStreamingProtocol enumRTSP = VideoStreamingProtocol.valueForString(example);
- example = "RTMP";
- VideoStreamingProtocol enumRTMP = VideoStreamingProtocol.valueForString(example);
- example = "WEBM";
- VideoStreamingProtocol enumWEBM = VideoStreamingProtocol.valueForString(example);
+ /**
+ * Verifies that the enum values are not null upon valid assignment.
+ */
+ public void testValidEnums() {
+ String example = "RAW";
+ VideoStreamingProtocol enumRAW = VideoStreamingProtocol.valueForString(example);
+ example = "RTP";
+ VideoStreamingProtocol enumRTP = VideoStreamingProtocol.valueForString(example);
+ example = "RTSP";
+ VideoStreamingProtocol enumRTSP = VideoStreamingProtocol.valueForString(example);
+ example = "RTMP";
+ VideoStreamingProtocol enumRTMP = VideoStreamingProtocol.valueForString(example);
+ example = "WEBM";
+ VideoStreamingProtocol enumWEBM = VideoStreamingProtocol.valueForString(example);
- assertNotNull("RAW returned null", enumRAW);
- assertNotNull("RTP returned null", enumRTP);
- assertNotNull("RTSP returned null", enumRTSP);
- assertNotNull("RTMP returned null", enumRTMP);
- assertNotNull("WEBM returned null", enumWEBM);
- }
+ assertNotNull("RAW returned null", enumRAW);
+ assertNotNull("RTP returned null", enumRTP);
+ assertNotNull("RTSP returned null", enumRTSP);
+ assertNotNull("RTMP returned null", enumRTMP);
+ assertNotNull("WEBM returned null", enumWEBM);
+ }
- /**
- * Verifies that an invalid assignment is null.
- */
- public void testInvalidEnum () {
- String example = "RAAW";
- try {
- VideoStreamingProtocol temp = VideoStreamingProtocol.valueForString(example);
- assertNull("Result of valueForString should be null.", temp);
- }
- catch (IllegalArgumentException exception) {
- fail("Invalid enum throws IllegalArgumentException.");
- }
- }
+ /**
+ * Verifies that an invalid assignment is null.
+ */
+ public void testInvalidEnum() {
+ String example = "RAAW";
+ try {
+ VideoStreamingProtocol temp = VideoStreamingProtocol.valueForString(example);
+ assertNull("Result of valueForString should be null.", temp);
+ } catch (IllegalArgumentException exception) {
+ fail("Invalid enum throws IllegalArgumentException.");
+ }
+ }
- /**
- * Verifies that a null assignment is invalid.
- */
- public void testNullEnum () {
- String example = null;
- try {
- VideoStreamingProtocol temp = VideoStreamingProtocol.valueForString(example);
- assertNull("Result of valueForString should be null.", temp);
- }
- catch (NullPointerException exception) {
- fail("Null string throws NullPointerException.");
- }
- }
+ /**
+ * Verifies that a null assignment is invalid.
+ */
+ public void testNullEnum() {
+ String example = null;
+ try {
+ VideoStreamingProtocol temp = VideoStreamingProtocol.valueForString(example);
+ assertNull("Result of valueForString should be null.", temp);
+ } catch (NullPointerException exception) {
+ fail("Null string throws NullPointerException.");
+ }
+ }
- /**
- * Verifies the possible enum values of TouchType.
- */
- public void testListEnum() {
- List<VideoStreamingProtocol> enumValueList = Arrays.asList(VideoStreamingProtocol.values());
+ /**
+ * Verifies the possible enum values of TouchType.
+ */
+ public void testListEnum() {
+ List<VideoStreamingProtocol> enumValueList = Arrays.asList(VideoStreamingProtocol.values());
- List<VideoStreamingProtocol> enumTestList = new ArrayList<VideoStreamingProtocol>();
- enumTestList.add(VideoStreamingProtocol.RAW);
- enumTestList.add(VideoStreamingProtocol.RTP);
- enumTestList.add(VideoStreamingProtocol.RTSP);
- enumTestList.add(VideoStreamingProtocol.RTMP);
- enumTestList.add(VideoStreamingProtocol.WEBM);
+ List<VideoStreamingProtocol> enumTestList = new ArrayList<VideoStreamingProtocol>();
+ enumTestList.add(VideoStreamingProtocol.RAW);
+ enumTestList.add(VideoStreamingProtocol.RTP);
+ enumTestList.add(VideoStreamingProtocol.RTSP);
+ enumTestList.add(VideoStreamingProtocol.RTMP);
+ enumTestList.add(VideoStreamingProtocol.WEBM);
- assertTrue("Enum value list does not match enum class list",
- enumValueList.containsAll(enumTestList) && enumTestList.containsAll(enumValueList));
- }
+ assertTrue("Enum value list does not match enum class list",
+ enumValueList.containsAll(enumTestList) && enumTestList.containsAll(enumValueList));
+ }
}