Skip to content
Snippets Groups Projects
Commit 3bdab59e authored by kaloyane's avatar kaloyane
Browse files

minor: hudson complains about TestNG parameters, but everything works well in Eclipse ?

SVN: 20877
parent 016e54aa
No related branches found
No related tags found
No related merge requests found
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
package ch.systemsx.cisd.openbis.generic.server.business.bo; package ch.systemsx.cisd.openbis.generic.server.business.bo;
import java.lang.reflect.Method;
import org.jmock.Expectations; import org.jmock.Expectations;
import org.jmock.Mockery; import org.jmock.Mockery;
import org.testng.AssertJUnit; import org.testng.AssertJUnit;
...@@ -196,7 +194,7 @@ public abstract class AbstractBOTest extends AssertJUnit ...@@ -196,7 +194,7 @@ public abstract class AbstractBOTest extends AssertJUnit
} }
@AfterMethod @AfterMethod
public void afterMethod(ITestResult result, Method m) public void afterMethod(ITestResult result)
{ {
// verify mock expectations only when the test has not failed // verify mock expectations only when the test has not failed
if (result.isSuccess()) if (result.isSuccess())
...@@ -207,7 +205,7 @@ public abstract class AbstractBOTest extends AssertJUnit ...@@ -207,7 +205,7 @@ public abstract class AbstractBOTest extends AssertJUnit
} catch (Throwable t) } catch (Throwable t)
{ {
// assert expectations were met, including the name of the failed method // assert expectations were met, including the name of the failed method
throw new Error(m.getName() + "() : ", t); throw new Error(result.getMethod().getMethodName() + "() : ", t);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment