File tree Expand file tree Collapse file tree
android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .smartdevicelink .test .rpc ;
22
3-
43import androidx .test .ext .junit .runners .AndroidJUnit4 ;
54
65import com .smartdevicelink .proxy .rpc .enums .SystemCapabilityType ;
1716import java .lang .annotation .Annotation ;
1817import java .lang .reflect .AnnotatedElement ;
1918import java .lang .reflect .Constructor ;
19+ import java .lang .reflect .Field ;
2020import java .lang .reflect .InvocationTargetException ;
2121import java .lang .reflect .Method ;
2222import java .lang .reflect .Type ;
2323import java .util .ArrayList ;
2424import java .util .Arrays ;
25+ import java .util .EnumSet ;
2526import java .util .HashMap ;
2627import java .util .List ;
2728import java .util .Map ;
3132import static junit .framework .TestCase .assertTrue ;
3233import 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 )
3548public class RPCGenericTests {
3649
You can’t perform that action at this time.
0 commit comments