File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
aws-api/src/test/java/com/amplifyframework/api/aws Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 2323import org .json .JSONObject ;
2424import org .junit .After ;
2525import org .junit .Before ;
26- import org .junit .Ignore ;
2726import org .junit .Test ;
2827import org .junit .runner .RunWith ;
2928import org .robolectric .RobolectricTestRunner ;
@@ -89,28 +88,6 @@ public void tearDown() throws IOException {
8988 server .shutdown ();
9089 }
9190
92- /**
93- * Make an API request to the mock server and check the user agent
94- * header format on the request. Verify that the Android version is
95- * accurately reflected on the user agent.
96- * @throws Exception if API call fails or thread is interrupted while
97- * waiting for request
98- */
99- @ Test
100- @ Config (sdk = 16 )
101- @ Ignore ("minSDKVersion changed to 24 in favor of AWS Kotlin SDK dependency" )
102- public void testUserAgentWithApi16 () throws Exception {
103- String userAgent = checkUserAgent ();
104-
105- // Assert the correct format and content
106- assertNotNull (userAgent );
107- Matcher regexMatcher = USER_AGENT_PATTERN .matcher (userAgent );
108- assertTrue (regexMatcher .matches ());
109- assertEquals ("amplify-android" , regexMatcher .group ("libraryName" ));
110- assertEquals ("Android" , regexMatcher .group ("systemName" ));
111- assertEquals ("4.1.2" , regexMatcher .group ("systemVersion" ));
112- }
113-
11491 /**
11592 * Make an API request to the mock server and check the user agent
11693 * header format on the request. systemName and systemVersion not
You can’t perform that action at this time.
0 commit comments