mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-18 16:47:58 +01:00
Log when executing (Before|After) class sinttest methods
This commit is contained in:
parent
e27e416063
commit
01169a956c
1 changed files with 2 additions and 0 deletions
|
@ -338,6 +338,7 @@ public class SmackIntegrationTestFramework {
|
||||||
|
|
||||||
if (beforeClassMethods.size() == 1) {
|
if (beforeClassMethods.size() == 1) {
|
||||||
Method beforeClassMethod = beforeClassMethods.iterator().next();
|
Method beforeClassMethod = beforeClassMethods.iterator().next();
|
||||||
|
LOGGER.info("Executing @BeforeClass method of " + testClass);
|
||||||
try {
|
try {
|
||||||
beforeClassMethod.invoke(null);
|
beforeClassMethod.invoke(null);
|
||||||
}
|
}
|
||||||
|
@ -414,6 +415,7 @@ public class SmackIntegrationTestFramework {
|
||||||
|
|
||||||
if (afterClassMethods.size() == 1) {
|
if (afterClassMethods.size() == 1) {
|
||||||
Method afterClassMethod = afterClassMethods.iterator().next();
|
Method afterClassMethod = afterClassMethods.iterator().next();
|
||||||
|
LOGGER.info("Executing @AfterClass method of " + testClass);
|
||||||
try {
|
try {
|
||||||
afterClassMethod.invoke(null);
|
afterClassMethod.invoke(null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue