Skip to content

Commit

Permalink
update total license number in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Murphy <[email protected]>
  • Loading branch information
2000rosser committed Sep 13, 2024
1 parent 84b01b0 commit b503861
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void testLoadDefaultLicenses() throws Exception {
Method method = generator.getClass().getDeclaredMethod("loadDefaultLicenses");
method.setAccessible(true);
method.invoke(generator);
Assert.assertEquals(729, qm.getAllLicensesConcise().size());
Assert.assertEquals(738, qm.getAllLicensesConcise().size());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void getLicensesTest() {
.header(X_API_KEY, apiKey)
.get(Response.class);
Assert.assertEquals(200, response.getStatus(), 0);
Assert.assertEquals(String.valueOf(729), response.getHeaderString(TOTAL_COUNT_HEADER));
Assert.assertEquals(String.valueOf(738), response.getHeaderString(TOTAL_COUNT_HEADER));
JsonArray json = parseJsonArray(response);
Assert.assertNotNull(json);
Assert.assertEquals(100, json.size());
Expand All @@ -77,7 +77,7 @@ public void getLicensesConciseTest() {
Assert.assertNull(response.getHeaderString(TOTAL_COUNT_HEADER));
JsonArray json = parseJsonArray(response);
Assert.assertNotNull(json);
Assert.assertEquals(729, json.size());
Assert.assertEquals(738, json.size());
Assert.assertNotNull(json.getJsonObject(0).getString("name"));
Assert.assertNull(json.getJsonObject(0).getString("licenseText", null));
Assert.assertNull(json.getJsonObject(0).getString("licenseComments", null));
Expand Down

0 comments on commit b503861

Please sign in to comment.