Skip to content

Commit

Permalink
add test case for deactivation
Browse files Browse the repository at this point in the history
  • Loading branch information
gstoehld committed Mar 3, 2022
1 parent e9151d7 commit f81cb14
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,22 @@ public void testForUpdateNote() throws Exception {
assertTestNoUpdate(result);
}

@Test
public void testDeactivation() throws Exception {
var result =
mockMvc.perform(
get("/v1/config")
.param("osversion", "android11")
.param("appversion", "android-2.3.2")
.param("buildnr", "android-2020.0145asdfa34"))
.andExpect(status().is2xxSuccessful())
.andReturn()
.getResponse();
ConfigResponse resp = toConfigResponse(result);
assertNotNull(resp.getDeactivationMessage());
assertTrue(resp.getDeactivate());
}

@Test
public void testNoForceUpdate() throws Exception {
MockHttpServletResponse result =
Expand Down

0 comments on commit f81cb14

Please sign in to comment.