Skip to content

Commit

Permalink
fix test order
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute authored Dec 10, 2024
1 parent 1e5bc92 commit 7bc083a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/dev/katsute/mal4j/MangaTests/TestManga.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ final void testEnum(){
assertEquals(MangaPublishStatus.Unknown, MangaPublishStatus.asEnum("?"));
assertEquals(MangaType.Unknown, MangaType.asEnum("?"));

assumeTrue(MangaPublishStatus.OnHiatus == mal.getManga(2).getStatus(), "Test will fail when status is not hiatus");

for(final RelatedManga relatedManga : mal.getManga(112589).getRelatedManga())
assertNotEquals(RelationType.Unknown, relatedManga.getRelationType(), "Unknown type: " + relatedManga.getRawRelationType());

assumeTrue(MangaPublishStatus.OnHiatus == mal.getManga(2).getStatus(), "Test will fail when status is not hiatus");

Check notice on line 152 in src/test/java/dev/katsute/mal4j/MangaTests/TestManga.java

View workflow job for this annotation

GitHub Actions / MyAnimeList CI [Client] (Java 8)

💤 dev/katsute/mal4j/MangaTests/TestManga testEnum :

https://github.com/KatsuteDev/Mal4J/blob/7bc083aec68070992ac505d4a356292add49e3d6/./src/test/java/dev/katsute/mal4j/MangaTests/TestManga.java#L152 org.opentest4j.TestAbortedException: Assumption failed: Test will fail when status is not hiatus at org.junit.jupiter.api.Assumptions.throwAssumptionFailed(Assumptions.java:316) at org.junit.jupiter.api.Assumptions.assumeTrue(Assumptions.java:115) at dev.katsute.mal4j.MangaTests.TestManga.testEnum(TestManga.java:152) at java.lang.reflect.Method.invoke(Method.java:498) at java.util.ArrayList.forEach(ArrayList.java:1259) at java.util.ArrayList.forEach(ArrayList.java:1259)

Check notice on line 152 in src/test/java/dev/katsute/mal4j/MangaTests/TestManga.java

View workflow job for this annotation

GitHub Actions / MyAnimeList CI [Client] (Java 11)

💤 dev/katsute/mal4j/MangaTests/TestManga testEnum :

https://github.com/KatsuteDev/Mal4J/blob/7bc083aec68070992ac505d4a356292add49e3d6/./src/test/java/dev/katsute/mal4j/MangaTests/TestManga.java#L152 org.opentest4j.TestAbortedException: Assumption failed: Test will fail when status is not hiatus at org.junit.jupiter.api.Assumptions.throwAssumptionFailed(Assumptions.java:316) at org.junit.jupiter.api.Assumptions.assumeTrue(Assumptions.java:115) at dev.katsute.mal4j.MangaTests.TestManga.testEnum(TestManga.java:152) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

Check notice on line 152 in src/test/java/dev/katsute/mal4j/MangaTests/TestManga.java

View workflow job for this annotation

GitHub Actions / MyAnimeList CI [Client] (Java 17)

💤 dev/katsute/mal4j/MangaTests/TestManga testEnum :

https://github.com/KatsuteDev/Mal4J/blob/7bc083aec68070992ac505d4a356292add49e3d6/./src/test/java/dev/katsute/mal4j/MangaTests/TestManga.java#L152 org.opentest4j.TestAbortedException: Assumption failed: Test will fail when status is not hiatus at org.junit.jupiter.api.Assumptions.throwAssumptionFailed(Assumptions.java:316) at org.junit.jupiter.api.Assumptions.assumeTrue(Assumptions.java:115) at dev.katsute.mal4j.MangaTests.TestManga.testEnum(TestManga.java:152) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
}

@Test
Expand Down

0 comments on commit 7bc083a

Please sign in to comment.