diff --git a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java index 351832fba..18a609720 100644 --- a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java +++ b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java @@ -334,7 +334,7 @@ public class SmackIntegrationTestFramework { Set allBeforeClassMethods = getAllMethods(testClass, withAnnotation(BeforeClass.class)); allBeforeClassMethods.removeAll(beforeClassMethods); if (!allBeforeClassMethods.isEmpty()) { - LOGGER.warning("@BeforeClass methods with wrong signature found"); + throw new IllegalArgumentException("@BeforeClass methods with wrong signature found"); } if (beforeClassMethods.size() == 1) { @@ -403,7 +403,7 @@ public class SmackIntegrationTestFramework { Set allAfterClassMethods = getAllMethods(testClass, withAnnotation(AfterClass.class)); allAfterClassMethods.removeAll(afterClassMethods); if (!allAfterClassMethods.isEmpty()) { - LOGGER.warning("@AfterClass methods with wrong signature found"); + throw new IllegalArgumentException("@AfterClass methods with wrong signature found"); } if (afterClassMethods.size() == 1) {