Skip to content

Commit

Permalink
changed assertion in testToJsonCustom
Browse files Browse the repository at this point in the history
  • Loading branch information
aakgna committed Mar 4, 2024
1 parent 7729aa7 commit f777f66
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertTrue;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
Expand Down Expand Up @@ -122,9 +121,9 @@ public void testToJsonCustom() throws IOException {
new HashSet<>(List.of("Primordial", "Extension", "Application", "Synthetic"));
assertEquals(loaders.keySet(), loaderKeys);
assertEquals(stdlibs.length, loaders.get("Primordial").size());
assertTrue(loaders.get("Primordial").get(0).contains("/Contents/Home/jmods/java.base.jmod"));
assertThat(loaders.get("Primordial"), hasItem("JarFileModule:" + stdlibs[0]));
assertEquals(stdlibs.length, loaders.get("Application").size());
assertTrue(loaders.get("Application").get(0).contains("/Contents/Home/jmods/java.base.jmod"));
assertThat(loaders.get("Application"), hasItem("JarFileModule:" + stdlibs[0]));
assertEquals(0, loaders.get("Extension").size());
assertEquals(0, loaders.get("Synthetic").size());
}
Expand Down

0 comments on commit f777f66

Please sign in to comment.