import static org.mockito.Mockito.verify;
import com.google.common.util.concurrent.ListenableFuture;
+import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
@InjectMocks
private RendererServiceWrapper rendererServiceWrapperMock;
+ private AutoCloseable closeable;
+
@Before
- public void init() throws NoSuchMethodException {
- MockitoAnnotations.initMocks(this);
+ public void openMocks() throws NoSuchMethodException {
+ closeable = MockitoAnnotations.openMocks(this);
}
@Test
org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev201125.ServiceDeleteInput
.class), any());
}
+
+ @After public void releaseMocks() throws Exception {
+ closeable.close();
+ }
}