1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-12-07 03:21:08 +01:00

Fix for getting after method

This commit is contained in:
stawny 2015-04-04 09:32:57 +02:00 committed by Florian Schmaus
parent 9d0ea3cf70
commit 75e35e8db6
3 changed files with 45 additions and 3 deletions

View file

@ -400,7 +400,7 @@ public class SmackIntegrationTestFramework {
| Modifier.STATIC));
// See if there are any methods that have the @AfterClassAnnotation but a wrong signature
Set<Method> allAfterClassMethods = getAllMethods(testClass, withAnnotation(BeforeClass.class));
Set<Method> allAfterClassMethods = getAllMethods(testClass, withAnnotation(AfterClass.class));
allAfterClassMethods.removeAll(afterClassMethods);
if (!allAfterClassMethods.isEmpty()) {
LOGGER.warning("@AfterClass methods with wrong signature found");

View file

@ -55,12 +55,12 @@ public class ChatTest extends AbstractSmackIntegrationTest {
}
@BeforeClass
public void setUp() {
public static void setUp() {
JivePropertiesManager.setJavaObjectEnabled(true);
}
@AfterClass
public void tearDown() {
public static void tearDown() {
JivePropertiesManager.setJavaObjectEnabled(false);
}