Skip to content

Commit e3ac273

Browse files
Update comments in RPCGenericTests
1 parent 7d4149b commit e3ac273

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/RPCGenericTests.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.smartdevicelink.test.rpc;
22

3-
43
import androidx.test.ext.junit.runners.AndroidJUnit4;
54

65
import com.smartdevicelink.proxy.rpc.enums.SystemCapabilityType;
@@ -17,11 +16,13 @@
1716
import java.lang.annotation.Annotation;
1817
import java.lang.reflect.AnnotatedElement;
1918
import java.lang.reflect.Constructor;
19+
import java.lang.reflect.Field;
2020
import java.lang.reflect.InvocationTargetException;
2121
import java.lang.reflect.Method;
2222
import java.lang.reflect.Type;
2323
import java.util.ArrayList;
2424
import java.util.Arrays;
25+
import java.util.EnumSet;
2526
import java.util.HashMap;
2627
import java.util.List;
2728
import java.util.Map;
@@ -31,6 +32,18 @@
3132
import static junit.framework.TestCase.assertTrue;
3233
import static junit.framework.TestCase.fail;
3334

35+
/**
36+
* This class tests the following
37+
* Functions & Structs
38+
* - The classes exist in code and their names and deprecation status match the spec
39+
* - They have constructors with mandatory params and those constructors are setting the values correctly
40+
* - They have setter and getter for every param and their names and deprecations status match the spec
41+
* - The params setter return instance of class type (for chainable RPCs)
42+
*
43+
* Enums
44+
* - The enums exist in code and their names and deprecation status match the spec
45+
* - They enums have a value for every element in the spec and the names and deprecation status match the spec
46+
*/
3447
@RunWith(AndroidJUnit4.class)
3548
public class RPCGenericTests {
3649

0 commit comments

Comments
 (0)