Skip to content

Commit

Permalink
remove arbitraryly chosen upper limit from testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
swissiety committed Mar 14, 2024
1 parent ea1b4c9 commit b4364a4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,13 @@ public void testGeneralClassReceivalFromModule() {
view.getModuleInfo(targetClass.getPackageName().getModuleSignature());
assertTrue(moduleDescriptor.isPresent());

int size = view.getModuleClasses(targetClass.getPackageName().getModuleSignature()).size();
Collection<JavaSootClass> moduleClasses =
view.getModuleClasses(targetClass.getPackageName().getModuleSignature());
int size = moduleClasses.size();
HashSet<JavaSootClass> javaSootClasses = new HashSet<>(moduleClasses);
assertEquals(javaSootClasses.size(), moduleClasses.size());
assertTrue(
(size > 5500 && size < 6500),
size > 5500,
"actual: " + size); // ~amount of java.base classes -> depends on java implementation..
}

Expand Down

0 comments on commit b4364a4

Please sign in to comment.