diff options
author | Joey Grover <joeygrover@gmail.com> | 2019-03-26 13:14:13 -0400 |
---|---|---|
committer | Joey Grover <joeygrover@gmail.com> | 2019-03-26 13:14:13 -0400 |
commit | f6945154abaff1db39c43a26b847d1dc0fb8ac7b (patch) | |
tree | c37e5ff2543a1142eb37c91126843c88dcbde669 | |
parent | aac74054bb77fa2d74f831838d03c51526e5df47 (diff) | |
download | sdl_android-f6945154abaff1db39c43a26b847d1dc0fb8ac7b.tar.gz |
Add unit test for RS version number in res&class
-rw-r--r-- | android/sdl_android/src/androidTest/java/com/smartdevicelink/transport/SdlRouterServiceTests.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/android/sdl_android/src/androidTest/java/com/smartdevicelink/transport/SdlRouterServiceTests.java b/android/sdl_android/src/androidTest/java/com/smartdevicelink/transport/SdlRouterServiceTests.java index 258368ee5..e01fdbaf2 100644 --- a/android/sdl_android/src/androidTest/java/com/smartdevicelink/transport/SdlRouterServiceTests.java +++ b/android/sdl_android/src/androidTest/java/com/smartdevicelink/transport/SdlRouterServiceTests.java @@ -64,6 +64,15 @@ public class SdlRouterServiceTests extends AndroidTestCase2 { //Nothing here for now } + /** + * Ensure that the router service hardcoded number is the same as the integer value in + * the resources. + */ + public void testVersionCorrectness(){ + int resourceVersion = getContext().getResources().getInteger(com.smartdevicelink.test.R.integer.sdl_router_service_version_value); + assertEquals(resourceVersion, SdlRouterService.ROUTER_SERVICE_VERSION_NUMBER); + } + /** * Test null bundle handling in AltTransportHandler when handling messages. Only test the case of * msg.what == TransportConstants.ROUTER_RECEIVED_PACKET |