Some of the initMocks() in openflow-protocol-impl are unnecessary.
Remove them.
JIRA: OPNFLWPLUG-1122
Change-Id: Iad89eccdd1a855b584ace9a79162f39785a3aba2
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
-import org.mockito.MockitoAnnotations;
import org.mockito.junit.MockitoJUnitRunner;
import org.opendaylight.openflowjava.protocol.impl.core.connection.ConnectionFacade;
import org.opendaylight.openflowjava.util.ByteBufUtils;
*/
@Before
public void setUp() {
- MockitoAnnotations.initMocks(this);
decoder = new OFFrameDecoder(connectionFacade, false);
list.clear();
import javax.net.ssl.SSLContext;
import org.junit.Before;
import org.junit.Test;
-import org.mockito.MockitoAnnotations;
import org.opendaylight.openflowjava.protocol.api.connection.TlsConfiguration;
import org.opendaylight.openflowjava.protocol.api.connection.TlsConfigurationImpl;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.config.rev140630.KeystoreType;
*/
@Before
public void setUp() {
- MockitoAnnotations.initMocks(this);
tlsConfiguration = new TlsConfigurationImpl(KeystoreType.JKS, "/exemplary-ctlTrustStore",
PathType.CLASSPATH, KeystoreType.JKS, "/exemplary-ctlKeystore", PathType.CLASSPATH,
Lists.newArrayList("TLS_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_128_CBC_SHA256")) ;
import static org.junit.Assert.assertNotNull;
import java.io.InputStream;
-import org.junit.Before;
import org.junit.Test;
-import org.mockito.MockitoAnnotations;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.config.rev140630.PathType;
/**
* @author jameshall
*/
public class SslKeyStoreTest {
-
- /**
- * Sets up test environment.
- */
- @Before
- public void setUp() {
- MockitoAnnotations.initMocks(this);
- }
-
/**
* Test keystore file access - via classpath.
*/