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 4, 2022
1 parent 9a5dafe commit 891814d
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 891814d

Please sign in to comment.