*/
package org.opendaylight.openflowplugin.impl.connection;
-import static org.junit.Assert.fail;
import com.google.common.util.concurrent.SettableFuture;
import java.math.BigInteger;
import java.net.InetSocketAddress;
import org.junit.After;
import org.junit.Before;
-import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
Mockito.verify(deviceConnectedHandler, Mockito.timeout(FINAL_STEP_TIMEOUT)).deviceConnected(Matchers.any(ConnectionContext.class));
}
-
- /**
- * Test method for {@link org.opendaylight.openflowplugin.impl.connection.ConnectionManagerImpl#setOpenflowProtocolListener(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolListener)}.
- */
- @Test
- @Ignore
- public void testSetOpenflowProtocolListener() {
- fail("Not yet implemented");
- }
-
}
import java.util.List;
import org.junit.Assert;
import org.junit.Before;
-import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
new DeviceStateImpl(null, nodeId);
}
- /**
- * Test method for {@link DeviceStateImpl#DeviceStateImpl(FeaturesReply, NodeId)}.
- */
- @Test(expected=IllegalArgumentException.class)
- @Ignore // Available for OF1.0 only
- public void testDeviceStateImplNullPhyPort(){
- final FeaturesReply emptyFeaturesReply = Mockito.mock(FeaturesReply.class);
- Mockito.when(emptyFeaturesReply.getPhyPort()).thenReturn(null);
- new DeviceStateImpl(emptyFeaturesReply, nodeId);
- }
-
/**
* Test method for {@link DeviceStateImpl#getNodeId()}.
*/
import io.netty.util.HashedWheelTimer;
import org.junit.After;
import org.junit.Before;
-import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Matchers;
Mockito.verify(txChain).newWriteOnlyTransaction();
Mockito.verify(writeTx, Mockito.times(2)).put(LogicalDatastoreType.CONFIGURATION, path, data);
- }
-
- /**
- * test of {@link TransactionChainManager#enableSubmit()}: submit - after counter activated
- *
- * @throws Exception
- */
- @Test
- @Ignore // FIXME : think about test -> we don't use submit by time and nrOfOperations
- public void testEnableCounter2() throws Exception {
- txChainManager.enableSubmit();
-
- final Node data = new NodeBuilder().setId(nodeId).build();
- txChainManager.writeToTransaction(LogicalDatastoreType.CONFIGURATION, path, data);
- txChainManager.writeToTransaction(LogicalDatastoreType.CONFIGURATION, path, data);
-
- Mockito.verify(txChain).newWriteOnlyTransaction();
- Mockito.verify(writeTx, Mockito.times(2)).put(LogicalDatastoreType.CONFIGURATION, path, data);
- Mockito.verify(writeTx).submit();
-
- txChainManager.writeToTransaction(LogicalDatastoreType.CONFIGURATION, path, data);
- txChainManager.writeToTransaction(LogicalDatastoreType.CONFIGURATION, path, data);
-
- Mockito.verify(txChain, Mockito.times(2)).newWriteOnlyTransaction();
- Mockito.verify(writeTx, Mockito.times(4)).put(LogicalDatastoreType.CONFIGURATION, path, data);
- Mockito.verify(writeTx, Mockito.times(2)).submit();
- Mockito.verify(writeTx, Mockito.times(2)).getIdentifier();
+ Mockito.verify(writeTx, Mockito.never()).submit();
}
@Test