public class ResetMocksTestExecutionListener
extends org.springframework.test.context.support.AbstractTestExecutionListener
TestExecutionListener
to reset any mock beans that have been marked with a
MockReset
.Constructor and Description |
---|
ResetMocksTestExecutionListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterTestMethod(org.springframework.test.context.TestContext testContext) |
void |
beforeTestMethod(org.springframework.test.context.TestContext testContext) |
int |
getOrder() |
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
getOrder
in class org.springframework.test.context.support.AbstractTestExecutionListener
public void beforeTestMethod(org.springframework.test.context.TestContext testContext) throws Exception
Exception
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.