Remove redundant exception declarations 62/80062/2
authorStephen Kitt <skitt@redhat.com>
Tue, 6 Nov 2018 17:11:26 +0000 (18:11 +0100)
committerStephen Kitt <skitt@redhat.com>
Mon, 4 Mar 2019 11:59:54 +0000 (12:59 +0100)
This allows callers to be simplified.

JIRA: OPNFLWPLUG-1045
Change-Id: I8ed5eecc20bb66c0b322ef3716612cad24bd8ff1
Signed-off-by: Stephen Kitt <skitt@redhat.com>
520 files changed:
applications/bulk-o-matic/src/test/java/org/opendaylight/openflowplugin/applications/bulk/o/matic/BulkOMaticUtilsTest.java
applications/bulk-o-matic/src/test/java/org/opendaylight/openflowplugin/applications/bulk/o/matic/FlowReaderTest.java
applications/bulk-o-matic/src/test/java/org/opendaylight/openflowplugin/applications/bulk/o/matic/FlowWriterConcurrentTest.java
applications/bulk-o-matic/src/test/java/org/opendaylight/openflowplugin/applications/bulk/o/matic/FlowWriterDirectOFRpcTest.java
applications/bulk-o-matic/src/test/java/org/opendaylight/openflowplugin/applications/bulk/o/matic/FlowWriterSequentialTest.java
applications/bulk-o-matic/src/test/java/org/opendaylight/openflowplugin/applications/bulk/o/matic/FlowWriterTxChainTest.java
applications/bulk-o-matic/src/test/java/org/opendaylight/openflowplugin/applications/bulk/o/matic/SalBulkFlowServiceImplTest.java
applications/bulk-o-matic/src/test/java/org/opendaylight/openflowplugin/applications/bulk/o/matic/TableWriterTest.java
applications/forwardingrules-manager/src/test/java/org/opendaylight/openflowplugin/applications/frm/impl/DeviceMastershipManagerTest.java
applications/forwardingrules-manager/src/test/java/org/opendaylight/openflowplugin/applications/frm/impl/DeviceMastershipTest.java
applications/forwardingrules-manager/src/test/java/test/mock/FlowListenerTest.java
applications/forwardingrules-manager/src/test/java/test/mock/GroupListenerTest.java
applications/forwardingrules-manager/src/test/java/test/mock/MeterListenerTest.java
applications/forwardingrules-sync/src/main/java/org/opendaylight/openflowplugin/applications/frsync/util/SemaphoreKeeperGuavaImpl.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/impl/ForwardingRulesSyncProviderTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/impl/SimplifiedConfigListenerTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/impl/SimplifiedOperationalListenerTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/impl/SyncReactorGuardDecoratorTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/impl/SyncReactorImplTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/impl/clustering/DeviceMastershipManagerTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/impl/clustering/DeviceMastershipTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/impl/strategy/FlowForwarderTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/impl/strategy/GroupForwarderTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/impl/strategy/MeterForwarderTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/impl/strategy/SyncPlanPushStrategyFlatBatchImplTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/impl/strategy/SyncPlanPushStrategyIncrementalImplTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/impl/strategy/TableForwarderTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/util/ReconcileUtilTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/util/ReconciliationRegistryTest.java
applications/forwardingrules-sync/src/test/java/org/opendaylight/openflowplugin/applications/frsync/util/SemaphoreKeeperGuavaImplTest.java
applications/lldp-speaker/src/main/java/org/opendaylight/openflowplugin/applications/lldpspeaker/LLDPSpeaker.java
applications/lldp-speaker/src/main/java/org/opendaylight/openflowplugin/applications/lldpspeaker/LLDPUtil.java
applications/lldp-speaker/src/test/java/org/opendaylight/openflowplugin/applications/lldpspeaker/NodeConnectorInventoryEventTranslatorTest.java
applications/notification-supplier/src/main/java/org/opendaylight/openflowplugin/applications/notification/supplier/impl/AbstractNotificationSupplierBase.java
applications/of-switch-config-pusher/src/test/java/org/opendaylight/openflowplugin/openflow/ofswitch/config/DefaultConfigPusherTest.java
applications/reconciliation-framework/src/main/java/org/opendaylight/openflowplugin/applications/reconciliation/cli/GetRegisteredServices.java
applications/reconciliation-framework/src/main/java/org/opendaylight/openflowplugin/applications/reconciliation/impl/ReconciliationManagerImpl.java
applications/southbound-cli/src/main/java/org/opendaylight/openflowplugin/applications/southboundcli/cli/GetAllNodesCommandProvider.java
applications/southbound-cli/src/main/java/org/opendaylight/openflowplugin/applications/southboundcli/cli/ReconciliationCount.java
applications/southbound-cli/src/main/java/org/opendaylight/openflowplugin/applications/southboundcli/cli/ShowNodeCommandProvider.java
applications/topology-lldp-discovery/src/main/java/org/opendaylight/openflowplugin/applications/topology/lldp/utils/LLDPDiscoveryUtils.java
applications/topology-lldp-discovery/src/test/java/org/opendaylight/openflowplugin/applications/topology/lldp/LLDPLinkAgerTest.java
applications/topology-lldp-discovery/src/test/java/org/opendaylight/openflowplugin/applications/topology/lldp/utils/LLDPDiscoveryUtilsTest.java
applications/topology-manager/src/main/java/org/opendaylight/openflowplugin/applications/topology/manager/DataTreeChangeListenerImpl.java
applications/topology-manager/src/main/java/org/opendaylight/openflowplugin/applications/topology/manager/NodeChangeListenerImpl.java
applications/topology-manager/src/main/java/org/opendaylight/openflowplugin/applications/topology/manager/TerminationPointChangeListenerImpl.java
drop-test-karaf/src/main/java/org/opendaylight/openflowplugin/droptestkaraf/ClearDropStatsCommandProvider.java
drop-test-karaf/src/main/java/org/opendaylight/openflowplugin/droptestkaraf/DropAllPacketsCommandProvider.java
drop-test-karaf/src/main/java/org/opendaylight/openflowplugin/droptestkaraf/DropAllPacketsRpcCommandProvider.java
drop-test-karaf/src/main/java/org/opendaylight/openflowplugin/droptestkaraf/DropTestProviderImpl.java
drop-test-karaf/src/main/java/org/opendaylight/openflowplugin/droptestkaraf/ShowDropStatsCommandProvider.java
extension/openflowjava-extension-nicira/src/main/java/org/opendaylight/openflowjava/nx/NiciraExtensionCodecRegistratorImpl.java
extension/openflowjava-extension-nicira/src/main/java/org/opendaylight/openflowjava/nx/NiciraExtensionsRegistrator.java
extension/openflowjava-extension-nicira/src/test/java/org/opendaylight/openflowjava/nx/NiciraExtensionsRegistratorTest.java
extension/openflowplugin-extension-api/src/main/java/org/opendaylight/openflowplugin/extension/api/ConvertorMessageFromOFJava.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/NiciraExtensionProviderTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/action/ConntrackConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/action/CtClearConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/action/DecNshTtlConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/action/DecapConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/action/EncapConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/action/FinTimeoutConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/action/MultipathConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/action/OutputReg2ConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/action/OutputRegConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/action/RegLoadConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/action/RegMoveConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/action/ResubmitConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/ArpOpConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/ArpShaConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/ArpSpaConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/ArpThaConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/ArpTpaConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/CtStateConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/CtZoneConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/EthDstConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/EthSrcConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/EthTypeConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/NshFlagsConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/NshMdtypeConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/NshNpConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/NshTtlConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/Nshc1ConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/Nshc2ConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/Nshc3ConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/Nshc4ConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/NsiConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/NspConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/TcpDstConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/TcpSrcConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/TunIPv4DstConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/TunIPv4SrcConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/TunIdConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/UdpDstConvertorTest.java
extension/openflowplugin-extension-nicira/src/test/java/org/opendaylight/openflowplugin/extension/vendor/nicira/convertor/match/UdpSrcConvertorTest.java
extension/openflowplugin-extension-onf/src/main/java/org/opendaylight/openflowplugin/extension/onf/converter/BundleAddMessageConverter.java
extension/openflowplugin-extension-onf/src/main/java/org/opendaylight/openflowplugin/extension/onf/converter/BundleControlConverter.java
extension/openflowplugin-extension-onf/src/test/java/org/opendaylight/openflowplugin/extension/onf/OnfExtensionProviderTest.java
extension/openflowplugin-extension-onf/src/test/java/org/opendaylight/openflowplugin/extension/onf/converter/BundleAddMessageConverterTest.java
extension/openflowplugin-extension-onf/src/test/java/org/opendaylight/openflowplugin/extension/onf/converter/BundleControlConverterTest.java
libraries/liblldp/src/main/java/org/opendaylight/openflowplugin/libraries/liblldp/LLDPTLV.java
libraries/liblldp/src/test/java/org/opendaylight/openflowplugin/libraries/liblldp/LLDPTLVTest.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/IdleHandler.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OFDatagramPacketDecoder.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OFDatagramPacketHandler.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OFDecoder.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OFFrameDecoder.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/SwitchConnectionProviderImpl.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/UdpChannelInitializer.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/DummyDecoder.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/IdleHandlerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/OFDatagramPacketDecoderTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/OFDatagramPacketHandlerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/OFDecoderStatisticsTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/OFDecoderTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/OFFrameDecoderTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/SslContextFactoryTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/TcpHandlerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/connection/ChannelOutboundQueue02Test.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/connection/ConnectionAdapterImp02lTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/connection/ConnectionAdapterImpl02Test.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueEntryTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/connection/UdpHandlerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/factories/FlowModInputMessageFactoryTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/deserialization/factories/PortModInputMessageFactoryTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/BarrierReplyMessageFactoryTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/MultipartReplyMessageFactoryTest.java
openflowjava/openflow-protocol-it/src/test/java/org/opendaylight/openflowjava/protocol/it/integration/IntegrationTest.java
openflowjava/openflowjava-util/src/main/java/org/opendaylight/openflowjava/util/ByteBufUtils.java
openflowjava/openflowjava-util/src/test/java/org/opendaylight/openflowjava/util/ByteBufUtilsTest.java
openflowjava/openflowjava-util/src/test/java/org/opendaylight/openflowjava/util/ExperimenterDeserializerKeyFactoryTest.java
openflowjava/openflowjava-util/src/test/java/org/opendaylight/openflowjava/util/ExperimenterSerializerKeyFactoryTest.java
openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/handlers/DeviceConnectedHandler.java
openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/lifecycle/ContextChainHolder.java
openflowplugin-common/src/test/java/org/opendaylight/openflowplugin/common/wait/SimpleTaskRetryLooperTest.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/configuration/ConfigurationServiceFactoryImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/connection/HandshakeManagerImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/device/DeviceContextImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/karaf/ClearStatsCommandProvider.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/karaf/ResetEventTimesComandProvider.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/karaf/ResetSessionStatsComandProvider.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/karaf/ShowEventTimesComandProvider.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/karaf/ShowSessionStatsCommandProvider.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/karaf/ShowStatsCommandProvider.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/lifecycle/ContextChainHolderImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyExperimenterDeserializer.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/EchoService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/RoleService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/multilayer/MultiLayerAggregateFlowMultipartService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/multilayer/MultiLayerExperimenterMultipartService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/multilayer/MultiLayerFlowService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/multilayer/MultiLayerGroupService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/multilayer/MultiLayerMeterService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/multilayer/MultiLayerTableMultipartService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/sal/FlowCapableTransactionServiceImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/sal/NodeConfigServiceImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/sal/PacketProcessingServiceImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/sal/SalPortServiceImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/sal/SalRoleServiceImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerAggregateFlowMultipartService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerExperimenterMultipartService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerFlowService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerGetAsyncConfigService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerGroupService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerMeterService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerPortService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerSetAsyncConfigService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerTableMultipartService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsPollingService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AggregateFlowsInTableService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AllFlowsInAllTablesService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AllFlowsInTableService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AllGroupsStatsService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AllMeterConfigStatsService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AllMeterStatsService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AllPortStatsService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AllQueuesAllPortsService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/AllQueuesOnePortService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/FlowsInTableService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/GroupDescriptionService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/GroupFeaturesService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/GroupStatsService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/MeterFeaturesService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/MeterStatsService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/OneQueueOnePortService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/OpendaylightFlowTableStatisticsServiceImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/PortStatsService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/dedicated/StatisticsGatheringOnTheFlyService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/dedicated/StatisticsGatheringService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/singlelayer/FlowDirectStatisticsService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/singlelayer/GroupDirectStatisticsService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/singlelayer/MeterDirectStatisticsService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/singlelayer/PortDirectStatisticsService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/singlelayer/QueueDirectStatisticsService.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/OpenFlowPluginProviderImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/common/MultipartReplyTranslatorUtilTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/common/MultipartRequestInputFactoryTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/configuration/ConfigurationServiceFactoryImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/configuration/OpenFlowProviderConfigImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/connection/ConnectionContextImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/connection/ErrorHandlerSimpleImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/connection/HandshakeManagerImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/connection/OutboundQueueProviderImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/connection/listener/HandshakeListenerImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/connection/listener/OpenflowProtocolListenerInitialImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/connection/listener/SystemNotificationsListenerImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/device/DeviceContextImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/device/DeviceManagerImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/device/PacketInRateLimiterTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/device/SwitchFeaturesUtilTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/device/TransactionChainManagerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/device/initialization/DeviceInitializerProviderTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/device/initialization/OF10DeviceInitializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/device/initialization/OF13DeviceInitializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/karaf/ShowStatsCommandProviderTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/lifecycle/ContextChainHolderImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/lifecycle/ContextChainImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/mastership/MastershipChangeServiceManagerImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/mastership/MastershipServiceDelegateTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/AbstractDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/MessageDeserializerInjectorTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/CopyTtlInActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/CopyTtlOutActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/DecMplsTtlActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/DecNwTtlActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/GroupActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/OutputActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/PopMplsActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/PopPbbActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/PopVlanActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/PushMplsActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/PushPbbActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/PushVlanActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/SetFieldActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/SetMplsTtlActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/SetNwTtlActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/action/SetQueueActionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/instruction/ApplyActionsInstructionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/instruction/ClearActionsInstructionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/instruction/GoToTableInstructionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/instruction/MeterInstructionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/instruction/WriteActionsInstructionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/instruction/WriteMetadataInstructionDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/ArpOpEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/ArpSourceHardwareAddressEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/ArpSourceTransportAddressEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/ArpTargetHardwareAddressEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/ArpTargetTransportAddressEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/EthernetDestinationEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/EthernetSourceEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/EthernetTypeEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Icmpv4CodeEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Icmpv4TypeEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Icmpv6CodeEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Icmpv6TypeEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/InPhyPortEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/InPortEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/IpDscpEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/IpEcnEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/IpProtoEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Ipv4DestinationEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Ipv4SourceEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Ipv6DestinationEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Ipv6ExtHeaderEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Ipv6FlabelEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Ipv6NdSllEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Ipv6NdTargetEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Ipv6NdTllEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/Ipv6SourceEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/MetadataEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/MplsBosEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/MplsLabelEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/MplsTcEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/PbbEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/SctpDestinationPortEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/SctpSourcePortEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/TcpDestinationPortEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/TcpFlagsEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/TcpSourcePortEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/TunnelIdEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/UdpDestinationPortEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/UdpSourcePortEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/VlanPcpEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/match/VlanVidEntryDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/messages/FlowMessageDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/messages/GroupMessageDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/messages/MeterMessageDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/messages/PacketInMessageDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/messages/PortMessageDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyDescDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyFlowAggregateStatsDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyFlowStatsDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyFlowTableStatsDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyGroupDescDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyGroupFeaturesDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyGroupStatsDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyMessageDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyMeterConfigDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyMeterFeaturesDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyMeterStatsDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyPortDescDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyPortStatsDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyQueueStatsDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/MultipartReplyTableFeaturesDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/deserialization/multipart/TableFeaturesMatchFieldDeserializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/AbstractSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/ActionSerializerInjectorTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/InstructionSerializerInjectorTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/MessageSerializerInjectorTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/CopyTtlInActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/CopyTtlOutActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/DecMplsTtlActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/DecNwTtlActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/GroupActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/OutputActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/PopMplsActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/PopPbbActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/PopVlanActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/PushMplsActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/PushPbbActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/PushVlanActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/SetDlDstActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/SetDlSrcActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/SetMplsTtlActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/SetNwDstActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/SetNwSrcActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/SetNwTosActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/SetNwTtlActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/SetQueueActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/SetTpDstActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/SetTpSrcActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/SetVlanIdActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/SetVlanPcpActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/actions/StripVlanActionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/instructions/ApplyActionsInstructionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/instructions/ClearActionsInstructionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/instructions/GoToTableInstructionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/instructions/MeterInstructionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/instructions/WriteActionsInstructionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/instructions/WriteMetadataInstructionSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/AbstractExperimenterMatchEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/AbstractMatchEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/ArpOpEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/ArpSourceHardwareAddressEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/ArpSourceTransportAddressEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/ArpTargetHardwareAddressEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/ArpTargetTransportAddressEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/EthernetDestinationEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/EthernetSourceEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/EthernetTypeEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Icmpv4CodeEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Icmpv4TypeEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Icmpv6CodeEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Icmpv6TypeEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/InPhyPortEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/InPortEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/IpDscpEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/IpEcnEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/IpProtoEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv4ArbitraryBitMaskDestinationEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv4ArbitraryBitMaskSourceEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv4DestinationEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv4SourceEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv6ArbitraryBitMaskDestinationEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv6ArbitraryBitMaskSourceEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv6DestinationEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv6ExtHeaderEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv6LabelEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv6NdSllEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv6NdTargetEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv6NdTllEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/Ipv6SourceEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/MetadataEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/MplsBosEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/MplsLabelEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/MplsTcEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/PacketTypeEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/PbbEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/SctpDestinationPortEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/SctpSourcePortEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/TcpDestinationPortEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/TcpFlagsEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/TcpSourcePortEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/TunnelIdEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/TunnelIpv4DestinationEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/TunnelIpv4SourceEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/UdpDestinationPortEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/UdpSourcePortEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/VlanPcpEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/match/VlanVidEntrySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/messages/AsyncConfigMessageSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/messages/FlowMessageSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/messages/GroupMessageSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/messages/MeterMessageSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/messages/PortMessageSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestDescSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestFlowAggregateStatsSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestFlowStatsSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestFlowTableStatsSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestGroupDescSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestGroupFeaturesSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestGroupStatsSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestMessageSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestMeterConfigSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestMeterFeaturesSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestMeterStatsSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestPortDescSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestPortStatsSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestQueueStatsSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/MultipartRequestTableFeaturesSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/ApplyActionsMissTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/ApplyActionsTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/ApplySetfieldMissTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/ApplySetfieldTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/InstructionsMissTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/InstructionsTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/MatchTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/NextTableMissTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/NextTableTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/WildcardsTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/WriteActionsMissTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/WriteActionsTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/WriteSetfieldMissTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/WriteSetfieldTablePropertySerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/protocol/serialization/multipart/tablefeatures/matchfield/MatchFieldSerializerTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/registry/flow/DeviceFlowRegistryImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/registry/flow/FlowDescriptorDtoTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/registry/flow/FlowRegistryKeyFactoryTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/registry/group/DeviceGroupRegistryImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/registry/meter/DeviceMeterRegistryImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/role/RoleContextImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/rpc/AbstractRequestContextTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/rpc/RpcContextImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/rpc/RpcManagerImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/EchoServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/MultipartRequestCallbackTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/MultipartRequestOnTheFlyCallbackTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/ServiceMocking.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/batch/FlatBatchFlowAdaptersTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/batch/FlatBatchGroupAdaptersTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/batch/FlatBatchMeterAdaptersTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/FlowCapableTransactionServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/NodeConfigServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/PacketProcessingServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/SalAsyncConfigServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/SalBundleServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/SalExperimenterMessageServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/SalExperimenterMpMessageServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/SalFlatBatchServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/SalFlowsBatchServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/SalGroupServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/SalGroupsBatchServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/SalMeterServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/SalMetersBatchServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/SalPortServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/SalTableServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerAggregateFlowMultipartServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerExperimenterMultipartServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerFlowServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerGroupServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerMeterServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerPortServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerTableMultipartServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/util/RequestContextUtilTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/util/RequestInputUtilsTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImplParamTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsGatheringUtilsTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsManagerImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsPollingServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/TimeCounterTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/OpendaylightFlowStatisticsServiceImpl1Test.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/OpendaylightFlowStatisticsServiceImpl3Test.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/OpendaylightFlowTableStatisticsServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/OpendaylightGroupStatisticsServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/OpendaylightMeterStatisticsServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/OpendaylightPortStatisticsServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/OpendaylightQueueStatisticsServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/PortStatsServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/compatibility/AbstractCompatibleStatServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/compatibility/OpendaylightFlowStatisticsServiceDelegateImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/dedicated/StatisticsGatheringOnTheFlyServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/dedicated/StatisticsGatheringServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/AbstractDirectStatisticsServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/OpendaylightDirectStatisticsServiceImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/multilayer/FlowDirectStatisticsServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/multilayer/GroupDirectStatisticsServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/multilayer/MeterDirectStatisticsServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/multilayer/NodeConnectorDirectStatisticsServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/multilayer/QueueDirectStatisticsServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/singlelayer/FlowDirectStatisticsServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/singlelayer/GroupDirectStatisticsServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/singlelayer/MeterDirectStatisticsServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/singlelayer/NodeConnectorDirectStatisticsServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/statistics/services/direct/singlelayer/QueueDirectStatisticsServiceTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/translator/AggregatedFlowStatisticsTranslatorTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/translator/FlowRemovedTranslatorTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/translator/PacketReceivedTranslatorTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/translator/PortUpdateTranslatorTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/util/AddressNormalizationUtilTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/util/BarrierUtilTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/util/DeviceInitializationUtilTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/util/FlatBatchUtilTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/util/FlowUtilTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/util/GroupUtilTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/util/MdSalRegistrationUtilsTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/util/MeterUtilTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/util/NodeConnectorRefToPortTranslatorTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/util/PathUtilTest.java
openflowplugin/src/test/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/ConvertorManagerTest.java
openflowplugin/src/test/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/TableFeaturesConvertorTest.java
openflowplugin/src/test/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/common/IpConversionUtilTest.java
samples/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/SimpleClientFramer.java
samples/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/SimpleClientHandler.java
samples/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/SimpleClientInitializer.java
samples/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/UdpSimpleClientFramer.java
samples/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/UdpSimpleClientInitializer.java
test-provider/src/main/java/org/opendaylight/openflowplugin/test/OpenflowpluginGroupTestServiceProvider.java
test-provider/src/main/java/org/opendaylight/openflowplugin/test/OpenflowpluginTableFeaturesTestServiceProvider.java
test-provider/src/main/java/org/opendaylight/openflowplugin/test/OpenflowpluginTestServiceProvider.java

index ae15cbab70439e1b9167a330c7a5a09eb5d0b565..f640af1dbdf292676784dd576d815b115cb37a5d 100644 (file)
@@ -24,7 +24,7 @@ public class BulkOMaticUtilsTest {
     private static final String FLOW_ID = "1";
 
     @Test
-    public void testIpIntToStr() throws Exception {
+    public void testIpIntToStr() {
         Assert.assertEquals("255.255.255.255/32", BulkOMaticUtils.ipIntToStr(0xffffffff));
         Assert.assertEquals("255.255.255.255/32", BulkOMaticUtils.ipIntToStr(-1));
         Assert.assertEquals("0.0.0.0/32", BulkOMaticUtils.ipIntToStr(0));
@@ -32,13 +32,13 @@ public class BulkOMaticUtilsTest {
     }
 
     @Test
-    public void testGetMatch() throws Exception {
+    public void testGetMatch() {
         final Match match = BulkOMaticUtils.getMatch(0xffffffff);
         Assert.assertNotNull(match);
     }
 
     @Test
-    public void testBuildFlow() throws Exception {
+    public void testBuildFlow() {
         final Match match = BulkOMaticUtils.getMatch(0xffffffff);
         final Flow flow = BulkOMaticUtils.buildFlow((short)1, FLOW_ID, match);
         Assert.assertEquals(FLOW_ID,flow.getId().getValue());
@@ -46,22 +46,22 @@ public class BulkOMaticUtilsTest {
     }
 
     @Test
-    public void testGetFlowInstanceIdentifier() throws Exception {
+    public void testGetFlowInstanceIdentifier() {
         Assert.assertNotNull(BulkOMaticUtils.getFlowInstanceIdentifier((short)1, "1", "1"));
     }
 
     @Test
-    public void testGetFlowCapableNodeId() throws Exception {
+    public void testGetFlowCapableNodeId() {
         Assert.assertNotNull(BulkOMaticUtils.getFlowCapableNodeId("1"));
     }
 
     @Test
-    public void testGetTableId() throws Exception {
+    public void testGetTableId() {
         Assert.assertNotNull(BulkOMaticUtils.getTableId((short)1, "1"));
     }
 
     @Test
-    public void testGetFlowId() throws Exception {
+    public void testGetFlowId() {
         Assert.assertNotNull(BulkOMaticUtils.getFlowId(BulkOMaticUtils.getTableId((short)1, "1"), "1"));
     }
 
index 5e074ea5c3242514385d880c1e1cb437b682a497..a6cb8847a995528fd1409e39d4253203c939fdbe 100644 (file)
@@ -40,7 +40,7 @@ public class FlowReaderTest {
     private FlowReader flowReader;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         doReturn(FluentFutures.immediateFluentFuture(Optional.of(node))).when(readOnlyTransaction)
             .read(any(LogicalDatastoreType.class), any());
         when(mockDataBroker.newReadOnlyTransaction()).thenReturn(readOnlyTransaction);
@@ -48,7 +48,7 @@ public class FlowReaderTest {
     }
 
     @Test
-    public void testRun() throws Exception {
+    public void testRun() {
         flowReader.run();
         Assert.assertEquals(10, flowReader.getFlowCount());
         Assert.assertEquals(FlowCounter.OperationStatus.SUCCESS.status(), flowReader.getReadOpStatus());
index e4622691afba2ecb4739c5c705fc9cf91c4570c8..7b41b34f25c336b105e42a9c5de34985f3a538a8 100644 (file)
@@ -43,7 +43,7 @@ public class FlowWriterConcurrentTest {
     private FlowWriterConcurrent flowWriterConcurrent;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
 
         doReturn(writeTransaction).when(mockDataBroker).newWriteOnlyTransaction();
         doReturn(CommitInfo.emptyFluentFuture()).when(writeTransaction).commit();
@@ -57,7 +57,7 @@ public class FlowWriterConcurrentTest {
     }
 
     @Test
-    public void testAddFlows() throws Exception {
+    public void testAddFlows() {
         flowWriterConcurrent.addFlows(1, FLOWS_PER_DPN, 10, 10, 10, (short) 0, (short) 1, true);
         Mockito.verify(writeTransaction, Mockito.times(FLOWS_PER_DPN)).put(ArgumentMatchers.any(),
                 ArgumentMatchers.any(), ArgumentMatchers.any(),
@@ -65,7 +65,7 @@ public class FlowWriterConcurrentTest {
     }
 
     @Test
-    public void testDeleteFlows() throws Exception {
+    public void testDeleteFlows() {
         flowWriterConcurrent.deleteFlows(1, FLOWS_PER_DPN, 10, (short) 0, (short) 1);
         Mockito.verify(writeTransaction, Mockito.times(FLOWS_PER_DPN))
                 .delete(ArgumentMatchers.any(),
index 9680c88b9c3d05a4c6df321ad4a5767a5b3441db..53d007f75f9de5e2a8a8219c73d618eea1efeb64 100644 (file)
@@ -58,7 +58,7 @@ public class FlowWriterDirectOFRpcTest {
     private FlowWriterDirectOFRpc flowWriterDirectOFRpc;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         doReturn(RpcResultBuilder.success().buildFuture()).when(mockSalFlowService).addFlow(any());
 
         when(mockDataBroker.newReadOnlyTransaction()).thenReturn(readOnlyTransaction);
@@ -83,13 +83,13 @@ public class FlowWriterDirectOFRpcTest {
     }
 
     @Test
-    public void testRpcFlowAdd() throws Exception {
+    public void testRpcFlowAdd() {
         flowWriterDirectOFRpc.rpcFlowAdd("1", FLOWS_PER_DPN, 10);
         Mockito.verify(mockSalFlowService, Mockito.times(FLOWS_PER_DPN)).addFlow(Mockito.any());
     }
 
     @Test
-    public void testRpcFlowAddAll() throws Exception {
+    public void testRpcFlowAddAll() {
         flowWriterDirectOFRpc.rpcFlowAddAll(FLOWS_PER_DPN, 10);
         Mockito.verify(mockSalFlowService, Mockito.times(FLOWS_PER_DPN)).addFlow(Mockito.any());
     }
index b9298d31c11b3e097717c87ffd88bd63ef6efd9f..d6fcf0fe76c9009bfec7e6b462a3c9bfb43f7381 100644 (file)
@@ -41,7 +41,7 @@ public class FlowWriterSequentialTest {
     private FlowWriterSequential flowWriterSequential;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
 
         doReturn(writeTransaction).when(mockDataBroker).newWriteOnlyTransaction();
         doReturn(CommitInfo.emptyFluentFuture()).when(writeTransaction).commit();
@@ -55,7 +55,7 @@ public class FlowWriterSequentialTest {
     }
 
     @Test
-    public void testAddFlows() throws Exception {
+    public void testAddFlows() {
         flowWriterSequential.addFlows(1, FLOWS_PER_DPN, 10, 10, (short) 0, (short) 1, true);
         Mockito.verify(writeTransaction, Mockito.times(FLOWS_PER_DPN)).put(ArgumentMatchers.any(),
                 ArgumentMatchers.any(), ArgumentMatchers.any(),
@@ -63,7 +63,7 @@ public class FlowWriterSequentialTest {
     }
 
     @Test
-    public void testDeleteFlows() throws Exception {
+    public void testDeleteFlows() {
         flowWriterSequential.deleteFlows(1, FLOWS_PER_DPN, 10, (short) 0, (short) 1);
         Mockito.verify(writeTransaction, Mockito.times(FLOWS_PER_DPN))
                 .delete(ArgumentMatchers.any(),
index ba2b30d88388772db639f5308d093353b68a13ea..72e8576db3e40bec19a03e369cf49d186afa1b29 100644 (file)
@@ -47,7 +47,7 @@ public class FlowWriterTxChainTest {
     private FlowWriterTxChain flowWriterTxChain;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
 
         Mockito.doAnswer(invocation -> {
             ((Runnable) invocation.getArguments()[0]).run();
@@ -65,7 +65,7 @@ public class FlowWriterTxChainTest {
     }
 
     @Test
-    public void testAddFlows() throws Exception {
+    public void testAddFlows() {
         flowWriterTxChain.addFlows(1, FLOWS_PER_DPN, 10, 10, 10, (short) 0, (short) 1, true);
         Mockito.verify(writeTransaction, Mockito.times(FLOWS_PER_DPN)).put(ArgumentMatchers.any(),
                 ArgumentMatchers.any(), ArgumentMatchers.any(),
@@ -73,7 +73,7 @@ public class FlowWriterTxChainTest {
     }
 
     @Test
-    public void testDeleteFlows() throws Exception {
+    public void testDeleteFlows() {
         flowWriterTxChain.deleteFlows(1, FLOWS_PER_DPN, 10, (short) 0, (short) 1);
         Mockito.verify(writeTransaction, Mockito.times(FLOWS_PER_DPN))
                 .delete(ArgumentMatchers.any(),
index 6d1a4cd344979f411ed485e53e4a52f9325d7f12..254515d5de63eb36c5ce3c1726b9e7d484014947 100644 (file)
@@ -95,7 +95,7 @@ public class SalBulkFlowServiceImplTest {
     private SalBulkFlowServiceImpl salBulkFlowService;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         when(mockDataBroker.newWriteOnlyTransaction()).thenReturn(writeTransaction);
         when(mockDataBroker.newReadOnlyTransaction()).thenReturn(readOnlyTransaction);
 
@@ -105,7 +105,7 @@ public class SalBulkFlowServiceImplTest {
     }
 
     @Test
-    public void testAddRemoveFlowsDs() throws Exception {
+    public void testAddRemoveFlowsDs() {
         doReturn(CommitInfo.emptyFluentFuture()).when(writeTransaction).commit();
 
         final BulkFlowDsItemBuilder bulkFlowDsItemBuilder = new BulkFlowDsItemBuilder().setFlowId(new FlowId("1"))
@@ -144,7 +144,7 @@ public class SalBulkFlowServiceImplTest {
     }
 
     @Test
-    public void testAddRemoveFlowsRpc() throws Exception {
+    public void testAddRemoveFlowsRpc() {
         Mockito.when(mockSalFlowService.addFlow(ArgumentMatchers.any()))
                 .thenReturn(RpcResultBuilder.success(new AddFlowOutputBuilder().build()).buildFuture());
 
index 1653cf0d49309a8e808f032773fac92852804b65..9294e6076985cdf9f88d1655f3f12614d002168c 100644 (file)
@@ -43,7 +43,7 @@ public class TableWriterTest {
     private TableWriter tableWriter;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
 
         doReturn(writeTransaction).when(mockDataBroker).newWriteOnlyTransaction();
         doReturn(CommitInfo.emptyFluentFuture()).when(writeTransaction).commit();
@@ -57,7 +57,7 @@ public class TableWriterTest {
     }
 
     @Test
-    public void testAddTables() throws Exception {
+    public void testAddTables() {
         tableWriter.addTables(DPN_COUNT, START_TABLE_ID, END_TABLE_ID);
         Mockito.verify(writeTransaction, Mockito.times(TABLES_PER_DPN))
                 .put(ArgumentMatchers.any(),
@@ -66,7 +66,7 @@ public class TableWriterTest {
     }
 
     @Test
-    public void testDeleteTables() throws Exception {
+    public void testDeleteTables() {
         tableWriter.deleteTables(DPN_COUNT, START_TABLE_ID, END_TABLE_ID);
         Mockito.verify(writeTransaction, Mockito.times(TABLES_PER_DPN))
                 .delete(ArgumentMatchers.any(),
index 1d31b9ca2f7908f5ee831ad2df945fe1bf937f9c..92a0d65c15f43170014f03d32a9f8a28334daaf5 100644 (file)
@@ -51,7 +51,7 @@ public class DeviceMastershipManagerTest {
     private FrmReconciliationService reconciliationService;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         deviceMastershipManager = new DeviceMastershipManager(clusterSingletonService, reconciliationAgent, dataBroker,
                 mastershipChangeServiceManager, rpcProviderService, reconciliationService);
         Mockito.lenient().when(clusterSingletonService
@@ -62,7 +62,7 @@ public class DeviceMastershipManagerTest {
     }
 
     @Test
-    public void testOnDeviceConnectedAndDisconnected() throws Exception {
+    public void testOnDeviceConnectedAndDisconnected() {
         // no context
         Assert.assertNull(deviceMastershipManager.getDeviceMasterships().get(deviceInfo.getNodeId()));
         deviceMastershipManager.onBecomeOwner(deviceInfo);
index b92fa18bcba2d06a951ab97a3eb3e4996c5104de..a4c20e8eeb13bdd82f716afb1b5c691198d77506 100644 (file)
@@ -23,7 +23,7 @@ public class DeviceMastershipTest {
     private DeviceMastership deviceMastership;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         deviceMastership = new DeviceMastership(NODE_ID);
     }
 
index 7d9edb8c1623f40507fe6e06e7277717984ff44d..ff49d05e964e17cfb77007563d03d1f26f892dbd 100644 (file)
@@ -91,7 +91,7 @@ public class FlowListenerTest extends FRMTest {
     }
 
     @Test
-    public void addTwoFlowsTest() throws Exception {
+    public void addTwoFlowsTest() {
         addFlowCapableNode(NODE_KEY);
 
         FlowKey flowKey = new FlowKey(new FlowId("test_Flow"));
@@ -129,7 +129,7 @@ public class FlowListenerTest extends FRMTest {
     }
 
     @Test
-    public void updateFlowTest() throws Exception {
+    public void updateFlowTest() {
         addFlowCapableNode(NODE_KEY);
 
         FlowKey flowKey = new FlowKey(new FlowId("test_Flow"));
@@ -169,7 +169,7 @@ public class FlowListenerTest extends FRMTest {
     }
 
     @Test
-    public void updateFlowScopeTest() throws Exception {
+    public void updateFlowScopeTest() {
         addFlowCapableNode(NODE_KEY);
 
         FlowKey flowKey = new FlowKey(new FlowId("test_Flow"));
@@ -211,7 +211,7 @@ public class FlowListenerTest extends FRMTest {
     }
 
     @Test
-    public void deleteFlowTest() throws Exception {
+    public void deleteFlowTest() {
         addFlowCapableNode(NODE_KEY);
 
         FlowKey flowKey = new FlowKey(new FlowId("test_Flow"));
@@ -245,7 +245,7 @@ public class FlowListenerTest extends FRMTest {
     }
 
     @Test
-    public void staleMarkedFlowCreationTest() throws Exception {
+    public void staleMarkedFlowCreationTest() {
 
         addFlowCapableNode(NODE_KEY);
 
index de3076fd4263c9084b8b7498f4ebe5f17fd0398d..bc892432f558d7cddf8227e9bb317194a50d5e2f 100644 (file)
@@ -88,7 +88,7 @@ public class GroupListenerTest extends FRMTest {
     }
 
     @Test
-    public void addTwoGroupsTest() throws Exception {
+    public void addTwoGroupsTest() {
         addFlowCapableNode(NODE_KEY);
 
         GroupKey groupKey = new GroupKey(new GroupId((long) 255));
@@ -120,7 +120,7 @@ public class GroupListenerTest extends FRMTest {
     }
 
     @Test
-    public void updateGroupTest() throws Exception {
+    public void updateGroupTest() {
         addFlowCapableNode(NODE_KEY);
 
         GroupKey groupKey = new GroupKey(new GroupId((long) 255));
@@ -149,7 +149,7 @@ public class GroupListenerTest extends FRMTest {
     }
 
     @Test
-    public void removeGroupTest() throws Exception {
+    public void removeGroupTest() {
         addFlowCapableNode(NODE_KEY);
 
         GroupKey groupKey = new GroupKey(new GroupId((long) 255));
@@ -177,7 +177,7 @@ public class GroupListenerTest extends FRMTest {
     }
 
     @Test
-    public void staleGroupCreationTest() throws Exception {
+    public void staleGroupCreationTest() {
         addFlowCapableNode(NODE_KEY);
 
         StaleGroupKey groupKey = new StaleGroupKey(new GroupId((long) 255));
index acb4612760975e63eb2ab50f1195e2d13057d332..6ecd880336610131735c887fc81679eab4c23129 100644 (file)
@@ -86,7 +86,7 @@ public class MeterListenerTest extends FRMTest {
     }
 
     @Test
-    public void addTwoMetersTest() throws Exception {
+    public void addTwoMetersTest() {
         addFlowCapableNode(NODE_KEY);
 
         MeterKey meterKey = new MeterKey(new MeterId((long) 2000));
@@ -117,7 +117,7 @@ public class MeterListenerTest extends FRMTest {
     }
 
     @Test
-    public void updateMeterTest() throws Exception {
+    public void updateMeterTest() {
         addFlowCapableNode(NODE_KEY);
 
         MeterKey meterKey = new MeterKey(new MeterId((long) 2000));
@@ -145,7 +145,7 @@ public class MeterListenerTest extends FRMTest {
     }
 
     @Test
-    public void removeMeterTest() throws Exception {
+    public void removeMeterTest() {
         addFlowCapableNode(NODE_KEY);
 
         MeterKey meterKey = new MeterKey(new MeterId((long) 2000));
@@ -172,7 +172,7 @@ public class MeterListenerTest extends FRMTest {
     }
 
     @Test
-    public void staleMeterCreationTest() throws Exception {
+    public void staleMeterCreationTest() {
         addFlowCapableNode(NODE_KEY);
 
         StaleMeterKey meterKey = new StaleMeterKey(new MeterId((long) 2000));
index d652aac3e6cbd1005c5e3e03f5839a7158ba4b1f..7f7e979330021ab93e32dea3eb7157f908df7330 100644 (file)
@@ -31,7 +31,7 @@ public class SemaphoreKeeperGuavaImpl<K> implements SemaphoreKeeper<K> {
                 .weakValues()
                 .build(new CacheLoader<K, Semaphore>() {
                     @Override
-                    public Semaphore load(final K key) throws Exception {
+                    public Semaphore load(final K key) {
                         return new Semaphore(permits, fair);
                     }
                 });
index 362997c9af43c81fe0e8c6cabe3f64e7095a03b1..ab1b9eaf1326083e9b54c8b72350d353fa076293 100644 (file)
@@ -37,7 +37,7 @@ public class ForwardingRulesSyncProviderTest {
     private ClusterSingletonServiceProvider clusterSingletonService;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         Mockito.when(rpcRegistry.getRpcService(ArgumentMatchers.<Class<? extends RpcService>>any()))
                 .thenAnswer(invocation -> {
                     Class<? extends RpcService> serviceType =
@@ -51,7 +51,7 @@ public class ForwardingRulesSyncProviderTest {
     }
 
     @Test
-    public void testInit() throws Exception {
+    public void testInit() {
         provider.init();
 
         Mockito.verify(dataBroker, Mockito.times(2)).registerDataTreeChangeListener(
index 133369cc74778e9d8aa78727dc44991afe24f4a5..41b1d08f707d6d38b046cc7dba6f61efae2c2d9c 100644 (file)
@@ -64,7 +64,7 @@ public class SimplifiedConfigListenerTest {
     private FlowCapableNode dataAfter;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final DataBroker db = Mockito.mock(DataBroker.class);
         final FlowCapableNodeSnapshotDao configSnapshot = new FlowCapableNodeSnapshotDao();
         final FlowCapableNodeSnapshotDao operationalSnapshot = new FlowCapableNodeSnapshotDao();
@@ -84,7 +84,7 @@ public class SimplifiedConfigListenerTest {
     }
 
     @Test
-    public void testDSLogicalType() throws Exception {
+    public void testDSLogicalType() {
         Assert.assertEquals(LogicalDatastoreType.CONFIGURATION, nodeListenerConfig.dsType());
     }
 
index 9ae8370b4d7dc0b42a650901d070ba6b67979b17..dab4687d7ae506f0b8ad6ca1f9e00cefaefdde2c 100644 (file)
@@ -88,7 +88,7 @@ public class SimplifiedOperationalListenerTest {
     private Node operationalNodeEmpty;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final DataBroker db = Mockito.mock(DataBroker.class);
         final FlowCapableNodeSnapshotDao configSnapshot = new FlowCapableNodeSnapshotDao();
         final FlowCapableNodeSnapshotDao operationalSnapshot = new FlowCapableNodeSnapshotDao();
@@ -112,7 +112,7 @@ public class SimplifiedOperationalListenerTest {
     }
 
     @Test
-    public void testDSLogicalType() throws Exception {
+    public void testDSLogicalType() {
         Assert.assertEquals(LogicalDatastoreType.OPERATIONAL, nodeListenerOperational.dsType());
     }
 
@@ -125,7 +125,7 @@ public class SimplifiedOperationalListenerTest {
     }
 
     @Test
-    public void testOnDataTreeChangedDeletePhysical() throws Exception {
+    public void testOnDataTreeChangedDeletePhysical() {
         Mockito.when(operationalModification.getDataBefore()).thenReturn(operationalNode);
         Mockito.when(operationalModification.getDataAfter()).thenReturn(null);
 
index 8724c531747e97796864554b493a7b4ad36c6078..52fe9f76cc7db44c41eafaad20d4e7ac7df2480c 100644 (file)
@@ -45,7 +45,7 @@ public class SyncReactorGuardDecoratorTest {
     private SyncupEntry syncupEntry;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         reactor = new SyncReactorGuardDecorator(delegate);
         InstanceIdentifier<Node> nodePath = InstanceIdentifier.create(Nodes.class)
                 .child(Node.class, new NodeKey(NODE_ID));
index 301135edb9cad075dedfacd30ecc1ec366a815bb..92adf017c494f750452e5bec99aee94c2f8088cb 100644 (file)
@@ -77,7 +77,7 @@ public class SyncReactorImplTest {
     private ArgumentCaptor<SynchronizationDiffInput> syncDiffInputCaptor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         reactor = new SyncReactorImpl(syncPlanPushStrategy);
     }
 
index ec22ddcce9b8732683e7fd7289c927416fc80213..619ea9ddeb6eb7c497548bda267884cc14ef0a4a 100644 (file)
@@ -34,7 +34,7 @@ public class DeviceMastershipManagerTest {
     private ClusterSingletonServiceProvider clusterSingletonService;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         deviceMastershipManager = new DeviceMastershipManager(clusterSingletonService, new ReconciliationRegistry());
         Mockito.when(clusterSingletonService
                 .registerClusterSingletonService(ArgumentMatchers.any()))
@@ -42,7 +42,7 @@ public class DeviceMastershipManagerTest {
     }
 
     @Test
-    public void testOnDeviceConnectedAndDisconnected() throws Exception {
+    public void testOnDeviceConnectedAndDisconnected() {
         // no context
         Assert.assertNull(deviceMastershipManager.getDeviceMasterships().get(NODE_ID));
         // create context - register
index 04d2c807d9a8f141f121bfb4e1569b9be9a424cb..a59e1d118eb14a1f76ba93fdc1dcdfea5d8260e9 100644 (file)
@@ -33,7 +33,7 @@ public class DeviceMastershipTest {
     private ReconciliationRegistry reconciliationRegistry;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         deviceMastership = new DeviceMastership(NODE_ID, reconciliationRegistry,
                 Mockito.mock(ClusterSingletonServiceProvider.class));
     }
index f50b50e8b587df28be212d8cee480e69a7fad08f..41ef706339622b4aa89badc7e1f0997922a82b06 100644 (file)
@@ -96,7 +96,7 @@ public class FlowForwarderTest {
 
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         flowForwarder = new FlowForwarder(salFlowService);
     }
 
index 95917a31539bf615324adefc226b69eb665c1423..e3a8475844fae696c879f35f52224be34f1f178c 100644 (file)
@@ -82,7 +82,7 @@ public class GroupForwarderTest {
     private GroupForwarder groupForwarder;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         groupForwarder = new GroupForwarder(salGroupService);
         txId = new TransactionId(BigInteger.ONE);
     }
index 4127497bff6b64da5abb5f348d75e4621c1793c4..74c2ecd029a6e2763bf544640308ca8a616fe34d 100644 (file)
@@ -80,7 +80,7 @@ public class MeterForwarderTest {
     private MeterForwarder meterForwarder;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         meterForwarder = new MeterForwarder(salMeterService);
         txId = new TransactionId(BigInteger.ONE);
     }
index 1b88389267d06668bfa62e058d1ebc60df52be7b..74aa5b653e3ead0f3bb76c3d3a65d6b181f33975 100644 (file)
@@ -109,7 +109,7 @@ public class SyncPlanPushStrategyFlatBatchImplTest {
 
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         syncPlanPushStrategy = new SyncPlanPushStrategyFlatBatchImpl();
         syncPlanPushStrategy.setFlatBatchService(flatBatchService);
         syncPlanPushStrategy.setTableForwarder(tableForwarder);
@@ -153,7 +153,7 @@ public class SyncPlanPushStrategyFlatBatchImplTest {
     }
 
     @Test
-    public void testAssembleRemoveFlows() throws Exception {
+    public void testAssembleRemoveFlows() {
         final int lastOrder = SyncPlanPushStrategyFlatBatchImpl.assembleRemoveFlows(batchBag, 0, flowsToRemove);
 
         Assert.assertEquals(6, lastOrder);
@@ -167,7 +167,7 @@ public class SyncPlanPushStrategyFlatBatchImplTest {
     }
 
     @Test
-    public void testAssembleAddOrUpdateGroups() throws Exception {
+    public void testAssembleAddOrUpdateGroups() {
         final int lastOrder = SyncPlanPushStrategyFlatBatchImpl.assembleAddOrUpdateGroups(
                 batchBag, 0, groupsToAddOrUpdate);
 
@@ -185,7 +185,7 @@ public class SyncPlanPushStrategyFlatBatchImplTest {
     }
 
     @Test
-    public void testAssembleRemoveGroups() throws Exception {
+    public void testAssembleRemoveGroups() {
         final int lastOrder = SyncPlanPushStrategyFlatBatchImpl.assembleRemoveGroups(batchBag, 0, groupsToRemove);
 
         Assert.assertEquals(6, lastOrder);
@@ -199,7 +199,7 @@ public class SyncPlanPushStrategyFlatBatchImplTest {
     }
 
     @Test
-    public void testAssembleAddOrUpdateMeters() throws Exception {
+    public void testAssembleAddOrUpdateMeters() {
         final int lastOrder = SyncPlanPushStrategyFlatBatchImpl.assembleAddOrUpdateMeters(
                 batchBag, 0, metersToAddOrUpdate);
 
@@ -214,7 +214,7 @@ public class SyncPlanPushStrategyFlatBatchImplTest {
     }
 
     @Test
-    public void testAssembleRemoveMeters() throws Exception {
+    public void testAssembleRemoveMeters() {
         final int lastOrder = SyncPlanPushStrategyFlatBatchImpl.assembleRemoveMeters(batchBag, 0, metersToRemove);
 
         Assert.assertEquals(3, lastOrder);
@@ -225,7 +225,7 @@ public class SyncPlanPushStrategyFlatBatchImplTest {
     }
 
     @Test
-    public void testAssembleAddOrUpdateFlows() throws Exception {
+    public void testAssembleAddOrUpdateFlows() {
         final int lastOrder = SyncPlanPushStrategyFlatBatchImpl.assembleAddOrUpdateFlows(
                 batchBag, 0, flowsToAddOrUpdate);
 
@@ -243,7 +243,7 @@ public class SyncPlanPushStrategyFlatBatchImplTest {
     }
 
     @Test
-    public void testDecrementCounters() throws Exception {
+    public void testDecrementCounters() {
         final SyncCrudCounters counters = new SyncCrudCounters();
         counters.getFlowCrudCounts().setAdded(100);
         counters.getFlowCrudCounts().setUpdated(100);
@@ -283,7 +283,7 @@ public class SyncPlanPushStrategyFlatBatchImplTest {
     }
 
     @Test
-    public void testMapBatchesToRanges() throws Exception {
+    public void testMapBatchesToRanges() {
         final List<Batch> inputBatchBag = Lists.newArrayList(
                 new BatchBuilder().setBatchOrder(0).build(),
                 new BatchBuilder().setBatchOrder(5).build(),
index 824142b1ae53d27ea2347ec7240b4777d99e6c04..6f7c2b955621b00de847bb883427456c36c6fcec 100644 (file)
@@ -175,7 +175,7 @@ public class SyncPlanPushStrategyIncrementalImplTest {
     }
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         Mockito.when(flowCapableTxService.sendBarrier(ArgumentMatchers.any()))
                 .thenReturn(RpcResultBuilder.success((SendBarrierOutput) null).buildFuture());
 
index 9f6a292bb157ae603d6d7d1b36dc28b354c60f18..7c6e6f3693a949898793ea82f5b317cee32355e9 100644 (file)
@@ -76,7 +76,7 @@ public class TableForwarderTest {
 
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         tableForwarder = new TableForwarder(salTableService);
         txId = new TransactionId(BigInteger.ONE);
     }
index 07d5124bb1615ca5eb1ced528ab59cc68b2138d5..ca9c73d68abafe7678f65bcfb33aaa482fd3632a 100644 (file)
@@ -96,7 +96,7 @@ public class ReconcileUtilTest {
      * add one missing group.
      */
     @Test
-    public void testResolveAndDivideGroupDiffs1() throws Exception {
+    public void testResolveAndDivideGroupDiffs1() {
         final Map<Long, Group> installedGroups = new HashMap<>();
         installedGroups.put(1L, createGroup(1L));
         installedGroups.put(2L, createGroup(2L));
@@ -122,7 +122,7 @@ public class ReconcileUtilTest {
      * add 3 groups with dependencies - 3 steps involved.
      */
     @Test
-    public void testResolveAndDivideGroupDiffs2() throws Exception {
+    public void testResolveAndDivideGroupDiffs2() {
         final Map<Long, Group> installedGroups = new HashMap<>();
         installedGroups.put(1L, createGroup(1L));
 
@@ -156,7 +156,7 @@ public class ReconcileUtilTest {
      * no actions taken - installed and pending groups are the same.
      */
     @Test
-    public void testResolveAndDivideGroupDiffs3() throws Exception {
+    public void testResolveAndDivideGroupDiffs3() {
         final Map<Long, Group> installedGroups = new HashMap<>();
         installedGroups.put(1L, createGroup(1L));
         installedGroups.put(2L, createGroupWithPreconditions(2L, 1L));
@@ -175,7 +175,7 @@ public class ReconcileUtilTest {
      * update 1 group.
      */
     @Test
-    public void testResolveAndDivideGroupDiffs4() throws Exception {
+    public void testResolveAndDivideGroupDiffs4() {
         final Map<Long, Group> installedGroups = new HashMap<>();
         installedGroups.put(1L, createGroup(1L));
         installedGroups.put(2L, createGroup(2L));
@@ -200,7 +200,7 @@ public class ReconcileUtilTest {
      * no action taken - update 1 group will be ignored.
      */
     @Test
-    public void testResolveAndDivideGroupDiffs5() throws Exception {
+    public void testResolveAndDivideGroupDiffs5() {
         final Map<Long, Group> installedGroups = new HashMap<>();
         installedGroups.put(1L, createGroup(1L));
         installedGroups.put(2L, createGroup(2L));
@@ -219,7 +219,7 @@ public class ReconcileUtilTest {
      * should add 1 group but preconditions are not met.
      */
     @Test
-    public void testResolveAndDivideGroupDiffs_negative1() throws Exception {
+    public void testResolveAndDivideGroupDiffs_negative1() {
         final Map<Long, Group> installedGroups = new HashMap<>();
         installedGroups.put(1L, createGroup(1L));
         installedGroups.put(2L, createGroup(2L));
@@ -236,7 +236,7 @@ public class ReconcileUtilTest {
      * should update 1 group but preconditions are not met.
      */
     @Test
-    public void testResolveAndDivideGroupDiffs_negative2() throws Exception {
+    public void testResolveAndDivideGroupDiffs_negative2() {
         final Map<Long, Group> installedGroups = new HashMap<>();
         installedGroups.put(1L, createGroup(1L));
         installedGroups.put(2L, createGroup(2L));
@@ -250,7 +250,7 @@ public class ReconcileUtilTest {
     }
 
     @Test
-    public void testCheckGroupPrecondition() throws Exception {
+    public void testCheckGroupPrecondition() {
         final Set<Long> installedGroups = new HashSet<>(Arrays.asList(new Long[]{1L, 2L}));
 
         final Group pendingGroup1 = createGroupWithPreconditions(3L, 2L, 4L);
@@ -305,7 +305,7 @@ public class ReconcileUtilTest {
      * covers {@link ReconcileUtil#countTotalUpdated(Iterable)} too.
      */
     @Test
-    public void testCountTotalAdds() throws Exception {
+    public void testCountTotalAdds() {
         List<ItemSyncBox<String>> syncPlan = new ArrayList<>();
         ItemSyncBox<String> syncBox1 = createSyncBox("a,b", "x,y,z");
         syncPlan.add(syncBox1);
index c7d492fb2e087865a63a0d49bd8fd1dfb69291b4..c7eee02733ffd42bbe8098323ed4855f0ec961a4 100644 (file)
@@ -26,7 +26,7 @@ public class ReconciliationRegistryTest {
     private ReconciliationRegistry reconciliationRegistry;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         reconciliationRegistry = new ReconciliationRegistry();
     }
 
index c900344b72178baba08f870a127a2dc05464e92f..3d1ba573130d01ce7f470cd609ce1276ad241ac1 100644 (file)
@@ -31,7 +31,7 @@ public class SemaphoreKeeperGuavaImplTest {
     private final String key = "11";
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         semaphoreKeeper = new SemaphoreKeeperGuavaImpl<>(1, true);
     }
 
index 84358e0bb049df9ecac197684706f7be44e04f6b..575da858e7d6bd98149fc219a8f0d20ad87284e9 100644 (file)
@@ -12,7 +12,6 @@ import static org.opendaylight.infrautils.utils.concurrent.LoggingFutures.addErr
 
 import com.google.common.base.Preconditions;
 import com.google.common.util.concurrent.ThreadFactoryBuilder;
-import java.security.NoSuchAlgorithmException;
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.Executors;
@@ -182,7 +181,7 @@ public class LLDPSpeaker implements NodeConnectorEventsObserver, Runnable, AutoC
                     .setEgress(new NodeConnectorRef(nodeConnectorInstanceId))
                     .setNode(new NodeRef(nodeInstanceId)).setPayload(LLDPUtil.buildLldpFrame(nodeId,
                             nodeConnectorId, srcMacAddress, outputPortNo, addressDestination)).build();
-        } catch (NoSuchAlgorithmException | PacketException e) {
+        } catch (PacketException e) {
             LOG.error("Error building LLDP frame", e);
             return;
         }
index 28b4268c1e16e5f087eb813c4bfe447a048c2777..6ca6b55fe6c6c0a4753eb3b24b6190e48239161f 100644 (file)
@@ -11,7 +11,6 @@ import static org.opendaylight.openflowplugin.applications.topology.lldp.utils.L
 
 import com.google.common.base.Strings;
 import java.math.BigInteger;
-import java.security.NoSuchAlgorithmException;
 import javax.annotation.Nonnull;
 import org.opendaylight.openflowplugin.libraries.liblldp.EtherTypes;
 import org.opendaylight.openflowplugin.libraries.liblldp.Ethernet;
@@ -39,7 +38,7 @@ public final class LLDPUtil {
     @Nonnull
     static byte[] buildLldpFrame(final NodeId nodeId, final NodeConnectorId nodeConnectorId, final MacAddress src,
             final Long outPortNo, final MacAddress destinationAddress)
-                    throws NoSuchAlgorithmException, PacketException {
+                    throws PacketException {
         // Create discovery pkt
         LLDP discoveryPkt = new LLDP();
 
@@ -104,7 +103,7 @@ public final class LLDPUtil {
 
     @Nonnull
     static byte[] buildLldpFrame(final NodeId nodeId, final NodeConnectorId nodeConnectorId,
-            final MacAddress srcMacAddress, final Long outputPortNo) throws NoSuchAlgorithmException, PacketException {
+            final MacAddress srcMacAddress, final Long outputPortNo) throws PacketException {
         return buildLldpFrame(nodeId, nodeConnectorId, srcMacAddress, outputPortNo, null);
     }
 
index e2f0ea061499afa36a28f0b40234a375909e1e66..cdd2ed622cae9c798eb7d36d0394affbb35cf486 100644 (file)
@@ -157,7 +157,7 @@ public class NodeConnectorInventoryEventTranslatorTest {
      * observers are registered for notifications.
      */
     @Test
-    public void testMultipleObserversNotified() throws Exception {
+    public void testMultipleObserversNotified() {
         // Create prerequisites
         InstanceIdentifier<NodeConnector> id2 = TestUtils.createNodeConnectorId("openflow:1", "openflow:1:2");
         InstanceIdentifier<FlowCapableNodeConnector> iiToConnector2 = id2.augmentation(FlowCapableNodeConnector.class);
@@ -173,7 +173,7 @@ public class NodeConnectorInventoryEventTranslatorTest {
     }
 
     @Test
-    public void tearDown() throws Exception {
+    public void tearDown() {
         translator.close();
     }
 
index fc9a227a6bc5fd6d3bf893267a0a1068ea36c63f..2c2f4cc4dad5daaa7ce2b21cbe831ca7dc991ff9 100644 (file)
@@ -70,7 +70,7 @@ public abstract class AbstractNotificationSupplierBase<O extends DataObject> imp
     }
 
     @Override
-    public void close() throws Exception {
+    public void close() {
         if (listenerRegistration != null) {
             listenerRegistration.close();
             listenerRegistration = null;
index 6066452bab69405ca6e2fff256203ab2aa26ec96..f7c8e31a12a2e37fd1421853a2deaec266da75cf 100644 (file)
@@ -60,7 +60,7 @@ public class DefaultConfigPusherTest {
     private ArgumentCaptor<SetConfigInput> setConfigInputCaptor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         doReturn(RpcResultBuilder.success().buildFuture()).when(nodeConfigService).setConfig(any());
         defaultConfigPusher = new DefaultConfigPusher(nodeConfigService, Mockito.mock(DataBroker.class),
                 deviceOwnershipService);
index e0fdc2afa61e0b47add1e688747a6271d01fa2be..1b7c67cfcffd515506acc81c0258e70e5df699aa 100644 (file)
@@ -35,7 +35,7 @@ public class GetRegisteredServices extends OsgiCommandSupport {
     }
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         LOG.debug("Executing getRegisteredServices to Reconciliation Framework command");
         if (reconciliationManager.getRegisteredServices().isEmpty()) {
             session.getConsole().println("No Services have registered to Reconciliation Framework");
index 5517d9ffbc62b887638e5a73308876afaacbda1f..da25c25535bd4df686a33496f775ec7529cbf335 100644 (file)
@@ -28,7 +28,7 @@ public class GetAllNodesCommandProvider extends OsgiCommandSupport {
     }
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         List<OFNode> ofNodeList = ShellUtil.getAllNodes(dataBroker);
         if (ofNodeList.isEmpty()) {
             session.getConsole().println("No node is connected yet");
index ae322c3d4b7c9a8aa977fbe7ba4fa358bdea6531..7d2f254788e03d186bee43cd8c2b16867b8026ef 100644 (file)
@@ -27,7 +27,7 @@ public class ReconciliationCount extends OsgiCommandSupport {
     }
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         List<ReconcileCounter> result = ShellUtil.getReconcileCount(dataBroker);
         if (result.isEmpty()) {
             session.getConsole().println("Reconciliation count not yet available for openflow nodes.");
index b0bd7f4716d895c9c59222b315dc64be9d408816..fed144275a166662dbd325d47d5c085473237861 100644 (file)
@@ -32,7 +32,7 @@ public class ShowNodeCommandProvider extends OsgiCommandSupport {
     }
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         if (nodeId == null) {
             session.getConsole().println("NodeID not specified");
             return null;
index c5f985e2458e4fea2c08410f466aea8afd042992..cc667ae67dc98e3e328320729dfc1fd340613d47 100644 (file)
@@ -16,7 +16,6 @@ import java.lang.management.ManagementFactory;
 import java.nio.ByteBuffer;
 import java.nio.charset.Charset;
 import java.nio.charset.StandardCharsets;
-import java.security.NoSuchAlgorithmException;
 import java.util.Arrays;
 import java.util.Objects;
 import java.util.Optional;
@@ -26,7 +25,6 @@ import org.opendaylight.mdsal.eos.binding.api.Entity;
 import org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService;
 import org.opendaylight.mdsal.eos.common.api.EntityOwnershipState;
 import org.opendaylight.openflowplugin.applications.topology.lldp.LLDPActivator;
-import org.opendaylight.openflowplugin.libraries.liblldp.BufferException;
 import org.opendaylight.openflowplugin.libraries.liblldp.Ethernet;
 import org.opendaylight.openflowplugin.libraries.liblldp.LLDP;
 import org.opendaylight.openflowplugin.libraries.liblldp.LLDPTLV;
@@ -146,8 +144,7 @@ public final class LLDPDiscoveryUtils {
      * @param nodeConnectorId the NodeConnectorId
      * @return extra authenticator for lldp security
      */
-    public static byte[] getValueForLLDPPacketIntegrityEnsuring(final NodeConnectorId nodeConnectorId)
-            throws NoSuchAlgorithmException {
+    public static byte[] getValueForLLDPPacketIntegrityEnsuring(final NodeConnectorId nodeConnectorId) {
         String finalKey;
         if (LLDPActivator.getLldpSecureKey() != null && !LLDPActivator.getLldpSecureKey().isEmpty()) {
             finalKey = LLDPActivator.getLldpSecureKey();
@@ -163,8 +160,7 @@ public final class LLDPDiscoveryUtils {
         return hashedValue.asBytes();
     }
 
-    private static boolean checkExtraAuthenticator(LLDP lldp, NodeConnectorId srcNodeConnectorId)
-            throws NoSuchAlgorithmException, BufferException {
+    private static boolean checkExtraAuthenticator(LLDP lldp, NodeConnectorId srcNodeConnectorId) {
         final LLDPTLV hashLldptlv = lldp.getCustomTLV(LLDPTLV.createSecSubTypeCustomTLVKey());
         boolean secAuthenticatorOk = false;
         if (hashLldptlv != null) {
index f94fac3fada1722e8601067b412cf9a1f22dc72a..aea9f55be8ea8b55640ceead6e793e9951ce42b9 100644 (file)
@@ -67,7 +67,7 @@ public class LLDPLinkAgerTest {
     private LinkRemoved linkRemoved;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         lldpLinkAger = new LLDPLinkAger(getConfig(), notificationService, getConfigurationService(), eos);
         Mockito.when(link.getDestination()).thenReturn(new NodeConnectorRef(
                 InstanceIdentifier.create(Nodes.class).child(Node.class, new NodeKey(new NodeId("openflow:1")))));
index 3ee30561bc684305b567be83898494e277525061..ccb16e5bceb913728ee71c38fd221aed17a899f6 100644 (file)
@@ -31,7 +31,7 @@ public class LLDPDiscoveryUtilsTest {
     private static final Logger LOG = LoggerFactory.getLogger(LLDPDiscoveryUtilsTest.class);
 
     @Test
-    public void testLldpToNodeConnectorRefLLDP() throws Exception {
+    public void testLldpToNodeConnectorRefLLDP() {
         byte[] packetLLDP = {
             0x01, 0x23, 0x00, 0x00, 0x00, 0x01, (byte) 0x8a, (byte) 0x8e,
             (byte) 0xcc, (byte) 0x85, (byte) 0xeb, 0x27,
@@ -56,7 +56,7 @@ public class LLDPDiscoveryUtilsTest {
     }
 
     @Test
-    public void testLldpToNodeConnectorRefNotLLDP() throws Exception {
+    public void testLldpToNodeConnectorRefNotLLDP() {
         byte[] packetNotLLDP = {
             0x01, 0x23, 0x00, 0x00, 0x00, 0x01, (byte) 0x8a, (byte) 0x8e,
             (byte) 0xcc, (byte) 0x85, (byte) 0xeb, 0x27,
index c2e1a387fa9e51f3942a8527cca1f20691af6131..8e37a0a297559aa0761f7e6ca19dc72a32f1d888 100644 (file)
@@ -53,7 +53,7 @@ public abstract class DataTreeChangeListenerImpl<T extends DataObject> implement
     }
 
     @Override
-    public void close() throws Exception {
+    public void close() {
         listenerRegistration.close();
     }
 
index 156d9745ae545ea3aefe7de7e421806cb9a782e7..97effc0b2666dcce83781710e6889971310a4497 100644 (file)
@@ -62,7 +62,7 @@ public class NodeChangeListenerImpl extends DataTreeChangeListenerImpl<FlowCapab
 
     @Override
     @PreDestroy
-    public void close() throws Exception {
+    public void close() {
         super.close();
     }
 
index 6831af0bcb6648222a97c0c4a87a19762b364a86..c46c3ac69ab8c424f8c979467f5a818cc1231d80 100644 (file)
@@ -70,7 +70,7 @@ public class TerminationPointChangeListenerImpl extends DataTreeChangeListenerIm
 
     @Override
     @PreDestroy
-    public void close() throws Exception {
+    public void close() {
         super.close();
     }
 
index 03fac36e0db3461fe4f1e11bcbe5ea49e70235e3..c0cb1cbcd1804a38aa6f147d327f71c99c94131d 100644 (file)
@@ -18,7 +18,7 @@ import org.opendaylight.openflowplugin.testcommon.DropTestRpcProvider;
 public class ClearDropStatsCommandProvider extends OsgiCommandSupport {
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         PrintStream out = session.getConsole();
         final DropTestRpcProvider rpcProvider = DropTestProviderImpl.getDropRpcProvider();
         final DropTestDsProvider provider = DropTestProviderImpl.getDropDsProvider();
index d9d41c35091b088d7a976984f14f58c1c9774a5c..b05eaade40f068755fbda44a93d928590070434d 100644 (file)
@@ -25,7 +25,7 @@ public class DropAllPacketsCommandProvider extends OsgiCommandSupport {
 
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         PrintStream out = session.getConsole();
         final DropTestDsProvider provider = DropTestProviderImpl.getDropDsProvider();
 
index a06c8cbf25e7da9f19fabe189103ced8692b9c9b..72b3c08bec45f7fde05e3c593b101054b828955a 100644 (file)
@@ -24,7 +24,7 @@ public class DropAllPacketsRpcCommandProvider extends OsgiCommandSupport {
     String targetStateArg;
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         PrintStream out = session.getConsole();
         final DropTestRpcProvider provider = DropTestProviderImpl.getDropRpcProvider();
 
index 5196ef62bb2caec9643f77dbdf9bcfea3df71e37..52444b4e223064da99c289ea82bffa25988b8c13 100644 (file)
@@ -55,7 +55,7 @@ public class DropTestProviderImpl implements AutoCloseable {
     }
 
     @Override
-    public void close() throws Exception {
+    public void close() {
         dropDsProvider.close();
         dropRpcProvider.close();
     }
index 7e289d881416879a538d5920aa5058646d68ac21..6c7db3dff2b74c47f27a8909cded804b2173a597 100644 (file)
@@ -18,7 +18,7 @@ import org.opendaylight.openflowplugin.testcommon.DropTestRpcProvider;
 public class ShowDropStatsCommandProvider extends OsgiCommandSupport {
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         PrintStream out = session.getConsole();
         final DropTestRpcProvider rpcProvider = DropTestProviderImpl.getDropRpcProvider();
         final DropTestDsProvider provider = DropTestProviderImpl.getDropDsProvider();
index e15582457d47f4c7ecfa554355c629e21bab06bf..3b4f6ca081d1c6b2597e822adf4b987d53e63435 100644 (file)
@@ -208,7 +208,7 @@ public class NiciraExtensionCodecRegistratorImpl implements NiciraExtensionCodec
     }
 
     @Override
-    public void close() throws Exception {
+    public void close() {
         // TODO Auto-generated method stub
     }
 
index 3ab969f2f10ae48b7ed3b0bb42c7d18a201c5679..e42df116520b0c7d1afd6aa35363ddac65adfd07 100644 (file)
@@ -195,7 +195,7 @@ public class NiciraExtensionsRegistrator implements AutoCloseable {
     }
 
     @Override
-    public void close() throws Exception {
+    public void close() {
         registrator.unregisterActionDeserializer(RegLoadCodec.DESERIALIZER_KEY);
         registrator.unregisterActionSerializer(RegLoadCodec.SERIALIZER_KEY);
         registrator.unregisterActionDeserializer(RegLoad2Codec.DESERIALIZER_KEY);
index 18d0bd25fa1505da3144a084fa87e9fc2584c64a..c01bfa056f01d0a72798d3ae70f35ec3a11d55fd 100644 (file)
@@ -544,7 +544,7 @@ public class NiciraExtensionsRegistratorTest {
     }
 
     @Test
-    public void unregisterExtensionsTest() throws Exception {
+    public void unregisterExtensionsTest() {
         niciraExtensionsRegistrator.close();
 
         Mockito.verify(registrator)
index 0442cba27fe77595a33c9b00a5f91088640c2050..8e7e246b1c11b9f3664ffaf1fc60e3f95bcb658d 100644 (file)
@@ -7,7 +7,6 @@
  */
 package org.opendaylight.openflowplugin.extension.api;
 
-import org.opendaylight.openflowplugin.extension.api.exception.ConversionException;
 import org.opendaylight.openflowplugin.extension.api.path.AugmentationPath;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.experimenter.types.rev151020.experimenter.core.message.ExperimenterMessageOfChoice;
 import org.opendaylight.yangtools.yang.binding.DataContainer;
@@ -27,5 +26,5 @@ public interface ConvertorMessageFromOFJava<F extends DataContainer, P extends A
      * @param path  in yang schema where a converted value has to be augmented
      * @return message converted to MD-SAL and its type
      */
-    ExperimenterMessageOfChoice convert(F input, P path) throws ConversionException;
+    ExperimenterMessageOfChoice convert(F input, P path);
 }
index 226adedc11bb76b8e08cf52c3623ec91ec572d75..3fe7dfa6276b04cca140f61ee4f1466dda07f189 100644 (file)
@@ -36,17 +36,17 @@ public class NiciraExtensionProviderTest {
     private NiciraExtensionProvider niciraExtensionProvider;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         Mockito.when(openFlowPluginExtensionRegistratorProvider.getExtensionConverterRegistrator())
                 .thenReturn(extensionConverterRegistrator);
         niciraExtensionProvider = new NiciraExtensionProvider(openFlowPluginExtensionRegistratorProvider);
     }
 
     @Test
-    public void testRegisterConverters() throws Exception {
+    public void testRegisterConverters() {
         Mockito.verify(extensionConverterRegistrator, Mockito.atLeastOnce()).registerActionConvertor(
                 ArgumentMatchers.<TypeVersionKey<? extends Action>>any(),
                 ArgumentMatchers.<ConvertorActionToOFJava<Action, org.opendaylight.yang.gen.v1.urn.opendaylight.openflow
-                    .common.action.rev150203.actions.grouping.Action>>any());
+                                    .common.action.rev150203.actions.grouping.Action>>any());
     }
 }
index a6a80e03aee3b59d6d1526fb36ddba6428bc921b..002755bc4d5270ea6b90e78f746f3f7f1dd5eb21 100644 (file)
@@ -43,12 +43,12 @@ public class ConntrackConvertorTest {
     private ConntrackConvertor conntrackConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         conntrackConvertor = new ConntrackConvertor();
     }
 
     @Test
-    public void testConvertToOfJava() throws Exception {
+    public void testConvertToOfJava() {
 
         final NxActionNatBuilder nxActionNatBuilder = new NxActionNatBuilder()
                 .setFlags(1)
@@ -103,7 +103,7 @@ public class ConntrackConvertorTest {
     }
 
     @Test
-    public void testConvertFromOfJava() throws Exception {
+    public void testConvertFromOfJava() {
 
         org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.ofpact.actions.ofpact.actions
             .nx.action.nat._case.NxActionNatBuilder nxActionNatBuilder = new org.opendaylight.yang.gen.v1.urn
index d1087596fef787be2fe7ce7258842a7e9f9c7e5c..c92b0b3bba8ec55f7d10c3aed446c8a0e829f204 100644 (file)
@@ -41,7 +41,7 @@ public class CtClearConvertorTest {
     private CtClearConvertor ctClearConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxCtClear nxCtClear = Mockito.mock(NxCtClear.class);
 
         final ActionCtClear actionCtClear = Mockito.mock(ActionCtClear.class);
@@ -51,13 +51,13 @@ public class CtClearConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final ActionCtClear actionCtClear = (ActionCtClear) ctClearConvertor.convert(actionsCase).getActionChoice();
         Assert.assertNotNull(actionCtClear);
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action actionResult
                 = ctClearConvertor.convert(action, ActionPath.FLOWS_STATISTICS_UPDATE_APPLY_ACTIONS);
         Assert.assertNotNull(actionResult);
index 003c64eacd19857b6a99a548bcd21d64b4ecda4b..ac138c7bea093a8abb33b3640da2a382fb91af46 100644 (file)
@@ -34,7 +34,7 @@ public class DecNshTtlConvertorTest {
     private DecNshTtlConvertor decNshTtlConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         NxDecNshTtl nxDecNshTtl = Mockito.mock(NxDecNshTtl.class);
 
         NxActionDecNshTtl nxActionDecNshTtl = Mockito.mock(NxActionDecNshTtl.class);
index 4bbac4979fbff31ff700ec2719c296e3531c5a7a..80ded836ca4bf99ac896b381fdcb0a6ba677c3ad 100644 (file)
@@ -43,7 +43,7 @@ public class DecapConvertorTest {
     private DecapConvertor decapConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         NxDecap nxDecap = Mockito.mock(NxDecap.class);
         when(nxDecap.getPacketType()).thenReturn(PACKET_TYPE);
         when(actionsCase.getNxDecap()).thenReturn(nxDecap);
index 81d216578d709a72ca302ae6f6dab8456714e8f3..fac72741fd4668aeab67ebb31c05f1e60fa31b49 100644 (file)
@@ -43,7 +43,7 @@ public class EncapConvertorTest {
     private EncapConvertor encapConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         NxEncap nxEncap = Mockito.mock(NxEncap.class);
         when(nxEncap.getPacketType()).thenReturn(PACKET_TYPE);
         when(actionsCase.getNxEncap()).thenReturn(nxEncap);
index 4da5062e5f1f7171f1086c81f9428e78416ca051..f740e70b126ccebe6d836f5ff4b426ab98349673 100644 (file)
@@ -43,7 +43,7 @@ public class FinTimeoutConvertorTest {
     private FinTimeoutConvertor finTimeoutConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nx.action
             .fin.timeout.grouping.NxActionFinTimeout nxFinTimeout =  Mockito.mock(org.opendaylight.yang.gen.v1.urn
                 .opendaylight.openflowplugin.extension.nicira.action.rev140714.nx.action.fin.timeout.grouping
@@ -63,7 +63,7 @@ public class FinTimeoutConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final ActionFinTimeout actionFinTimeout =
                 (ActionFinTimeout) finTimeoutConvertor.convert(actionsCase).getActionChoice();
         Assert.assertEquals(1, actionFinTimeout.getNxActionFinTimeout().getFinIdleTimeout().intValue());
@@ -71,7 +71,7 @@ public class FinTimeoutConvertorTest {
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action actionResult =
                 finTimeoutConvertor.convert(action,
                         ActionPath.FLOWS_STATISTICS_UPDATE_APPLY_ACTIONS);
index 9804a5f72900cc77202544189067d6ea7a1c2487..5de7ee640f9a8214a096ebfd993bffb694b15a00 100644 (file)
@@ -54,7 +54,7 @@ public class MultipathConvertorTest {
     private MultipathConvertor multipathConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxMultipath nxMultipath = Mockito.mock(NxMultipath.class);
         when(bucketActionsCase.getNxMultipath()).thenReturn(nxMultipath);
 
@@ -85,7 +85,7 @@ public class MultipathConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final ActionMultipath actionMultipath =
                 (ActionMultipath) multipathConvertor.convert(bucketActionsCase).getActionChoice();
         Assert.assertEquals(OfjNxHashFields.NXHASHFIELDSETHSRC, actionMultipath.getNxActionMultipath().getFields());
@@ -97,7 +97,7 @@ public class MultipathConvertorTest {
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action actionResult
                 = multipathConvertor.convert(action, ActionPath.FLOWS_STATISTICS_UPDATE_APPLY_ACTIONS);
         final org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action actionResult1
index d7605f82f872a81bb7ef5f6be37c9a8bd932a66a..154bf8370c83a658ef41b3f13010233d184a74c3 100644 (file)
@@ -51,7 +51,7 @@ public class OutputReg2ConvertorTest {
     private OutputReg2Convertor outputReg2Convertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxOutputReg nxOutputReg = Mockito.mock(NxOutputReg.class);
         final Src src = Mockito.mock(Src.class);
 
index 986ed9537385de8f621b3ed5a60af42749062ea6..598b3e39ca665fa5128686ddbfe0d8d59535b7ae 100644 (file)
@@ -52,7 +52,7 @@ public class OutputRegConvertorTest {
     private OutputRegConvertor outputRegConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxOutputReg nxOutputReg = Mockito.mock(NxOutputReg.class);
         final Src src = Mockito.mock(Src.class);
 
@@ -74,7 +74,7 @@ public class OutputRegConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final ActionOutputReg actionOutputReg =
                 (ActionOutputReg) outputRegConvertor.convert(actionsCase).getActionChoice();
         Assert.assertEquals(Integer.valueOf(1), actionOutputReg.getNxActionOutputReg().getNBits());
@@ -82,7 +82,7 @@ public class OutputRegConvertorTest {
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action actionResult
                 = outputRegConvertor.convert(action, ActionPath.FLOWS_STATISTICS_UPDATE_APPLY_ACTIONS);
         final org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action actionResult1
index b5e99a24cfb2557c17f1f046983f4bb87d11fe0b..68ad93a313eacde0bf7a757ac577709ac63eae9f 100644 (file)
@@ -53,7 +53,7 @@ public class RegLoadConvertorTest {
     private RegLoadConvertor regLoadConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxRegLoad nxRegLoad = Mockito.mock(NxRegLoad.class);
         final Dst dst = Mockito.mock(Dst.class);
 
@@ -76,14 +76,14 @@ public class RegLoadConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final ActionRegLoad actionRegLoad = (ActionRegLoad)regLoadConvertor.convert(actionsCase).getActionChoice();
         Assert.assertEquals(Integer.valueOf(65), actionRegLoad.getNxActionRegLoad().getOfsNbits());
         Assert.assertEquals(BigInteger.valueOf(3), actionRegLoad.getNxActionRegLoad().getValue());
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action actionResult
                 = regLoadConvertor.convert(action, ActionPath.INVENTORY_FLOWNODE_TABLE_WRITE_ACTIONS);
         org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action actionResult1
index 1966331af4bcf05f9bc2b4d66999846ac3d0d7e5..3ab8c1ec9026ba5c4c5a3aa06cb70ce9c8652644 100644 (file)
@@ -55,7 +55,7 @@ public class RegMoveConvertorTest {
 
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final Src src = Mockito.mock(Src.class);
         final Dst dst = Mockito.mock(Dst.class);
 
@@ -85,7 +85,7 @@ public class RegMoveConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final ActionRegMove actionRegMove = (ActionRegMove) regMoveConvertor.convert(actionsCase).getActionChoice();
         Assert.assertEquals(Integer.valueOf(3) ,actionRegMove.getNxActionRegMove().getDstOfs());
         Assert.assertEquals(Integer.valueOf(2) ,actionRegMove.getNxActionRegMove().getNBits());
@@ -93,7 +93,7 @@ public class RegMoveConvertorTest {
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action actionResult
                 = regMoveConvertor.convert(action, ActionPath.FLOWS_STATISTICS_UPDATE_APPLY_ACTIONS);
         final org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action actionResult1
index d471453934eca20ec1984bf5ded2aa65c45a5957..de57518c8a7beab501cdba12924923b7369910ea 100644 (file)
@@ -48,7 +48,7 @@ public class ResubmitConvertorTest {
     private ResubmitConvertor resubmitConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxResubmit nxResubmit = Mockito.mock(NxResubmit.class);
         when(actionsCase.getNxResubmit()).thenReturn(nxResubmit);
         when(nxResubmit.getInPort()).thenReturn(1);
@@ -65,14 +65,14 @@ public class ResubmitConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final ActionResubmit actionResubmit = (ActionResubmit) resubmitConvertor.convert(actionsCase).getActionChoice();
         Assert.assertEquals(1, actionResubmit.getNxActionResubmit().getInPort().intValue());
         Assert.assertEquals(2, actionResubmit.getNxActionResubmit().getTable().intValue());
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action actionResult
                 = resubmitConvertor.convert(action, ActionPath.FLOWS_STATISTICS_UPDATE_APPLY_ACTIONS);
         final org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action actionResult1
index 4aa436c4b37d58d0ccaf965c3591a08cb5152bed..02dc505f0a722abebfaf6f22a42b8dd9cafa3d17 100644 (file)
@@ -52,12 +52,12 @@ public class ArpOpConvertorTest {
     private ArpOpConvertor arpOpConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         arpOpConvertor = new ArpOpConvertor();
     }
 
     @Test
-    public void testConvertToOFJava() throws Exception {
+    public void testConvertToOFJava() {
         final NxmOfArpOpBuilder nxmOfArpOpBuilder = new NxmOfArpOpBuilder()
                 .setValue(2);
         final NxAugMatchRpcAddFlowBuilder nxAugMatchRpcAddFlowBuilder = new NxAugMatchRpcAddFlowBuilder();
@@ -73,7 +73,7 @@ public class ArpOpConvertorTest {
     }
 
     @Test
-    public void testConvertFromOFJava() throws Exception {
+    public void testConvertFromOFJava() {
         final ArpOpBuilder arpOpBuilder = new ArpOpBuilder()
                 .setOpCode(2);
         final ArpOpCaseBuilder arpOpCaseBuilder = new ArpOpCaseBuilder()
index 311ef0077058a402bcc8eff1aa5ce12ce53f62c7..919010bb0bcc476f0a7b47accd9ea1b1455b9fe3 100644 (file)
@@ -54,7 +54,7 @@ public class ArpShaConvertorTest {
     private static final Logger LOG = LoggerFactory.getLogger(ArpShaConvertorTest.class);
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxmNxArpShaBuilder nxmNxArpShaBuilder = new NxmNxArpShaBuilder()
                 .setMacAddress(MAC_ADDRESS);
         final NxAugMatchRpcAddFlowBuilder nxAugMatchRpcAddFlowBuilder = new NxAugMatchRpcAddFlowBuilder()
@@ -68,14 +68,14 @@ public class ArpShaConvertorTest {
     }
 
     @Test
-    public void testConvertToOFJava() throws Exception {
+    public void testConvertToOFJava() {
         final MatchEntry converted = arpShaConvertor.convert(extension);
         Assert.assertEquals(MAC_ADDRESS.getValue(),
                 ((ArpShaCaseValue) converted.getMatchEntryValue()).getArpShaValues().getMacAddress().getValue());
     }
 
     @Test
-    public void testConvertFromOFJava() throws Exception {
+    public void testConvertFromOFJava() {
         final ArpShaValuesBuilder arpShaValuesBuilder = new ArpShaValuesBuilder()
                 .setMacAddress(MAC_ADDRESS);
         final ArpShaCaseValueBuilder arpShaCaseValueBuilder = new ArpShaCaseValueBuilder()
index 60189a0812d2731a83f12ae59f5ed09034f9190f..4c1e41af7bffdd679a1a7aa7320266a101a8595a 100644 (file)
@@ -51,12 +51,12 @@ public class ArpSpaConvertorTest {
     private ArpSpaConvertor arpSpaConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         arpSpaConvertor = new ArpSpaConvertor();
     }
 
     @Test
-    public void testConvertToOFJava() throws Exception {
+    public void testConvertToOFJava() {
         final NxmOfArpSpaBuilder nxmOfArpSpaBuilder = new NxmOfArpSpaBuilder()
                 .setIpv4Address(IPV4_ADDRESS);
         final NxAugMatchRpcAddFlowBuilder nxAugMatchRpcAddFlowBuilder = new NxAugMatchRpcAddFlowBuilder();
@@ -72,7 +72,7 @@ public class ArpSpaConvertorTest {
     }
 
     @Test
-    public void testConvertFromOFJava() throws Exception {
+    public void testConvertFromOFJava() {
         final ArpSpaValuesBuilder arpSpaValuesBuilder = new ArpSpaValuesBuilder()
                 .setValue(IpConverter.ipv4AddressToLong(IPV4_ADDRESS));
         final ArpSpaCaseValueBuilder arpSpaCaseValueBuilder = new ArpSpaCaseValueBuilder()
index 0209949d710250fcf199f142e7c9f95ee3c64b61..25b4405796325f1fa7f7bcb21bef0b98a5493db6 100644 (file)
@@ -50,7 +50,7 @@ public class ArpThaConvertorTest {
     private ArpThaConvertor arpThaConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
 
         final NxmNxArpThaBuilder nxArpThaBuilder = new NxmNxArpThaBuilder()
                 .setMacAddress(MAC_ADDRESS);
@@ -65,14 +65,14 @@ public class ArpThaConvertorTest {
     }
 
     @Test
-    public void testConvertToOFJava() throws Exception {
+    public void testConvertToOFJava() {
         final MatchEntry converted = arpThaConvertor.convert(extension);
         Assert.assertEquals(MAC_ADDRESS.getValue(),
                 ((ArpThaCaseValue) converted.getMatchEntryValue()).getArpThaValues().getMacAddress().getValue());
     }
 
     @Test
-    public void testConvertFromOFJava() throws Exception {
+    public void testConvertFromOFJava() {
         final ArpThaValuesBuilder arpThaValuesBuilder = new ArpThaValuesBuilder()
                 .setMacAddress(MAC_ADDRESS);
         final ArpThaCaseValueBuilder arpThaCaseValueBuilder = new ArpThaCaseValueBuilder()
index 6ca886d9de1be6b38da37a16f3e9baf7cec7c5e7..0d7e490b57538dc25e3e776f6e773e357795c82b 100644 (file)
@@ -51,7 +51,7 @@ public class ArpTpaConvertorTest {
     private ArpTpaConvertor arpTpaConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
 
         final NxmOfArpTpaBuilder nxmOfArpTpaBuilder = new NxmOfArpTpaBuilder()
                 .setIpv4Address(IPV4_ADDRESS);
@@ -66,14 +66,14 @@ public class ArpTpaConvertorTest {
     }
 
     @Test
-    public void testConvertFromOFJava() throws Exception {
+    public void testConvertFromOFJava() {
         final MatchEntry converted = arpTpaConvertor.convert(extension);
         Assert.assertEquals(IpConverter.ipv4AddressToLong(IPV4_ADDRESS),
                 ((ArpTpaCaseValue)converted.getMatchEntryValue()).getArpTpaValues().getValue().longValue());
     }
 
     @Test
-    public void testConvertToOFJava() throws Exception {
+    public void testConvertToOFJava() {
         final ArpTpaValuesBuilder arpTpaValuesBuilder = new ArpTpaValuesBuilder()
                 .setValue(IpConverter.ipv4AddressToLong(IPV4_ADDRESS));
         final ArpTpaCaseValueBuilder arpTpaCaseValueBuilder = new ArpTpaCaseValueBuilder()
index 6e1a816620fbefe0512b0f82336aafd6a5ed60f2..25aca9fa57b2893ffa13d745ad4ce654137672b2 100644 (file)
@@ -47,7 +47,7 @@ public class CtStateConvertorTest {
     private CtStateConvertor ctStateConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
 
         final NxmNxCtStateBuilder nxmNxCtStateBuilder = new NxmNxCtStateBuilder()
                 .setCtState(1L)
@@ -64,7 +64,7 @@ public class CtStateConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final MatchEntry converted = ctStateConvertor.convert(extension);
         Assert.assertEquals(1L,
                 ((CtStateCaseValue) converted.getMatchEntryValue()).getCtStateValues().getCtState().longValue());
@@ -73,7 +73,7 @@ public class CtStateConvertorTest {
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
 
         final CtStateValuesBuilder ctStateValuesBuilder = new CtStateValuesBuilder()
                 .setCtState(3L)
index 77fcb962ec7773eff39c7a2d0ebb3f1ce451c273..0408ef9cbc3531309c1a1321eaaf676503fd9910 100644 (file)
@@ -47,7 +47,7 @@ public class CtZoneConvertorTest {
     private CtZoneConvertor ctZoneConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
 
         final NxmNxCtZoneBuilder nxmNxCtZoneBuilder = new NxmNxCtZoneBuilder()
                 .setCtZone(1);
@@ -64,14 +64,14 @@ public class CtZoneConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final MatchEntry converted = ctZoneConvertor.convert(extension);
         Assert.assertEquals(1L,
                 ((CtZoneCaseValue) converted.getMatchEntryValue()).getCtZoneValues().getCtZone().longValue());
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final CtZoneValuesBuilder ctZoneValuesBuilder = new CtZoneValuesBuilder()
                 .setCtZone(2);
         final CtZoneCaseValueBuilder ctZoneCaseValueBuilder = new CtZoneCaseValueBuilder()
index 4aa0c2df5fdf778fa5ef215784787e1f56c4aaa5..fba0c9c7180d279dd216d027e9857034dcf2be19 100644 (file)
@@ -50,7 +50,7 @@ public class EthDstConvertorTest {
     private EthDstConvertor ethDstConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
 
         final NxmOfEthDstBuilder nxmOfEthDstBuilder = new NxmOfEthDstBuilder()
                 .setMacAddress(MAC_ADDRESS);
@@ -67,14 +67,14 @@ public class EthDstConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final MatchEntry converted = ethDstConvertor.convert(extension);
         Assert.assertEquals(MAC_ADDRESS, ((EthDstCaseValue)converted.getMatchEntryValue())
                 .getEthDstValues().getMacAddress());
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final EthDstValuesBuilder ethDstValuesBuilder = new EthDstValuesBuilder()
                 .setMacAddress(MAC_ADDRESS);
         final EthDstCaseValueBuilder ethDstCaseValueBuilder = new EthDstCaseValueBuilder()
index ca60bfe02429b213af76aca96038394f0befd486..f45812a1a41f288deb30b99befb7f4bbaae24418 100644 (file)
@@ -50,7 +50,7 @@ public class EthSrcConvertorTest {
     private EthSrcConvertor ethSrcConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxmOfEthSrcBuilder nxmOfEthSrcBuilder = new NxmOfEthSrcBuilder()
                 .setMacAddress(MAC_ADDRESS);
         final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder =
@@ -65,14 +65,14 @@ public class EthSrcConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final MatchEntry converted = ethSrcConvertor.convert(extension);
         Assert.assertEquals(MAC_ADDRESS, ((EthSrcCaseValue)converted.getMatchEntryValue())
                 .getEthSrcValues().getMacAddress());
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final EthSrcValuesBuilder ethSrcValuesBuilder = new EthSrcValuesBuilder()
                 .setMacAddress(MAC_ADDRESS);
         final EthSrcCaseValueBuilder ethSrcCaseValueBuilder = new EthSrcCaseValueBuilder()
index 318cbfbceb4e91247ba724c9cd15fdfd553f4206..50d745d23808969a01b25e459262ebf4c86a76e7 100644 (file)
@@ -47,7 +47,7 @@ public class EthTypeConvertorTest {
     private EthTypeConvertor ethTypeConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
 
         final NxmOfEthTypeBuilder nxmOfEthTypeBuilder = new NxmOfEthTypeBuilder()
                 .setValue(1);
@@ -64,14 +64,14 @@ public class EthTypeConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final MatchEntry converted = ethTypeConvertor.convert(extension);
         Assert.assertEquals(1, ((EthTypeCaseValue)converted.getMatchEntryValue())
                 .getEthTypeValues().getValue().intValue());
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final EthTypeValuesBuilder ethTypeValuesBuilder = new EthTypeValuesBuilder()
                 .setValue(Integer.valueOf(1));
         final EthTypeCaseValueBuilder ethTypeCaseValueBuilder = new EthTypeCaseValueBuilder()
index 8e0f6064a7ae410eca29b31c299d464270d8d363..889809a319ab6bbda4575c6fa89a988388759f11 100644 (file)
@@ -45,7 +45,7 @@ public class NshFlagsConvertorTest {
     private static final Short MASK_VALUE = (short) 0xFF;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         NxmNxNshFlags nxmNxNshFlags = new NxmNxNshFlagsBuilder()
                 .setNshFlags(FLAGS_VALUE)
                 .setMask(MASK_VALUE)
index 4c2b32b19c685f49fc3840b55b19759a446d4a07..fff6512b73c92a0f6fd75ef38e488c009630a9dc 100644 (file)
@@ -45,7 +45,7 @@ public class NshMdtypeConvertorTest {
     private static final Short MDTYPE_VALUE = (short) 0x7B;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         NxmNxNshMdtype nxmNxNshMdtype = new NxmNxNshMdtypeBuilder()
                 .setValue(MDTYPE_VALUE)
                 .build();
index f838f77bbef97f82643a59109b15aceaf5274605..b8028103f7387127f596e568ba145bb65a9a50c0 100644 (file)
@@ -45,7 +45,7 @@ public class NshNpConvertorTest {
     private static final Short NP_VALUE = (short) 0x7B;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         NxmNxNshNp nxmNxNshNp = new NxmNxNshNpBuilder()
                 .setValue(NP_VALUE)
                 .build();
index b854eba651f1293e3df9e33a01ea192fdcf49c44..650f1c14965b2ce9c400b36a098bb211177f853c 100644 (file)
@@ -44,7 +44,7 @@ public class NshTtlConvertorTest {
     private static final Short TTL_VALUE = (short) 0x13;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         NxmNxNshTtl nxmNxNshTtl = new NxmNxNshTtlBuilder()
                 .setNshTtl(TTL_VALUE)
                 .build();
index ab2ee05ab42e1a7ea6ddc6de712806f05512dfe1..6a18a7976b52969acf3710219acf692a6f4d0bd7 100644 (file)
@@ -49,7 +49,7 @@ public class Nshc1ConvertorTest {
     private static final Long MASK_VALUE = 0xFFFFFFFFL;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         NxmNxNshc1 nxmNxNshc1 = new NxmNxNshc1Builder().setValue(NSHC1_VALUE).setMask(MASK_VALUE).build();
         NxAugMatchNodesNodeTableFlow nxAugMatchNotifUpdateFlowStats = new NxAugMatchNodesNodeTableFlowBuilder()
                 .setNxmNxNshc1(nxmNxNshc1)
index 3f40885ed6128dc6576d7a620775acd877f206d5..5ddc1f97905406bab804cd85a4a111bb09713719 100644 (file)
@@ -49,7 +49,7 @@ public class Nshc2ConvertorTest {
     private static final Long MASK_VALUE = 0xFFFFFFFFL;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         NxmNxNshc2 nxmNxNshc2 = new NxmNxNshc2Builder().setValue(NSHC2_VALUE).setMask(MASK_VALUE).build();
         NxAugMatchNodesNodeTableFlow nxAugMatchNotifUpdateFlowStats = new NxAugMatchNodesNodeTableFlowBuilder()
                 .setNxmNxNshc2(nxmNxNshc2)
index d76a113883a5d61b25ce6527c72431ca3859e958..e8ecdedb2e35790d2d905e8020d39a28da7e2559 100644 (file)
@@ -49,7 +49,7 @@ public class Nshc3ConvertorTest {
     private static final Long MASK_VALUE = 0xFFFFFFFFL;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         NxmNxNshc3 nxmNxNshc3 = new NxmNxNshc3Builder().setValue(NSHC3_VALUE).setMask(MASK_VALUE).build();
         NxAugMatchNodesNodeTableFlow nxAugMatchNotifUpdateFlowStats = new NxAugMatchNodesNodeTableFlowBuilder()
                 .setNxmNxNshc3(nxmNxNshc3)
index 5037b3cce5f3e5f52183ce0db659e59e20378563..57d1dbadf110ba5b7627d8fc65ce9ce2c7d31a81 100644 (file)
@@ -49,7 +49,7 @@ public class Nshc4ConvertorTest {
     private static final Long MASK_VALUE = 0xFFFFFFFFL;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         NxmNxNshc4 nxmNxNshc4 = new NxmNxNshc4Builder().setValue(NSHC4_VALUE).setMask(MASK_VALUE).build();
         NxAugMatchNodesNodeTableFlow nxAugMatchNotifUpdateFlowStats = new NxAugMatchNodesNodeTableFlowBuilder()
                 .setNxmNxNshc4(nxmNxNshc4)
index b931247b4bd09d2ba944ca061d6cc9dfe08f19d1..dc25cb16f76cc75979d9200798fa4c6a316d7465 100644 (file)
@@ -48,7 +48,7 @@ public class NsiConvertorTest {
     private static final Short NSI_VALUE = (short) 255;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         NxmNxNsi nxmNxNsi = new NxmNxNsiBuilder().setNsi(NSI_VALUE).build();
         NxAugMatchNodesNodeTableFlow nxAugMatchNotifUpdateFlowStats = new NxAugMatchNodesNodeTableFlowBuilder()
                 .setNxmNxNsi(nxmNxNsi)
index e66099b6ce23a832a56c5e44aae043da5a7849cf..55c42c19b27f1a8985a5064bd023b404aabb73f3 100644 (file)
@@ -48,7 +48,7 @@ public class NspConvertorTest {
     private static final Long NSP_VALUE = 0xFFL;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         NxmNxNsp nxmNxNsp = new NxmNxNspBuilder().setValue(NSP_VALUE).build();
         NxAugMatchNodesNodeTableFlow nxAugMatchNotifUpdateFlowStats = new NxAugMatchNodesNodeTableFlowBuilder()
                 .setNxmNxNsp(nxmNxNsp)
index 936b41f1d5ace22fcf55ec0b585c548404981fb5..8128f8b208cc46bbdc439c4a0407f0336b2c2951 100644 (file)
@@ -49,7 +49,7 @@ public class TcpDstConvertorTest {
     private TcpDstConvertor tcpDstConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxmOfTcpDstBuilder nxmOfTcpDstBuilder = new NxmOfTcpDstBuilder()
                 .setMask(1)
                 .setPort(DEFAULT_PORT);
@@ -65,7 +65,7 @@ public class TcpDstConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final MatchEntry converted = tcpDstConvertor.convert(extension);
         Assert.assertEquals(1,
                 ((TcpDstCaseValue) converted.getMatchEntryValue()).getTcpDstValues().getMask().intValue());
@@ -74,7 +74,7 @@ public class TcpDstConvertorTest {
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final TcpDstValuesBuilder tcpDstValuesBuilder = new TcpDstValuesBuilder()
                 .setMask(2)
                 .setPort(DEFAULT_PORT);
index 0470ba9d3d2c936c09703d4970a06d227fa72988..22f38f2ac525e98754fe50a8a2bcbc3810797d42 100644 (file)
@@ -49,7 +49,7 @@ public class TcpSrcConvertorTest {
     private TcpSrcConvertor tcpSrcConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxmOfTcpSrcBuilder nxmOfTcpSrcBuilder = new NxmOfTcpSrcBuilder()
                 .setMask(1)
                 .setPort(DEFAULT_PORT);
@@ -65,7 +65,7 @@ public class TcpSrcConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final MatchEntry converted = tcpSrcConvertor.convert(extension);
         Assert.assertEquals(1,
                 ((TcpSrcCaseValue) converted.getMatchEntryValue()).getTcpSrcValues().getMask().intValue());
@@ -74,7 +74,7 @@ public class TcpSrcConvertorTest {
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final TcpSrcValuesBuilder tcpSrcValuesBuilder = new TcpSrcValuesBuilder()
                 .setMask(2)
                 .setPort(DEFAULT_PORT);
index b85e48ae38a28f5f5ea349e55995782fcbdefa53..7f32a2dce508e7a4082721e4bc18d41d0014d364 100644 (file)
@@ -50,7 +50,7 @@ public class TunIPv4DstConvertorTest {
     private TunIPv4DstConvertor tunIPv4DstConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxmNxTunIpv4DstBuilder nxmNxTunIpv4DstBuilder = new NxmNxTunIpv4DstBuilder()
                 .setIpv4Address(IPV4_ADDRESS);
         final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder =
@@ -65,14 +65,14 @@ public class TunIPv4DstConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final MatchEntry converted = tunIPv4DstConvertor.convert(extension);
         Assert.assertEquals(IpConverter.ipv4AddressToLong(IPV4_ADDRESS),
                 ((TunIpv4DstCaseValue)converted.getMatchEntryValue()).getTunIpv4DstValues().getValue().longValue());
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final TunIpv4DstValuesBuilder tunIpv4DstValuesBuilder = new TunIpv4DstValuesBuilder()
                 .setValue(IpConverter.ipv4AddressToLong(IPV4_ADDRESS));
         final TunIpv4DstCaseValueBuilder tunIpv4DstCaseValueBuilder = new TunIpv4DstCaseValueBuilder()
index d3c257cdf799ce12076ff315acc8e7d37ced1e5c..5d6083b27389272e6e535fcf5982d4563430778a 100644 (file)
@@ -50,7 +50,7 @@ public class TunIPv4SrcConvertorTest {
     private TunIPv4SrcConvertor tunIPv4DstConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxmNxTunIpv4SrcBuilder nxmNxTunIpv4SrcBuilder = new NxmNxTunIpv4SrcBuilder()
                 .setIpv4Address(IPV4_ADDRESS);
         final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder =
@@ -65,14 +65,14 @@ public class TunIPv4SrcConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final MatchEntry converted = tunIPv4DstConvertor.convert(extension);
         Assert.assertEquals(IpConverter.ipv4AddressToLong(IPV4_ADDRESS),
                 ((TunIpv4SrcCaseValue) converted.getMatchEntryValue()).getTunIpv4SrcValues().getValue().longValue());
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final TunIpv4SrcValuesBuilder tunIpv4SrcValuesBuilder = new TunIpv4SrcValuesBuilder()
                 .setValue(IpConverter.ipv4AddressToLong(IPV4_ADDRESS));
         final TunIpv4SrcCaseValueBuilder tunIpv4SrcCaseValueBuilder = new TunIpv4SrcCaseValueBuilder()
index 75017d66aa04dde85f51b3a5e8c388768cbbacb1..eef4946af8264de7ec92da7f58b433cbf6eafe0f 100644 (file)
@@ -47,7 +47,7 @@ public class TunIdConvertorTest {
     private TunIdConvertor tunIdConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxmNxTunIdBuilder nxmNxTunIdBuilder = new NxmNxTunIdBuilder()
                 .setValue(BigInteger.ONE);
         final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder =
@@ -62,14 +62,14 @@ public class TunIdConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final MatchEntry converted = tunIdConvertor.convert(extension);
         Assert.assertEquals(BigInteger.ONE, ((TunIdCaseValue)converted.getMatchEntryValue())
                 .getTunIdValues().getValue());
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final TunIdValuesBuilder tunIdValuesBuilder = new TunIdValuesBuilder()
                 .setValue(BigInteger.TEN);
         final TunIdCaseValueBuilder tunIdCaseValueBuilder = new TunIdCaseValueBuilder()
index 2bef460866da0ba0fb8bc3f19c6537f8688d98c8..fb7aa8ebe5591729a129dfdf46a1cc0a360e7eab 100644 (file)
@@ -49,7 +49,7 @@ public class UdpDstConvertorTest {
     private UdpDstConvertor udpDstConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxmOfUdpDstBuilder nxmOfUdpDstBuilder = new NxmOfUdpDstBuilder()
                 .setMask(1)
                 .setPort(DEFAULT_PORT);
@@ -65,7 +65,7 @@ public class UdpDstConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final MatchEntry converted = udpDstConvertor.convert(extension);
         Assert.assertEquals(Integer.valueOf(1),
                 ((UdpDstCaseValue) converted.getMatchEntryValue()).getUdpDstValues().getMask());
@@ -74,7 +74,7 @@ public class UdpDstConvertorTest {
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final UdpDstValuesBuilder udpDstValuesBuilder = new UdpDstValuesBuilder()
                 .setMask(2)
                 .setPort(DEFAULT_PORT);
index 07b5aa2296f3758cb53eb7c87af676277794bba6..71f21590805f3ebf236fbaca371fe4025dc692cf 100644 (file)
@@ -49,7 +49,7 @@ public class UdpSrcConvertorTest {
     private UdpSrcConvertor udpSrcConvertor;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final NxmOfUdpSrcBuilder nxmOfUdpSrcBuilder = new NxmOfUdpSrcBuilder()
                 .setMask(1)
                 .setPort(DEFAULT_PORT);
@@ -65,7 +65,7 @@ public class UdpSrcConvertorTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final MatchEntry converted = udpSrcConvertor.convert(extension);
         Assert.assertEquals(Integer.valueOf(1),
                 ((UdpSrcCaseValue) converted.getMatchEntryValue()).getUdpSrcValues().getMask());
@@ -74,7 +74,7 @@ public class UdpSrcConvertorTest {
     }
 
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final UdpSrcValuesBuilder udpSrcValuesBuilder = new UdpSrcValuesBuilder()
                 .setMask(2)
                 .setPort(DEFAULT_PORT);
index 9c74354327b7bb8962589890d47fb6a561c1f1cc..0d9347621b64b4860a274076093eae637511fabc 100644 (file)
@@ -98,8 +98,7 @@ public class BundleAddMessageConverter implements
     }
 
     @Override
-    public BundleAddMessageSal convert(final BundleAddMessageOnf input, final MessagePath path)
-            throws ConversionException {
+    public BundleAddMessageSal convert(final BundleAddMessageOnf input, final MessagePath path) {
         return new BundleAddMessageSalBuilder()
                 .setSalAddMessageData(new SalAddMessageDataBuilder(input.getOnfAddMessageGroupingData())
                         .build())
index 6ea9f081e5afd15e7e5dd5ae2c63ba6137877e57..f717f6e1c9bf1e48be9c32bacaa83d763224c919 100644 (file)
@@ -11,7 +11,6 @@ package org.opendaylight.openflowplugin.extension.onf.converter;
 import org.opendaylight.openflowplugin.extension.api.ConverterMessageToOFJava;
 import org.opendaylight.openflowplugin.extension.api.ConvertorMessageFromOFJava;
 import org.opendaylight.openflowplugin.extension.api.ExtensionConvertorData;
-import org.opendaylight.openflowplugin.extension.api.exception.ConversionException;
 import org.opendaylight.openflowplugin.extension.api.path.MessagePath;
 import org.opendaylight.openflowplugin.extension.onf.OnfConstants;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.ExperimenterId;
@@ -30,8 +29,7 @@ public class BundleControlConverter implements
         ConvertorMessageFromOFJava<BundleControlOnf, MessagePath> {
 
     @Override
-    public BundleControlOnf convert(final BundleControlSal experimenterMessageCase, final ExtensionConvertorData data)
-            throws ConversionException {
+    public BundleControlOnf convert(final BundleControlSal experimenterMessageCase, final ExtensionConvertorData data) {
         return new BundleControlOnfBuilder().setOnfControlGroupingData(
                 new OnfControlGroupingDataBuilder(experimenterMessageCase.getSalControlData()).build()).build();
     }
index 4987a2cee747857a5fca9d1b025a38fde8401360..60c6d7eeb0714bbdfdfa522a3733f7f548e6f119 100644 (file)
@@ -32,7 +32,7 @@ public class OnfExtensionProviderTest {
     private OnfExtensionProvider onfExtensionProvider;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         Mockito
                 .when(openFlowPluginExtensionRegistratorProvider.getExtensionConverterRegistrator())
                 .thenReturn(extensionConverterRegistrator);
@@ -42,7 +42,7 @@ public class OnfExtensionProviderTest {
     }
 
     @Test
-    public void init() throws Exception {
+    public void init() {
         onfExtensionProvider.init();
         Mockito.verify(switchConnectionProvider, Mockito.times(2))
                 .registerExperimenterMessageSerializer(Mockito.any(), Mockito.any());
index aadcfdce08abc14733750913c0559785da338754..c7c621b2069f392912d5bdd3f46ad621d231f294 100644 (file)
@@ -72,7 +72,7 @@ public class BundleAddMessageConverterTest {
     private static final GroupId GROUP_ID = new GroupId(1L);
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
     }
 
     @Test
index f7e68c2fb78f7041c12211da17a1266ffa3c744f..2afe830f482e1ede4f5423a9b1091d4f52f3f693 100644 (file)
@@ -47,12 +47,12 @@ public class BundleControlConverterTest {
     }
 
     @Test
-    public void testConvertDownWithProperty() throws Exception {
+    public void testConvertDownWithProperty() {
         testConvertDown(true);
     }
 
     @Test
-    public void testConvertDownWithoutProperty() throws Exception {
+    public void testConvertDownWithoutProperty() {
         testConvertDown(false);
     }
 
@@ -66,7 +66,7 @@ public class BundleControlConverterTest {
         testConvertUp(true);
     }
 
-    private void testConvertDown(final boolean withProperty) throws Exception {
+    private void testConvertDown(final boolean withProperty) {
         final BundleControlSal original = createOFPMessage(withProperty);
         final BundleControlOnf converted = converter.convert(original, null);
         testConvert(original, converted, withProperty);
index 71bd964d664ebace40974b92262c1d4387285b9b..85c9d0b9dc4e4eed1099fe2a553f0b7321eac870 100644 (file)
@@ -380,11 +380,11 @@ public class LLDPTLV extends Packet {
         return BitBufferHelper.getByte(ArrayUtils.subarray(value, 3, 4));
     }
 
-    public static CustomTLVKey createPortSubTypeCustomTLVKey() throws BufferException {
+    public static CustomTLVKey createPortSubTypeCustomTLVKey() {
         return new CustomTLVKey(BitBufferHelper.getInt(OFOUI), CUSTOM_TLV_SUB_TYPE_NODE_CONNECTOR_ID[0]);
     }
 
-    public static CustomTLVKey createSecSubTypeCustomTLVKey() throws BufferException {
+    public static CustomTLVKey createSecSubTypeCustomTLVKey() {
         return new CustomTLVKey(BitBufferHelper.getInt(LLDPTLV.OFOUI), LLDPTLV.CUSTOM_TLV_SUB_TYPE_CUSTOM_SEC[0]);
     }
 }
index 29ed51670674402a88fc0b22654c079207c8a34b..a333d5d89fd9bed9684bd2e694f5cfe29347d43b 100644 (file)
@@ -58,7 +58,7 @@ public class LLDPTLVTest {
      * {@link org.opendaylight.openflowplugin.libraries.liblldp.LLDPTLV#getCustomString(byte[], int)}.
      */
     @Test
-    public void testGetCustomString() throws Exception {
+    public void testGetCustomString() {
         byte[] inputCustomTlv = Bytes.concat(new byte[] {
             // custom type (7b) + length (9b) = 16b = 2B  (skipped)
             // 0x7f, 24,
index 8ef46bb184830af0494bf678b8f5f5544c274a3f..4515da574955e020d1406fdd696d63728ec1fec9 100644 (file)
@@ -39,7 +39,7 @@ public class IdleHandler extends ReadTimeoutHandler {
     }
 
     @Override
-    protected void readTimedOut(final ChannelHandlerContext ctx) throws Exception {
+    protected void readTimedOut(final ChannelHandlerContext ctx) {
         if (first) {
             LOG.debug("Switch idle");
             SwitchIdleEventBuilder builder = new SwitchIdleEventBuilder();
index 66c36524ea40f3c0f406f8065ea5e5ddf65617e0..91b9947d6ca9ccc1926d68fc32a332715b11a415 100644 (file)
@@ -29,8 +29,7 @@ public class OFDatagramPacketDecoder extends SimpleChannelInboundHandler<Version
 
     @Override
     @SuppressWarnings("checkstyle:IllegalCatch")
-    public void channelRead0(final ChannelHandlerContext ctx, final VersionMessageUdpWrapper msg)
-            throws Exception {
+    public void channelRead0(final ChannelHandlerContext ctx, final VersionMessageUdpWrapper msg) {
         if (LOG.isDebugEnabled()) {
             LOG.debug("UdpVersionMessageWrapper received: {}", ByteBufUtils.byteBufToHexString(msg.getMessageBuffer()));
         }
index fee5ee209e9eeb168440694db63328f67b1dee75..8eed6af41081376e9e0cc5cb6ccfe42a83249967 100644 (file)
@@ -52,7 +52,7 @@ public class OFDatagramPacketHandler extends MessageToMessageDecoder<DatagramPac
     }
 
     @Override
-    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
+    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
         LOG.warn("Unexpected exception from downstream.", cause);
         LOG.warn("Closing connection.");
         ctx.close();
@@ -60,7 +60,7 @@ public class OFDatagramPacketHandler extends MessageToMessageDecoder<DatagramPac
 
     @Override
     protected void decode(ChannelHandlerContext ctx, DatagramPacket msg,
-           List<Object> out) throws Exception {
+           List<Object> out) {
         LOG.debug("OFDatagramPacketFramer");
         MessageConsumer consumer = UdpConnectionMap.getMessageConsumer(msg.sender());
         if (consumer == null) {
index 39b278fb52f568ac571340b7d2aa0a662b754246..76aa09ed5c116907d9a184f82405946ff05f532b 100644 (file)
@@ -40,7 +40,7 @@ public class OFDecoder extends MessageToMessageDecoder<VersionMessageWrapper> {
 
     @Override
     @SuppressWarnings("checkstyle:IllegalCatch")
-    protected void decode(ChannelHandlerContext ctx, VersionMessageWrapper msg, List<Object> out) throws Exception {
+    protected void decode(ChannelHandlerContext ctx, VersionMessageWrapper msg, List<Object> out) {
         statisticsCounter.incrementCounter(CounterEventTypes.US_RECEIVED_IN_OFJAVA);
         if (LOG.isDebugEnabled()) {
             LOG.debug("VersionMessageWrapper received: {}", ByteBufUtils.byteBufToHexString(msg.getMessageBuffer()));
index a095280a9de889800dac4b77796aa19af3d56c0b..5c68d57f130cd044dbf613da048d9a857d4a60d2 100644 (file)
@@ -47,7 +47,7 @@ public class OFFrameDecoder extends ByteToMessageDecoder {
     }
 
     @Override
-    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
+    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
         if (cause instanceof io.netty.handler.ssl.NotSslRecordException) {
             LOG.warn("Not an TLS record exception - please verify TLS configuration.");
         } else {
@@ -58,7 +58,7 @@ public class OFFrameDecoder extends ByteToMessageDecoder {
     }
 
     @Override
-    protected void decode(ChannelHandlerContext chc, ByteBuf bb, List<Object> list) throws Exception {
+    protected void decode(ChannelHandlerContext chc, ByteBuf bb, List<Object> list) {
         if (firstTlsPass) {
             connectionFacade.fireConnectionReadyNotification();
             firstTlsPass = false;
index 40adc5716bb71bdb03a42b33c03c96c5a4cd11d8..1af6fdd2c56e96603f536016540d7837762bedd8 100755 (executable)
@@ -210,7 +210,7 @@ public class SwitchConnectionProviderImpl implements SwitchConnectionProvider, C
     }
 
     @Override
-    public void close() throws Exception {
+    public void close() {
         shutdown();
     }
 
index 13b3ca35c61bc6eb5a778b6bcee4c3015073b6ae..97de2cb6a8e89335ee396f2fa34ad06447ddf93f 100644 (file)
@@ -18,7 +18,7 @@ import io.netty.channel.socket.DatagramChannel;
 public class UdpChannelInitializer extends ProtocolChannelInitializer<DatagramChannel> {
 
     @Override
-    protected void initChannel(DatagramChannel ch) throws Exception {
+    protected void initChannel(DatagramChannel ch) {
         ch.pipeline().addLast(PipelineHandlers.OF_DATAGRAMPACKET_HANDLER.name(),
                 new OFDatagramPacketHandler(getSwitchConnectionHandler(), getChannelOutboundQueueSize()));
         OFDatagramPacketDecoder ofDatagramPacketDecoder = new OFDatagramPacketDecoder();
index f62880066e1462b257c44af0473d6158dbd1c68b..2c790102a029aec05da0e7ec256784a557829edd 100644 (file)
@@ -26,7 +26,7 @@ public class DummyDecoder extends ByteToMessageDecoder {
 
     @Override
     protected void decode(ChannelHandlerContext ctx, ByteBuf in,
-            List<Object> out) throws Exception {
+            List<Object> out) {
         LOG.debug("decoding");
         ctx.fireChannelReadComplete();
     }
index 3bb1a5da3b31e3e7c6bfa175c54974be709d1654..ccf382ec8a8d60fe104cc6cd89b8b33b371e722e 100644 (file)
@@ -56,7 +56,7 @@ public class IdleHandlerTest {
      * Test channel read timeout.
      */
     @Test
-    public void testReadTimedOut() throws Exception {
+    public void testReadTimedOut() {
         idleHandler.readTimedOut(mockChHndlrCtx);
 
         // Verify a read was fired for the next handler to process ...
@@ -67,7 +67,7 @@ public class IdleHandlerTest {
      * Test only one timeout notification.
      */
     @Test
-    public void testReadTimedOutNoOpNotFirst() throws Exception {
+    public void testReadTimedOutNoOpNotFirst() {
         idleHandler.readTimedOut(mockChHndlrCtx);
         idleHandler.readTimedOut(mockChHndlrCtx);
 
index f5ddbd8b53029d22923cec3104e1b5e63216a813..b55c94de5e15e9db377923a63c794e1a376138f4 100644 (file)
@@ -38,7 +38,7 @@ public class OFDatagramPacketDecoderTest {
     }
 
     @Test
-    public void test() throws Exception {
+    public void test() {
         OFDatagramPacketDecoder decoder = new OFDatagramPacketDecoder();
         decoder.setDeserializationFactory(deserializationFactory);
         msgWrapper = new VersionMessageUdpWrapper(EncodeConstants.OF13_VERSION_ID, messageBufferMock,
index e7741225d6ad6438e70d1d252e8dc64d5f98fd65..aab7b54389700fd498415bc3bcb72e5228de18ba 100644 (file)
@@ -49,7 +49,7 @@ public class OFDatagramPacketHandlerTest {
      * Test {@link OFDatagramPacketHandler}.
      */
     @Test
-    public void test() throws Exception {
+    public void test() {
         OFDatagramPacketHandler handler = new OFDatagramPacketHandler(switchConnHandler, CHANNEL_OUTBOUND_QUEUE_SIZE);
         byte version = EncodeConstants.OF13_VERSION_ID;
         ByteBuf messageBuffer = ByteBufUtils.hexStringToByteBuf("04 02 00 08 01 02 03 04");
index da6a108b979e45322eac380fbb0986da02c6641d..7afd5993c6ce9d38f9b0ba32387961843146fb5e 100644 (file)
@@ -70,7 +70,7 @@ public class OFDecoderStatisticsTest {
      * Test decode success counter.
      */
     @Test
-    public void testDecodeSuccesfullCounter() throws Exception {
+    public void testDecodeSuccesfullCounter() {
         if (!statCounters.isCounterEnabled(CounterEventTypes.US_DECODE_SUCCESS)) {
             Assert.fail("Counter " + CounterEventTypes.US_DECODE_SUCCESS + " is not enable");
         }
@@ -103,7 +103,7 @@ public class OFDecoderStatisticsTest {
      * Test fail decode counter.
      */
     @Test
-    public void testDecodeFailCounter() throws Exception {
+    public void testDecodeFailCounter() {
         if (!statCounters.isCounterEnabled(CounterEventTypes.US_DECODE_SUCCESS)) {
             Assert.fail("Counter " + CounterEventTypes.US_DECODE_SUCCESS + " is not enable");
         }
index a36b72917a89b9d5225577eeb0c00a640fc83213..090ab2dc5e3ac92e7757aefb6c77f726d06b52ea 100644 (file)
@@ -55,7 +55,7 @@ public class OFDecoderTest {
     }
 
     @Test
-    public void testDecode() throws Exception {
+    public void testDecode() {
         when(mockDeserializationFactory.deserialize(any(ByteBuf.class), anyShort())).thenReturn(mockDataObject);
 
         ofDecoder.decode(mockChHndlrCtx, inMsg, outList);
@@ -66,7 +66,7 @@ public class OFDecoderTest {
     }
 
     @Test
-    public void testDecodeDeserializeException() throws Exception {
+    public void testDecodeDeserializeException() {
         when(mockDeserializationFactory.deserialize(any(ByteBuf.class), anyShort()))
                 .thenThrow(new IllegalArgumentException());
 
@@ -78,7 +78,7 @@ public class OFDecoderTest {
     }
 
     @Test
-    public void testDecodeDeserializeNull() throws Exception {
+    public void testDecodeDeserializeNull() {
         when(mockDeserializationFactory.deserialize(any(ByteBuf.class), anyShort())).thenReturn(null);
 
         ofDecoder.decode(mockChHndlrCtx, inMsg, outList);
index b21f1a16c3f490387d4721f626235dbd168ad83c..bdc7de6abb8c137bfe0cabfbb67936c4ee757a5d 100644 (file)
@@ -56,7 +56,7 @@ public class OFFrameDecoderTest {
      * {@link OFFrameDecoder#decode(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, java.util.List)}.
      */
     @Test
-    public void testDecode8BMessage() throws Exception {
+    public void testDecode8BMessage() {
         decoder.decode(channelHandlerContext,
                     ByteBufUtils.hexStringToByteBuf("04 00 00 08 00 00 00 01"),
                     list);
@@ -68,7 +68,7 @@ public class OFFrameDecoderTest {
      * {@link OFFrameDecoder#decode(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, java.util.List)}.
      */
     @Test
-    public void testDecode16BMessage() throws Exception {
+    public void testDecode16BMessage() {
         ByteBuf byteBuffer = ByteBufUtils
                 .hexStringToByteBuf("04 00 00 10 00 00 00 00 00 00 00 00 00 00 00 42");
 
@@ -83,7 +83,7 @@ public class OFFrameDecoderTest {
      * {@link OFFrameDecoder#decode(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, java.util.List)}.
      */
     @Test
-    public void testDecode5BIncompleteMessage() throws Exception {
+    public void testDecode5BIncompleteMessage() {
         ByteBuf byteBuffer = ByteBufUtils.hexStringToByteBuf("04 00 00 08 00");
 
         decoder.decode(channelHandlerContext, byteBuffer, list);
@@ -97,7 +97,7 @@ public class OFFrameDecoderTest {
      * {@link OFFrameDecoder#decode(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, java.util.List)}.
      */
     @Test
-    public void testDecode16BIncompleteMessage() throws Exception {
+    public void testDecode16BIncompleteMessage() {
         ByteBuf byteBuffer = ByteBufUtils
                 .hexStringToByteBuf("04 00 00 11 00 00 00 00 00 00 00 00 00 00 00 42");
 
@@ -112,7 +112,7 @@ public class OFFrameDecoderTest {
      * {@link OFFrameDecoder#decode(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, java.util.List)}.
      */
     @Test
-    public void testDecodeCompleteAndPartialMessage() throws Exception {
+    public void testDecodeCompleteAndPartialMessage() {
         ByteBuf byteBuffer = ByteBufUtils
                 .hexStringToByteBuf("04 00 00 08 00 00 00 01 04 00 00 08 00");
 
@@ -125,7 +125,7 @@ public class OFFrameDecoderTest {
     }
 
     @Test
-    public void testExceptionCaught() throws Exception {
+    public void testExceptionCaught() {
         decoder.exceptionCaught(channelHandlerContext, new Throwable());
     }
 
@@ -134,7 +134,7 @@ public class OFFrameDecoderTest {
      * {@link OFFrameDecoder#decode(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, java.util.List)}.
      */
     @Test
-    public void testDecode8BMessageWithTls() throws Exception {
+    public void testDecode8BMessageWithTls() {
         decoder = new OFFrameDecoder(connectionFacade, true);
 
         decoder.decode(channelHandlerContext,
index 0057f0a3c4a1f30e4018cf085a9025102ba5a622..ac7ab53e26e9a16a2548b762a23ee15be84cf7c3 100644 (file)
@@ -43,7 +43,7 @@ public class SslContextFactoryTest {
     }
 
     @Test
-    public void testGetServerContext() throws Exception {
+    public void testGetServerContext() {
         SSLContext context  = sslContextFactory.getServerContext() ;
 
         assertNotNull(context);
index 8bbb0bc58558d4b4871de2fa13c97db2fe2bcaff..13441ab077f99bd0bb1f0a93b2b5d664a0ef8afd 100644 (file)
@@ -197,7 +197,7 @@ public class TcpHandlerTest {
         assertEquals("shutdown failed", true, shutdownRet.get());
     }
 
-    private Boolean startupServer(boolean isEpollEnabled) throws InterruptedException, IOException, ExecutionException {
+    private Boolean startupServer(boolean isEpollEnabled) throws InterruptedException {
         ListenableFuture<Boolean> online = tcpHandler.getIsOnlineFuture();
         /**
          * Test EPoll based native transport if isEpollEnabled is true.
index 33e3ad7bf11ea095176ad3ca59af26235bc87622..4c412d8a85e07cb8e61f1ef2ab067ac1212a1e17 100644 (file)
@@ -123,7 +123,7 @@ public class ChannelOutboundQueue02Test {
     private class EmbededChannelHandler extends ChannelOutboundHandlerAdapter {
         @Override
         public void write(final ChannelHandlerContext ctx, final Object msg,
-                final ChannelPromise promise) throws Exception {
+                final ChannelPromise promise) {
             if (msg instanceof MessageListenerWrapper) {
                 counter++;
             }
index 90282c163544fb2edc857f1b92b9650d5d2e1462..d9beb94582fb09ea0babf16e1032353d3ee8dfe6 100644 (file)
@@ -193,7 +193,7 @@ public class ConnectionAdapterImp02lTest {
     private class EmbededChannelHandler extends ChannelOutboundHandlerAdapter {
         @Override
         public void write(final ChannelHandlerContext ctx, final Object msg,
-                final ChannelPromise promise) throws Exception {
+                final ChannelPromise promise) {
             responseOfCall = null;
             if (msg instanceof MessageListenerWrapper) {
                 final MessageListenerWrapper listener = (MessageListenerWrapper) msg;
index 684196942f07186e4e1ba88217470792c3f90ec7..0ff43eeeaed94e9dafa7920d1f2dc5a8825bebe1 100644 (file)
@@ -193,7 +193,7 @@ public class ConnectionAdapterImpl02Test {
     private class EmbededChannelHandler extends ChannelOutboundHandlerAdapter {
         @Override
         public void write(final ChannelHandlerContext ctx, final Object msg,
-                final ChannelPromise promise) throws Exception {
+                final ChannelPromise promise) {
             responseOfCall = null;
             if (msg instanceof MessageListenerWrapper) {
                 final MessageListenerWrapper listener = (MessageListenerWrapper) msg;
index 4ccf3c9fe3ce94d672769e4692d93f829fca8bbf..a494b22515155c9256a8b585fac4061464750f7e 100644 (file)
@@ -53,7 +53,7 @@ public class OutboundQueueEntryTest {
     private final OfHeader flowRemoved = new FlowRemovedMessageBuilder().setVersion(VERSION).setXid(VALUE).build();
 
     @Test
-    public void commit() throws Exception {
+    public void commit() {
         outboundQueueEntry.commit(ofHeader, futureCallback);
         Assert.assertTrue(outboundQueueEntry.isCommitted());
         Assert.assertFalse(outboundQueueEntry.isCompleted());
@@ -61,7 +61,7 @@ public class OutboundQueueEntryTest {
     }
 
     @Test
-    public void reset() throws Exception {
+    public void reset() {
         outboundQueueEntry.commit(ofHeader, futureCallback);
         Assert.assertTrue(outboundQueueEntry.isCommitted());
 
@@ -70,33 +70,33 @@ public class OutboundQueueEntryTest {
     }
 
     @Test
-    public void isBarrier() throws Exception {
+    public void isBarrier() {
         outboundQueueEntry.commit(barrierInput, futureCallback);
         Assert.assertTrue(outboundQueueEntry.isBarrier());
     }
 
     @Test
-    public void takeMessage() throws Exception {
+    public void takeMessage() {
         outboundQueueEntry.commit(packetOutInput, futureCallback);
         outboundQueueEntry.takeMessage();
         Mockito.verify(futureCallback).onSuccess(Mockito.any());
     }
 
     @Test
-    public void complete() throws Exception {
+    public void complete() {
         final boolean result = outboundQueueEntry.complete(multipartReplyMessage);
         Assert.assertTrue(result);
         Assert.assertTrue(outboundQueueEntry.isCompleted());
     }
 
     @Test(expected = IllegalStateException.class)
-    public void completeTwice() throws Exception {
+    public void completeTwice() {
         outboundQueueEntry.complete(multipartReplyMessage);
         outboundQueueEntry.complete(multipartReplyMessage);
     }
 
     @Test
-    public void fail() throws Exception {
+    public void fail() {
         outboundQueueEntry.commit(ofHeader, futureCallback);
         outboundQueueEntry.fail(null);
         Mockito.verify(futureCallback).onFailure(Mockito.<OutboundQueueException>any());
@@ -107,7 +107,7 @@ public class OutboundQueueEntryTest {
     }
 
     @Test
-    public void test() throws Exception {
+    public void test() {
 
         final FutureCallback<OfHeader> result = new FutureCallback<OfHeader>() {
             @Override
index feeef65b4179898e34d6e3e67642dfc2d427cd59..949007051ab782a37010fd43d1e1461ad70689f1 100644 (file)
@@ -8,7 +8,6 @@
 package org.opendaylight.openflowjava.protocol.impl.core.connection;
 
 import com.google.common.util.concurrent.ListenableFuture;
-import java.io.IOException;
 import java.net.InetAddress;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
@@ -115,7 +114,7 @@ public class UdpHandlerTest {
     }
 
     private Boolean startupServer(final boolean isEpollEnabled)
-            throws InterruptedException, IOException, ExecutionException {
+            throws InterruptedException, ExecutionException {
         ListenableFuture<Boolean> online = udpHandler.getIsOnlineFuture();
         /**
          * Test EPoll based native transport if isEpollEnabled is true.
index 46873c5d5cc5b976aa05a45afddf5154489d26f8..5f6268e08fd4b20e6d479173e214cf8e3abd94f2 100644 (file)
@@ -70,7 +70,7 @@ public class FlowModInputMessageFactoryTest {
     }
 
     @Test
-    public void test() throws Exception {
+    public void test() {
         ByteBuf bb = BufferHelper.buildBuffer(
             "ff 01 04 01 06 00 07 01 ff 05 00 00 09 30 00 30 41 02 00 0c 00 00 00 7e 00 "
             + "00 00 02 00 00 11 46 00 00 00 62 00 0b 00 00 00 01 00 11 80 00 02 04 00 00 00 2a 80 00 12 01 04 00 "
index a5e39f1c2f42072d7e26483e6826ec4edf154463..f9032d6e87986d5e8c4fca3818554a31b57c10d0 100644 (file)
@@ -32,7 +32,7 @@ public class PortModInputMessageFactoryTest {
     private OFDeserializer<PortModInput> factory;
 
     @Before
-    public void startUp() throws Exception {
+    public void startUp() {
         DeserializerRegistry desRegistry = new DeserializerRegistryImpl();
         desRegistry.init();
         factory = desRegistry
@@ -40,7 +40,7 @@ public class PortModInputMessageFactoryTest {
     }
 
     @Test
-    public void test() throws Exception {
+    public void test() {
         ByteBuf bb = BufferHelper.buildBuffer(
                 "00 00 00 09 00 00 00 00 08 00 27 00 " + "b0 eb 00 00 00 00 00 24 00 00 00 41 00 00 01 10 00 00 00 00");
         PortModInput deserializedMessage = BufferHelper.deserialize(factory, bb);
index a87549dcf2b4130392fb3c8369aca2d6e1374f59..0e3020796a3c6afaf8375c58bc5f3d9a89d3fb97 100644 (file)
@@ -30,7 +30,7 @@ public class BarrierReplyMessageFactoryTest {
     private OFSerializer<BarrierOutput> factory;
 
     @Before
-    public void startUp() throws Exception {
+    public void startUp() {
         SerializerRegistry registry = new SerializerRegistryImpl();
         registry.init();
         factory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF13_VERSION_ID, BarrierOutput.class));
index 72d6d88bc48585482026b02c031eeb8adc6ccbbb..fd683b826bba871980bacd55b1668dc3fce58da5 100644 (file)
@@ -189,7 +189,7 @@ public class MultipartReplyMessageFactoryTest {
     private OFSerializer<MultipartReplyMessage> factory;
 
     @Before
-    public void startUp() throws Exception {
+    public void startUp() {
         SerializerRegistry registry = new SerializerRegistryImpl();
         registry.init();
         factory = registry
index 92c9d64bc9df7089c15431e000ec6a0e6d5d556c..33ce4ecd09fb0124906e112da9e2fd0426d69a42 100644 (file)
@@ -101,7 +101,7 @@ public class IntegrationTest {
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         switchConnectionProvider.close();
         LOGGER.debug("\n ending test -------------------------------");
     }
index a21eb5fcc0370fd694e38b29ff4b57f8db95398c..a7c83ade5606b0df2e97bf16d708905147d22160 100644 (file)
@@ -14,7 +14,6 @@ import com.google.common.collect.Lists;
 import com.google.common.primitives.UnsignedBytes;
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.UnpooledByteBufAllocator;
-import java.io.IOException;
 import java.nio.ByteBuffer;
 import java.nio.charset.StandardCharsets;
 import java.util.List;
@@ -395,7 +394,7 @@ public abstract class ByteBufUtils {
         return IetfYangUtil.INSTANCE.macAddressFor(tmp);
     }
 
-    public static byte[] serializeList(final List<Short> list) throws IOException {
+    public static byte[] serializeList(final List<Short> list) {
         ByteBuffer byteBuffer = ByteBuffer.allocate(list.size() * 2);
         for (Short shortValue : list) {
             byteBuffer.putShort(shortValue);
index 35589bf2b1b80762561b419a43af6e2e8abd2a4f..23a9bef5cf21c95f5af81222a261d1c7a10dda0d 100644 (file)
@@ -11,7 +11,6 @@ package org.opendaylight.openflowjava.util;
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
 import io.netty.buffer.UnpooledByteBufAllocator;
-import java.io.IOException;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
@@ -439,7 +438,7 @@ public class ByteBufUtilsTest {
     }
 
     @Test
-    public void testSerializeList() throws IOException {
+    public void testSerializeList() {
 
         List<Short> shorts = new ArrayList<>();
         shorts.add((short) 1);
@@ -451,7 +450,7 @@ public class ByteBufUtilsTest {
     }
 
     @Test
-    public void testUpdateHeader() throws IOException {
+    public void testUpdateHeader() {
         ByteBuf buffer = PooledByteBufAllocator.DEFAULT.buffer();
         buffer.writeInt(1);
         final int start = buffer.writerIndex();
index 13bfa51c42dbaa643fa12ee6664e899bc4f7b76a..d67e66fd1b24087cab12ade033b3ecf983da9580 100644 (file)
@@ -27,7 +27,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731
 public class ExperimenterDeserializerKeyFactoryTest {
 
     @Test
-    public void testCreateExperimenterErrorDeserializerKey() throws Exception {
+    public void testCreateExperimenterErrorDeserializerKey() {
         ExperimenterIdDeserializerKey createdKey;
         ExperimenterIdDeserializerKey comparationKey;
 
@@ -38,7 +38,7 @@ public class ExperimenterDeserializerKeyFactoryTest {
     }
 
     @Test
-    public void testCreateExperimenterMessageDeserializerKey() throws Exception {
+    public void testCreateExperimenterMessageDeserializerKey() {
         ExperimenterIdDeserializerKey createdKey;
         ExperimenterIdDeserializerKey comparationKey;
 
@@ -50,7 +50,7 @@ public class ExperimenterDeserializerKeyFactoryTest {
     }
 
     @Test
-    public void testCreateMultipartReplyMessageDeserializerKey() throws Exception {
+    public void testCreateMultipartReplyMessageDeserializerKey() {
         ExperimenterIdDeserializerKey createdKey;
         ExperimenterIdDeserializerKey comparationKey;
 
@@ -62,7 +62,7 @@ public class ExperimenterDeserializerKeyFactoryTest {
     }
 
     @Test
-    public void testCreateMultipartReplyTFDeserializerKey() throws Exception {
+    public void testCreateMultipartReplyTFDeserializerKey() {
         ExperimenterIdDeserializerKey createdKey;
         ExperimenterIdDeserializerKey comparationKey;
 
@@ -74,7 +74,7 @@ public class ExperimenterDeserializerKeyFactoryTest {
     }
 
     @Test
-    public void testCreateQueuePropertyDeserializerKey() throws Exception {
+    public void testCreateQueuePropertyDeserializerKey() {
         ExperimenterIdDeserializerKey createdKey;
         ExperimenterIdDeserializerKey comparationKey;
 
@@ -86,7 +86,7 @@ public class ExperimenterDeserializerKeyFactoryTest {
     }
 
     @Test
-    public void testCreateMeterBandDeserializerKey() throws Exception {
+    public void testCreateMeterBandDeserializerKey() {
         ExperimenterIdDeserializerKey createdKey;
         ExperimenterIdDeserializerKey comparationKey;
 
@@ -98,7 +98,7 @@ public class ExperimenterDeserializerKeyFactoryTest {
     }
 
     @Test
-    public void testCreateVendorMessageDeserializerKey() throws Exception {
+    public void testCreateVendorMessageDeserializerKey() {
         ExperimenterIdDeserializerKey createdKey;
         ExperimenterIdDeserializerKey comparationKey;
 
@@ -110,7 +110,7 @@ public class ExperimenterDeserializerKeyFactoryTest {
     }
 
     @Test
-    public void testCreateMultipartReplyVendorMessageDeserializerKey() throws Exception {
+    public void testCreateMultipartReplyVendorMessageDeserializerKey() {
         ExperimenterIdDeserializerKey createdKey;
         ExperimenterIdDeserializerKey comparationKey;
 
index 6b863c82cb69daa50f98c6a26f38961722346043..cd0f0b833d7e91b87dc68a4d55dbdda77cc6df88 100755 (executable)
@@ -27,7 +27,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731
 public class ExperimenterSerializerKeyFactoryTest {
 
     @Test
-    public void testCreateExperimenterMessageSerializerKey() throws Exception {
+    public void testCreateExperimenterMessageSerializerKey() {
         ExperimenterIdSerializerKey<?> createdKey;
         ExperimenterIdSerializerKey<?> comparationKey;
 
@@ -39,7 +39,7 @@ public class ExperimenterSerializerKeyFactoryTest {
     }
 
     @Test
-    public void testCreateMultipartRequestSerializerKey() throws Exception {
+    public void testCreateMultipartRequestSerializerKey() {
         ExperimenterIdSerializerKey<?> createdKey;
         ExperimenterIdSerializerKey<?> comparationKey;
 
@@ -51,7 +51,7 @@ public class ExperimenterSerializerKeyFactoryTest {
     }
 
     @Test
-    public void testCreateMultipartRequestTFSerializerKey() throws Exception {
+    public void testCreateMultipartRequestTFSerializerKey() {
         ExperimenterIdSerializerKey<?> createdKey;
         ExperimenterIdSerializerKey<?> comparationKey;
 
@@ -63,7 +63,7 @@ public class ExperimenterSerializerKeyFactoryTest {
     }
 
     @Test
-    public void testCreateMeterBandSerializerKey() throws Exception {
+    public void testCreateMeterBandSerializerKey() {
         ExperimenterIdSerializerKey<?> createdKey;
         ExperimenterIdSerializerKey<?> comparationKey;
 
@@ -75,7 +75,7 @@ public class ExperimenterSerializerKeyFactoryTest {
     }
 
     @Test
-    public void testCreateMeterBandSubTypeSerializerKey() throws Exception {
+    public void testCreateMeterBandSubTypeSerializerKey() {
         final ExperimenterIdSerializerKey<?> createdKey;
         final ExperimenterIdSerializerKey<?> comparationKey1;
         final ExperimenterIdSerializerKey<?> comparationKey2;
index 04fdff9df345c70586c3960dfc3f15c4632da1d0..f4f8cd8ae077a3652fdc477d98bd8a508e72dba4 100644 (file)
@@ -22,6 +22,6 @@ public interface DeviceConnectedHandler {
      * It propagates connected device's connection context.
      */
     ConnectionStatus deviceConnected(ConnectionContext connectionContext)
-            throws Exception;
+    ;
 
 }
index 55397427a1c619d97751135906c5c66aa297edab..413dd8ee2113528c7ed1a519c8b999ccecaaf490 100644 (file)
@@ -59,6 +59,6 @@ public interface ContextChainHolder extends
     ContextChain getContextChain(DeviceInfo deviceInfo);
 
     @Override
-    void close() throws Exception;
+    void close();
 
 }
index 067b5899a562af1e92917fd02561b9a00dfe0fe0..9375ba5b89aae0fedd93c0fcd30ccae17a67a88c 100644 (file)
@@ -47,7 +47,7 @@ public class SimpleTaskRetryLooperTest {
             private int counter = 0;
 
             @Override
-            public String call() throws Exception {
+            public String call() {
                 counter++;
                 if (counter < retryCountToSucceed) {
                     throw new IllegalStateException("service is not ready");
index 9d2424244da7f840e2c109bdb43f450c7f38d173..95057657b6bd5fad6b317a879c69cdc1e788b7aa 100644 (file)
@@ -134,7 +134,7 @@ public class ConfigurationServiceFactoryImpl implements ConfigurationServiceFact
         }
 
         @Override
-        public void close() throws Exception {
+        public void close() {
             propertyMap.clear();
             listeners.clear();
         }
index e2107dfb73265d0df8be274324330ca1f64e991e..2e8a92e65f6b5ce12302a09095b15100cde4ba21 100644 (file)
@@ -168,7 +168,7 @@ public class HandshakeManagerImpl implements HandshakeManager {
         }
     }
 
-    private void stepByStepVersionSubStep(Short remoteVersion) throws Exception {
+    private void stepByStepVersionSubStep(Short remoteVersion) {
         if (remoteVersion >= lastProposedVersion) {
             postHandshake(lastProposedVersion, getNextXid());
             LOG.trace("ret - OK - switch answered with lastProposedVersion");
@@ -191,7 +191,7 @@ public class HandshakeManagerImpl implements HandshakeManager {
      * @param remoteVersion remote version
      * @throws Exception exception
      */
-    private void handleLowerVersionProposal(Short remoteVersion) throws Exception {
+    private void handleLowerVersionProposal(Short remoteVersion) {
         Short proposedVersion;
         // find the version from header version field
         proposedVersion = proposeNextVersion(remoteVersion);
@@ -212,7 +212,7 @@ public class HandshakeManagerImpl implements HandshakeManager {
      * @param elements version elements
      * @throws Exception exception
      */
-    private void handleVersionBitmapNegotiation(List<Elements> elements) throws Exception {
+    private void handleVersionBitmapNegotiation(List<Elements> elements) {
         final Short proposedVersion = proposeCommonBitmapVersion(elements);
         if (lastProposedVersion == null) {
             // first hello has not been sent yet
@@ -320,7 +320,7 @@ public class HandshakeManagerImpl implements HandshakeManager {
      * @param helloVersion initial hello version for openflow connection negotiation
      * @param helloXid     transaction id
      */
-    private ListenableFuture<Void> sendHelloMessage(Short helloVersion, final Long helloXid) throws Exception {
+    private ListenableFuture<Void> sendHelloMessage(Short helloVersion, final Long helloXid) {
 
 
         HelloInput helloInput = MessageFactory.createHelloInput(helloVersion, helloXid, versionOrder);
index c44a2605bb375cb0e898e34c09b81a21a685f7eb..35ebc0332356dbf5097d58790add38b01cb248d5 100644 (file)
@@ -59,7 +59,6 @@ import org.opendaylight.openflowplugin.common.txchain.TransactionChainManager;
 import org.opendaylight.openflowplugin.extension.api.ConvertorMessageFromOFJava;
 import org.opendaylight.openflowplugin.extension.api.ExtensionConverterProviderKeeper;
 import org.opendaylight.openflowplugin.extension.api.core.extension.ExtensionConverterProvider;
-import org.opendaylight.openflowplugin.extension.api.exception.ConversionException;
 import org.opendaylight.openflowplugin.extension.api.path.MessagePath;
 import org.opendaylight.openflowplugin.impl.datastore.MultipartWriterProvider;
 import org.opendaylight.openflowplugin.impl.datastore.MultipartWriterProviderFactory;
@@ -472,17 +471,13 @@ public class DeviceContextImpl implements DeviceContext, ExtensionConverterProvi
             }
             // build notification
             final ExperimenterMessageOfChoice messageOfChoice;
-            try {
-                messageOfChoice = messageConverter.convert(vendorData, MessagePath.MESSAGE_NOTIFICATION);
-                final ExperimenterMessageFromDevBuilder experimenterMessageFromDevBld = new
-                        ExperimenterMessageFromDevBuilder()
-                        .setNode(new NodeRef(getDeviceInfo().getNodeInstanceIdentifier()))
-                        .setExperimenterMessageOfChoice(messageOfChoice);
-                // publish
-                notificationPublishService.offerNotification(experimenterMessageFromDevBld.build());
-            } catch (final ConversionException e) {
-                LOG.error("Conversion of experimenter notification failed", e);
-            }
+            messageOfChoice = messageConverter.convert(vendorData, MessagePath.MESSAGE_NOTIFICATION);
+            final ExperimenterMessageFromDevBuilder experimenterMessageFromDevBld = new
+                    ExperimenterMessageFromDevBuilder()
+                    .setNode(new NodeRef(getDeviceInfo().getNodeInstanceIdentifier()))
+                    .setExperimenterMessageOfChoice(messageOfChoice);
+            // publish
+            notificationPublishService.offerNotification(experimenterMessageFromDevBld.build());
         } else {
             LOG.debug("Controller is not owner of the device {}, skipping experimenter message",
                     deviceInfo.getLOGValue());
index a58944b5c3bde607bda9c357ad17f709d7bcfc92..5dcc22613acbec67a55d1d9a114308fcdb8cd122 100644 (file)
@@ -18,7 +18,7 @@ import org.opendaylight.openflowplugin.impl.OpenFlowPluginProviderImpl;
 public class ClearStatsCommandProvider extends OsgiCommandSupport {
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         final MessageIntelligenceAgency messageIntelligenceAgency =
                 OpenFlowPluginProviderImpl.getMessageIntelligenceAgency();
         messageIntelligenceAgency.resetStatistics();
index cf093f364bb8c6aeb8cbcbe39c7f6f28cff07119..7cd5adb3e0d23bbbd192b5c59cb3ab4aaa7edc43 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.openflowplugin.impl.statistics.ofpspecific.EventsTimeCou
 public class ResetEventTimesComandProvider extends OsgiCommandSupport {
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         PrintStream out = session.getConsole();
         EventsTimeCounter.resetAllCounters();
         out.print("Events time counters reset.\n");
index e1071a75389a2ed225d7adcf0f3b9d4eb4e52a86..db383c6af413e7cacee7e5f2d44ef330eb0f216b 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.openflowplugin.impl.statistics.ofpspecific.SessionStatis
 public class ResetSessionStatsComandProvider extends OsgiCommandSupport {
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         PrintStream out = session.getConsole();
         SessionStatistics.resetAllCounters();
         out.print("Session statistics counters reset.\n");
index 751a6e5400b73175172bfc06bd0cdb5fe2aed1b8..1374857800d1fe456b9b308c50c58ac4bffca599 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.openflowplugin.impl.statistics.ofpspecific.EventsTimeCou
 public class ShowEventTimesComandProvider extends OsgiCommandSupport {
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         PrintStream out = session.getConsole();
         final List<String> statistics = EventsTimeCounter.provideTimes();
         final StringBuilder result = new StringBuilder();
index 732957cc6d1b95043fe603e10394723e7da7c551..0187ec61d51577f17cb00cf9418ea2b2826e5d04 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.openflowplugin.impl.statistics.ofpspecific.SessionStatis
 public class ShowSessionStatsCommandProvider extends OsgiCommandSupport {
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         PrintStream out = session.getConsole();
         final List<String> statistics = SessionStatistics.provideStatistics();
         final StringBuilder result = new StringBuilder();
index cec18ba2ecafe36425fb21fdc1b8e44a91f7f417..3d8307e6cb81cb6e83ea5118520575f0fc837412 100644 (file)
@@ -19,7 +19,7 @@ import org.opendaylight.openflowplugin.impl.OpenFlowPluginProviderImpl;
 public class ShowStatsCommandProvider extends OsgiCommandSupport {
 
     @Override
-    protected Object doExecute() throws Exception {
+    protected Object doExecute() {
         PrintStream out = session.getConsole();
         final MessageIntelligenceAgency messageIntelligenceAgency =
                 OpenFlowPluginProviderImpl.getMessageIntelligenceAgency();
index cacf01e3c29143658ac4b6a3ae7314de6313bf34..a2260a59b0f33b82cce6eaf509f1fe34a31065a1 100644 (file)
@@ -144,7 +144,7 @@ public class ContextChainHolderImpl implements ContextChainHolder, MasterChecker
     }
 
     @Override
-    public ConnectionStatus deviceConnected(final ConnectionContext connectionContext) throws Exception {
+    public ConnectionStatus deviceConnected(final ConnectionContext connectionContext) {
         final DeviceInfo deviceInfo = connectionContext.getDeviceInfo();
         final ContextChain contextChain = contextChainMap.get(deviceInfo);
         final FeaturesReply featuresReply = connectionContext.getFeatures();
@@ -269,7 +269,7 @@ public class ContextChainHolderImpl implements ContextChainHolder, MasterChecker
     }
 
     @Override
-    public void close() throws Exception {
+    public void close() {
         Map<DeviceInfo, ContextChain> copyOfChains = new HashMap<>(contextChainMap);
         copyOfChains.keySet().forEach(this::destroyContextChain);
         copyOfChains.clear();
index 1fe6e35f2699e10bdea3737cceadaff7785c4c11..67f599f517d5305395a4b656641a552e920a0ac2 100644 (file)
@@ -17,7 +17,6 @@ import org.opendaylight.openflowjava.protocol.api.keys.MessageTypeKey;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.util.ExperimenterDeserializerKeyFactory;
 import org.opendaylight.openflowplugin.extension.api.ConvertorMessageFromOFJava;
-import org.opendaylight.openflowplugin.extension.api.exception.ConversionException;
 import org.opendaylight.openflowplugin.extension.api.path.MessagePath;
 import org.opendaylight.openflowplugin.openflow.md.core.session.OFSessionUtil;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.multipart.types.rev170112.multipart.reply.MultipartReplyBody;
@@ -59,11 +58,7 @@ public class MultipartReplyExperimenterDeserializer implements OFDeserializer<Mu
                     .getExtensionConvertorProvider()
                     .getMessageConverter(key);
 
-            try {
-                builder.setExperimenterMessageOfChoice(convertor.convert(data, MessagePath.MPMESSAGE_RPC_OUTPUT));
-            } catch (ConversionException ce) {
-                LOG.debug("Failed to deserialize multipart reply experimenter for key: {}", key);
-            }
+            builder.setExperimenterMessageOfChoice(convertor.convert(data, MessagePath.MPMESSAGE_RPC_OUTPUT));
         }
 
         return builder.build();
index b0334fb0f64067122c10bf81a75ce111b43eb9ed..8951e2b4def1bf6073d12759165e45ad5e149196 100644 (file)
@@ -10,7 +10,6 @@ package org.opendaylight.openflowplugin.impl.services;
 import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.EchoInputBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.EchoOutput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;
@@ -21,7 +20,7 @@ public class EchoService extends AbstractSimpleService<EchoInputBuilder, EchoOut
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final EchoInputBuilder input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final EchoInputBuilder input) {
         return input
                 .setXid(xid.getValue())
                 .setVersion(getVersion())
index 0bee9905e51e0eca5fe66938ae96cfb141c8f04a..c00735ca07728caeca8e855c81f83c351b2f2b34 100644 (file)
@@ -21,7 +21,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.role.RoleChangeException;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.util.ErrorUtil;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.TransactionId;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.ControllerRole;
@@ -50,7 +49,7 @@ public class RoleService extends AbstractSimpleService<RoleRequestInputBuilder,
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final RoleRequestInputBuilder input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final RoleRequestInputBuilder input) {
         input.setXid(xid.getValue());
         return input.build();
     }
index 9ae6bb94fb30ce5ca4a50bbcf4f9cc1c3785fe83..01ccc72532c9579d392e5239e4ddbe15e486d259 100644 (file)
@@ -24,7 +24,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.api.openflow.md.core.TranslatorKey;
 import org.opendaylight.openflowplugin.impl.services.AbstractAggregateFlowMultipartService;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.util.FlowCreatorUtil;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.data.VersionConvertorData;
@@ -62,8 +61,7 @@ public class MultiLayerAggregateFlowMultipartService extends AbstractAggregateFl
 
     @Override
     protected OfHeader buildRequest(final Xid xid,
-                                    final GetAggregateFlowStatisticsFromFlowTableForGivenMatchInput input) throws
-            ServiceException {
+                                    final GetAggregateFlowStatisticsFromFlowTableForGivenMatchInput input) {
         final MultipartRequestAggregateCaseBuilder multipartRequestAggregateCaseBuilder
                 = new MultipartRequestAggregateCaseBuilder();
         final MultipartRequestAggregateBuilder mprAggregateRequestBuilder = new MultipartRequestAggregateBuilder();
index 29e59d10596477f6662dd8fb030705717eb86e3b..031c9906ed1fa96d93ef743b5e074be0b9d719ee 100644 (file)
@@ -134,20 +134,12 @@ public class MultiLayerExperimenterMultipartService extends AbstractExperimenter
                                         .withError(ErrorType.RPC, "Custom converter not found.").build());
                                 return;
                             }
-                            try {
-                                final ExperimenterMessageOfChoice messageOfChoice =
-                                        messageConverter.convert(vendorData, MessagePath.MPMESSAGE_RPC_OUTPUT);
-                                final ExperimenterCoreMessageItemBuilder expCoreMessageItemBuilder =
-                                        new ExperimenterCoreMessageItemBuilder();
-                                expCoreMessageItemBuilder.setExperimenterMessageOfChoice(messageOfChoice);
-                                expCoreMessageItem.add(expCoreMessageItemBuilder.build());
-                            } catch (final ConversionException e) {
-                                LOG.error("Conversion of experimenter message reply failed. Exception: {}", e);
-                                finalFuture.set(RpcResultBuilder.<SendExperimenterMpRequestOutput>failed()
-                                        .withError(ErrorType.RPC,
-                                                   "Conversion of experimenter rpc output failed.").build());
-                                return;
-                            }
+                            final ExperimenterMessageOfChoice messageOfChoice =
+                                    messageConverter.convert(vendorData, MessagePath.MPMESSAGE_RPC_OUTPUT);
+                            final ExperimenterCoreMessageItemBuilder expCoreMessageItemBuilder =
+                                    new ExperimenterCoreMessageItemBuilder();
+                            expCoreMessageItemBuilder.setExperimenterMessageOfChoice(messageOfChoice);
+                            expCoreMessageItem.add(expCoreMessageItemBuilder.build());
                         }
                         sendExpMpReqOutputBuilder.setExperimenterCoreMessageItem(expCoreMessageItem);
                         finalFuture.set(RpcResultBuilder.success(sendExpMpReqOutputBuilder.build()).build());
index 10d88f9a5773ecb84bb9830d8cb5dedfb1221a2c..ccf0281829e1af2acb23cb1d1a3c1f86673a3c74 100644 (file)
@@ -22,7 +22,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSimpleService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.data.VersionDatapathIdConvertorData;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.Flow;
@@ -49,7 +48,7 @@ public final class MultiLayerFlowService<O extends DataObject> extends AbstractS
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final FlowModInputBuilder input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final FlowModInputBuilder input) {
         input.setXid(xid.getValue());
         return input.build();
     }
index c942676852bdbe2ed8957d7f756b4c4d72236146..44fee1ce0d0649818bb519382b0e1b4850f7fdf6 100644 (file)
@@ -12,7 +12,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSimpleService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.GroupConvertor;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.data.VersionDatapathIdConvertorData;
@@ -36,7 +35,7 @@ public final class MultiLayerGroupService<I extends Group, O extends DataObject>
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final I input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final I input) {
         final Optional<GroupModInputBuilder> ofGroupModInput = convertorExecutor.convert(input, data);
 
         final GroupModInputBuilder groupModInputBuilder = ofGroupModInput
index 0a09f08cfeaa915a9f9dc6911d0fc56d4e812f37..112bd5148ccbd7a7607657415e7effc9d68bf11d 100644 (file)
@@ -12,7 +12,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSimpleService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.MeterConvertor;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.data.VersionConvertorData;
@@ -36,7 +35,7 @@ public final class MultiLayerMeterService<I extends Meter, O extends DataObject>
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final I input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final I input) {
         final Optional<MeterModInputBuilder> ofMeterModInput = convertorExecutor.convert(input, data);
         final MeterModInputBuilder meterModInputBuilder = ofMeterModInput
                 .orElse(MeterConvertor.defaultResult(getVersion()));
index ba8b8a38c188798b93d99e101876964409f6507e..2d0cd7a5b6ff350f09976a732346b0b8d30edc31 100644 (file)
@@ -25,7 +25,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.datastore.MultipartWriterProvider;
 import org.opendaylight.openflowplugin.impl.services.AbstractTableMultipartService;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.data.VersionConvertorData;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.TransactionId;
@@ -63,7 +62,7 @@ public class MultiLayerTableMultipartService extends AbstractTableMultipartServi
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final UpdateTableInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final UpdateTableInput input) {
         final Optional<List<org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart
                 .request.multipart.request.body.multipart.request.table.features._case.multipart.request
                 .table.features.TableFeatures>> tableFeatures =
index 1259aeb5a7f5446bf58f8c68b47a5129a869a99f..37d95d9b63dbe51e01a8320f4c6409c06e860b8c 100644 (file)
@@ -12,7 +12,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSimpleService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.FlowCapableTransactionService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.SendBarrierInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.SendBarrierOutput;
@@ -33,7 +32,7 @@ public class FlowCapableTransactionServiceImpl extends AbstractSimpleService<Sen
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final SendBarrierInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final SendBarrierInput input) {
         final BarrierInputBuilder barrierInputOFJavaBuilder = new BarrierInputBuilder();
         barrierInputOFJavaBuilder.setVersion(getVersion());
         barrierInputOFJavaBuilder.setXid(xid.getValue());
index 097960e0bdf3ad76bfc24ce6e6083bef46cc7cfe..7a43f212beb7f62e1933d963cc2e91e786591e0f 100644 (file)
@@ -12,7 +12,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSimpleService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.module.config.rev141015.NodeConfigService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.module.config.rev141015.SetConfigInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.module.config.rev141015.SetConfigOutput;
@@ -33,7 +32,7 @@ public final class NodeConfigServiceImpl extends AbstractSimpleService<SetConfig
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final SetConfigInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final SetConfigInput input) {
         SetConfigInputBuilder builder = new SetConfigInputBuilder();
         SwitchConfigFlag flag = SwitchConfigFlag.valueOf(input.getFlag());
 
index dea40a78f39befd820fa30311f267de6012025a7..699a75dfadb59d881bf800bcb9e44caa33a91018 100644 (file)
@@ -13,7 +13,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSimpleService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.PacketOutConvertor;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.data.XidConvertorData;
@@ -42,7 +41,7 @@ public final class PacketProcessingServiceImpl extends AbstractSimpleService<Tra
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final TransmitPacketInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final TransmitPacketInput input) {
         final XidConvertorData data = new XidConvertorData(getVersion());
         data.setDatapathId(getDatapathId());
         data.setXid(xid.getValue());
index 159ccc6cedca7d3ebd72560807a2dab429f30e6d..865c74f59cb635c968caa2898342bb47fd6b598f 100644 (file)
@@ -14,7 +14,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSimpleService;
 import org.opendaylight.openflowplugin.impl.services.singlelayer.SingleLayerPortService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.PortConvertor;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.data.VersionConvertorData;
@@ -50,7 +49,7 @@ public final class SalPortServiceImpl
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final UpdatePortInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final UpdatePortInput input) {
         final Optional<PortModInput> ofPortModInput = convertorExecutor
             .convert(getPortFromInput(input), data);
 
index 7175483ee5930b3e4998b6e5433cdd9fe2a62d1d..15079311a25f302cce8a0b99bc34ae9ea6a6f3b9 100644 (file)
@@ -20,7 +20,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSimpleService;
 import org.opendaylight.openflowplugin.impl.services.RoleService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.RoleRequestOutput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.role.service.rev150727.OfpRole;
@@ -48,7 +47,7 @@ public final class SalRoleServiceImpl extends AbstractSimpleService<SetRoleInput
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final SetRoleInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final SetRoleInput input) {
         return null;
     }
 
index cb24aa446b555999001d096a104bb614c6306fe4..700eb0f78396ff09c0492088b77c6acf6feedf05 100644 (file)
@@ -17,7 +17,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractAggregateFlowMultipartService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.GetAggregateFlowStatisticsFromFlowTableForGivenMatchInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.GetAggregateFlowStatisticsFromFlowTableForGivenMatchOutput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.GetAggregateFlowStatisticsFromFlowTableForGivenMatchOutputBuilder;
@@ -41,8 +40,7 @@ public class SingleLayerAggregateFlowMultipartService
 
     @Override
     protected OfHeader buildRequest(final Xid xid,
-                                    final GetAggregateFlowStatisticsFromFlowTableForGivenMatchInput input)
-                                    throws ServiceException {
+                                    final GetAggregateFlowStatisticsFromFlowTableForGivenMatchInput input) {
         return new MultipartRequestBuilder()
                 .setXid(xid.getValue())
                 .setVersion(getVersion())
index 493d98056081e6326a02366d0c6984d47dcc83df..087e1a1a944273b1914dfc6695a098eab0466167 100644 (file)
@@ -21,7 +21,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.extension.api.core.extension.ExtensionConverterProvider;
 import org.opendaylight.openflowplugin.impl.services.AbstractExperimenterMultipartService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.experimenter.mp.message.service.rev151020.SendExperimenterMpRequestInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.experimenter.mp.message.service.rev151020.SendExperimenterMpRequestOutput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.experimenter.mp.message.service.rev151020.SendExperimenterMpRequestOutputBuilder;
@@ -46,7 +45,7 @@ public class SingleLayerExperimenterMultipartService extends AbstractExperimente
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final SendExperimenterMpRequestInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final SendExperimenterMpRequestInput input) {
         return new MultipartRequestBuilder()
             .setXid(xid.getValue())
             .setVersion(getVersion())
index 4ef795644059ebcb3bc9c4982142f7de8fa56ad0..d4bb8e9eae58a15fedd45937ee3c5465d0f4a25d 100644 (file)
@@ -12,7 +12,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSilentErrorService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.AddFlowInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.RemoveFlowInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.flow.update.OriginalFlow;
@@ -32,7 +31,7 @@ public final class SingleLayerFlowService<O extends DataObject> extends Abstract
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final Flow input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final Flow input) {
         final FlowMessageBuilder flowMessageBuilder = new FlowMessageBuilder(input);
         final Class<? extends DataContainer> clazz = input.getImplementedInterface();
 
index 69f09448a35a2c28cb608ac4a20debfb7cc7c77b..1e89489b2d015ed8fd026a41d1ff38ce56a7493a 100644 (file)
@@ -12,7 +12,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSimpleService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.async.config.service.rev170619.AsyncConfigMessage;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.async.config.service.rev170619.GetAsyncInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetAsyncInputBuilder;
@@ -26,7 +25,7 @@ public class SingleLayerGetAsyncConfigService extends AbstractSimpleService<GetA
     }
 
     @Override
-    protected OfHeader buildRequest(Xid xid, GetAsyncInput input) throws ServiceException {
+    protected OfHeader buildRequest(Xid xid, GetAsyncInput input) {
         return new GetAsyncInputBuilder().setVersion(getVersion()).setXid(xid.getValue()).build();
     }
 }
\ No newline at end of file
index 0779c409d8bb04f3d0a1e59da7a814ff83547748..86aa614b795fcd26da99389d5c7b973b08420f2f 100644 (file)
@@ -12,7 +12,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSimpleService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.AddGroupInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.RemoveGroupInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.group.update.OriginalGroup;
@@ -34,7 +33,7 @@ public final class SingleLayerGroupService<O extends DataObject> extends Abstrac
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final Group input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final Group input) {
         final GroupMessageBuilder groupMessageBuilder = new GroupMessageBuilder(input);
         final Class<? extends DataContainer> clazz = input.getImplementedInterface();
 
index 1b80d932c4d82d1c5dfda7a4849c22748c3ecd30..05900d7003ce0b2053f28e4f70b8a2108bcf6d02 100644 (file)
@@ -12,7 +12,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSilentErrorService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.AddMeterInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.RemoveMeterInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.meter.update.OriginalMeter;
@@ -34,7 +33,7 @@ public final class SingleLayerMeterService<O extends DataObject> extends Abstrac
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final Meter input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final Meter input) {
         final MeterMessageBuilder meterMessageBuilder = new MeterMessageBuilder(input);
         final Class<? extends DataContainer> clazz = input.getImplementedInterface();
 
index 34aa509522311cd9ae8562a891bd5d0ffb622678..c6eceee0d95a29b8c88b4fa5abf32cd428c89959 100644 (file)
@@ -12,7 +12,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSimpleService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.port.rev130925.CommonPortWithMask;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.port.rev130925.PortMessageBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;
@@ -28,7 +27,7 @@ public final class SingleLayerPortService<O extends DataObject> extends Abstract
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final CommonPortWithMask input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final CommonPortWithMask input) {
         return new PortMessageBuilder(input)
                 .setVersion(getVersion())
                 .setXid(xid.getValue())
index 0e4f9971a56237c808a8a58df3e7230130090d7c..bbfc248cb8eb85376b5f7f75453ca7438f3e4513 100644 (file)
@@ -12,7 +12,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.AbstractSimpleService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.async.config.service.rev170619.AsyncConfigMessageBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.async.config.service.rev170619.SetAsyncInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.async.config.service.rev170619.SetAsyncOutput;
@@ -26,7 +25,7 @@ public class SingleLayerSetAsyncConfigService extends AbstractSimpleService<SetA
     }
 
     @Override
-    protected OfHeader buildRequest(Xid xid, SetAsyncInput input) throws ServiceException {
+    protected OfHeader buildRequest(Xid xid, SetAsyncInput input) {
         return new AsyncConfigMessageBuilder(input)
                 .setVersion(getVersion())
                 .setXid(xid.getValue())
index 5114b5ef71db2943cd50009ad129a656191486c9..38704adbd343403d4340e2aa489a0fb3384ae50c 100644 (file)
@@ -22,7 +22,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.datastore.MultipartWriterProvider;
 import org.opendaylight.openflowplugin.impl.services.AbstractTableMultipartService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.TransactionId;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.multipart.types.rev170112.MultipartReply;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.multipart.types.rev170112.MultipartRequestBuilder;
@@ -50,7 +49,7 @@ public class SingleLayerTableMultipartService extends AbstractTableMultipartServ
 
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final UpdateTableInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final UpdateTableInput input) {
         return new MultipartRequestBuilder()
                 .setXid(xid.getValue())
                 .setVersion(getVersion())
index bcda1a869fac27fce36896757b998baa1dd834ba..4c8a7f520d28be74b3f35bcaab0d2a4cf792c037 100644 (file)
@@ -47,7 +47,7 @@ public class StatisticsPollingService extends AbstractScheduledService {
     }
 
     @Override
-    protected void startUp() throws Exception {
+    protected void startUp() {
         counter.markStart();
     }
 
index 76a5fb29077ae84a7a5d182b2e9c8fbf09ec6277..b07c604e362f4e243fb9e66cfe97578c94d4e249 100644 (file)
@@ -18,7 +18,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.TranslatorLibrary;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.api.openflow.md.core.TranslatorKey;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.util.FlowCreatorUtil;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.AggregateFlowStatisticsUpdate;
@@ -62,8 +61,8 @@ public final class AggregateFlowsInTableService extends
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final GetAggregateFlowStatisticsFromFlowTableForAllFlowsInput input)
-            throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid,
+            final GetAggregateFlowStatisticsFromFlowTableForAllFlowsInput input) {
         // Create multipart request body for fetch all the group stats
         final MultipartRequestAggregateCaseBuilder multipartRequestAggregateCaseBuilder =
                 new MultipartRequestAggregateCaseBuilder();
index eccec93adcee416b41bb807ff1c33dcc5aa7ebca..a851fba06a10d124a74133fd9b8841b71b84babb 100644 (file)
@@ -15,7 +15,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.FlowStatisticsToNotificationTransformer;
 import org.opendaylight.openflowplugin.impl.util.FlowCreatorUtil;
@@ -60,7 +59,7 @@ public final class AllFlowsInAllTablesService extends
 
     @Override
     protected OfHeader buildRequest(final Xid xid,
-                                    final GetAllFlowsStatisticsFromAllFlowTablesInput input) throws ServiceException {
+                                    final GetAllFlowsStatisticsFromAllFlowTablesInput input) {
         final MultipartRequestInputBuilder mprInput = RequestInputUtils
                 .createMultipartHeader(MultipartType.OFPMPFLOW, xid.getValue(), getVersion());
         mprInput.setMultipartRequestBody(flowCase);
index 28262e83ef225d86bead70629b4a5ada4849185d..ee6fc4de716dbed4a3168219f49ed15143e2ed02 100644 (file)
@@ -14,7 +14,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.FlowStatisticsToNotificationTransformer;
 import org.opendaylight.openflowplugin.impl.util.FlowCreatorUtil;
@@ -46,7 +45,7 @@ public class AllFlowsInTableService extends AbstractCompatibleStatService<GetAll
 
     @Override
     protected OfHeader buildRequest(final Xid xid,
-                                    final GetAllFlowStatisticsFromFlowTableInput input) throws ServiceException {
+                                    final GetAllFlowStatisticsFromFlowTableInput input) {
         final MultipartRequestFlowBuilder mprFlowRequestBuilder = new MultipartRequestFlowBuilder();
         mprFlowRequestBuilder.setTableId(input.getTableId().getValue());
         mprFlowRequestBuilder.setOutPort(OFConstants.OFPP_ANY);
index a7a70fc49c41a46ccc66a4c549234a12957ee9e0..c4d2794605d90831f2e034b0f3b86f2251ed2a90 100644 (file)
@@ -14,7 +14,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.GroupStatisticsToNotificationTransformer;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
@@ -59,7 +58,7 @@ final class AllGroupsStatsService extends
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final GetAllGroupStatisticsInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final GetAllGroupStatisticsInput input) {
         // Create multipart request header
         final MultipartRequestInputBuilder mprInput = RequestInputUtils.createMultipartHeader(
                 MultipartType.OFPMPGROUP, xid.getValue(), getVersion());
index f79d24460e1a6e35f5b44921b84abe335969d0d3..7e21c17d92f69dd24283a614376065aa0de5811e 100644 (file)
@@ -16,7 +16,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.data.VersionConvertorData;
@@ -72,7 +71,7 @@ final class AllMeterConfigStatsService
 
     @Override
     protected OfHeader buildRequest(final Xid xid,
-                                    final GetAllMeterConfigStatisticsInput input) throws ServiceException {
+                                    final GetAllMeterConfigStatisticsInput input) {
         MultipartRequestInputBuilder mprInput = RequestInputUtils
                 .createMultipartHeader(MultipartType.OFPMPMETERCONFIG, xid.getValue(), getVersion());
         return mprInput.setMultipartRequestBody(METER_CONFIG_CASE).build();
index b72ef6133c7037402861eec163d8d01d942dd8d6..4e9593a70ca8b06e03b14031de680cfad07cd733 100644 (file)
@@ -14,7 +14,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.MeterStatisticsToNotificationTransformer;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
@@ -60,7 +59,7 @@ final class AllMeterStatsService extends AbstractCompatibleStatService<GetAllMet
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final GetAllMeterStatisticsInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final GetAllMeterStatisticsInput input) {
         MultipartRequestInputBuilder mprInput = RequestInputUtils
                 .createMultipartHeader(MultipartType.OFPMPMETER, xid.getValue(), getVersion());
         return mprInput.setMultipartRequestBody(METER_CASE).build();
index c15c936eb6512f95ebc96e20d2201ec77b088dcb..14a966fe7e87d7f2d4a34e259e348516781edc19 100644 (file)
@@ -14,7 +14,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.NodeConnectorStatisticsToNotificationTransformer;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.TransactionId;
@@ -57,7 +56,7 @@ final class AllPortStatsService
 
     @Override
     protected OfHeader buildRequest(final Xid xid,
-                                    final GetAllNodeConnectorsStatisticsInput input) throws ServiceException {
+                                    final GetAllNodeConnectorsStatisticsInput input) {
         MultipartRequestInputBuilder mprInput = RequestInputUtils
                 .createMultipartHeader(MultipartType.OFPMPPORTSTATS, xid.getValue(), getVersion());
         mprInput.setMultipartRequestBody(PORT_STATS_CASE);
index 2ea0cd74947dcb1ab1f3cc8532e04438e2d78719..1ff0d5f26f19f9e38a90e5eb2f05ff444d86612e 100644 (file)
@@ -14,7 +14,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.QueueStatisticsToNotificationTransformer;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.TransactionId;
@@ -56,7 +55,7 @@ final class AllQueuesAllPortsService extends AbstractCompatibleStatService<GetAl
 
     @Override
     protected OfHeader buildRequest(final Xid xid,
-                                    final GetAllQueuesStatisticsFromAllPortsInput input) throws ServiceException {
+                                    final GetAllQueuesStatisticsFromAllPortsInput input) {
         // Set request body to main multipart request
         MultipartRequestInputBuilder mprInput = RequestInputUtils.createMultipartHeader(
                 MultipartType.OFPMPQUEUE, xid.getValue(), getVersion());
index dee26eb3b7dcfbd76ede514883b221a8a31c1b9a..b5ce5817c8ac6ae159f5aefea5edb425fac14e6c 100644 (file)
@@ -15,7 +15,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.api.openflow.md.util.OpenflowVersion;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.QueueStatisticsToNotificationTransformer;
 import org.opendaylight.openflowplugin.openflow.md.util.InventoryDataServiceUtil;
@@ -43,7 +42,7 @@ final class AllQueuesOnePortService extends AbstractCompatibleStatService<GetAll
 
     @Override
     protected OfHeader buildRequest(final Xid xid,
-                                    final GetAllQueuesStatisticsFromGivenPortInput input) throws ServiceException {
+                                    final GetAllQueuesStatisticsFromGivenPortInput input) {
         MultipartRequestQueueCaseBuilder caseBuilder = new MultipartRequestQueueCaseBuilder();
         MultipartRequestQueueBuilder mprQueueBuilder = new MultipartRequestQueueBuilder();
         // Select all queues
index db676154cfd8cf846f7331f0537e6e377592ac49..03a5b78a5e1a0f8f42eee1208b44a6257c4bd085 100644 (file)
@@ -15,7 +15,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.FlowStatisticsToNotificationTransformer;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
@@ -50,7 +49,7 @@ public final class FlowsInTableService extends AbstractCompatibleStatService<Get
 
     @Override
     protected OfHeader buildRequest(final Xid xid,
-                                    final GetFlowStatisticsFromFlowTableInput input) throws ServiceException {
+                                    final GetFlowStatisticsFromFlowTableInput input) {
         final MultipartRequestFlowCaseBuilder multipartRequestFlowCaseBuilder = new MultipartRequestFlowCaseBuilder();
         final MultipartRequestFlowBuilder mprFlowRequestBuilder = new MultipartRequestFlowBuilder();
 
index 8006a59028384dde6054a4b5388f23aa4e463bd7..0759d0dd59628c4009e99d82eef9faf6d6716620 100644 (file)
@@ -15,7 +15,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.data.VersionConvertorData;
@@ -52,7 +51,7 @@ final class GroupDescriptionService
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final GetGroupDescriptionInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final GetGroupDescriptionInput input) {
         final MultipartRequestInputBuilder mprInput = RequestInputUtils.createMultipartHeader(
                 MultipartType.OFPMPGROUPDESC, xid.getValue(), getVersion());
         mprInput.setMultipartRequestBody(GROUP_DESC_CASE);
index ed8ef145b187baaa0232607c447c73c1677fb8ce..28314c887e7a8b2dd7defa7003782a9877fed823 100644 (file)
@@ -16,7 +16,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.util.GroupUtil;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.TransactionId;
@@ -59,7 +58,7 @@ final class GroupFeaturesService
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final GetGroupFeaturesInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final GetGroupFeaturesInput input) {
         final MultipartRequestInputBuilder mprInput = RequestInputUtils.createMultipartHeader(
                 MultipartType.OFPMPGROUPFEATURES, xid.getValue(), getVersion());
         mprInput.setMultipartRequestBody(GROUP_FEAT_CASE);
index 7845e0e7b259bf91d0719c85a282d315c3dbe514..e4a812153ac376496d7e9a9c9372e6b044a35875 100644 (file)
@@ -13,7 +13,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.GroupStatisticsToNotificationTransformer;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
@@ -45,7 +44,7 @@ final class GroupStatsService extends AbstractCompatibleStatService<GetGroupStat
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final GetGroupStatisticsInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final GetGroupStatisticsInput input) {
         final MultipartRequestGroupCaseBuilder caseBuilder = new MultipartRequestGroupCaseBuilder();
         final MultipartRequestGroupBuilder mprGroupBuild = new MultipartRequestGroupBuilder();
         mprGroupBuild.setGroupId(new GroupId(input.getGroupId().getValue()));
index 9dd8f6ad31d8990b9b212dbef99b6731fcb833bf..d8b096ac8fd7a34d8a063a8f79da9c09786769a9 100644 (file)
@@ -16,7 +16,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter32;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.TransactionId;
@@ -56,7 +55,7 @@ final class MeterFeaturesService
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final GetMeterFeaturesInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final GetMeterFeaturesInput input) {
         MultipartRequestInputBuilder mprInput =
                 RequestInputUtils.createMultipartHeader(MultipartType.OFPMPMETERFEATURES, xid.getValue(), getVersion());
         mprInput.setMultipartRequestBody(METER_FEATURES_CASE);
index 4e0c7de496ea92ac55c216d01b259ac28d6990e0..94dfd1551a27fad7d8fc48a5fa40732fda365ef8 100644 (file)
@@ -13,7 +13,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.MeterStatisticsToNotificationTransformer;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
@@ -45,7 +44,7 @@ final class MeterStatsService extends AbstractCompatibleStatService<GetMeterStat
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final GetMeterStatisticsInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final GetMeterStatisticsInput input) {
         MultipartRequestMeterCaseBuilder caseBuilder =
                 new MultipartRequestMeterCaseBuilder();
         MultipartRequestMeterBuilder mprMeterBuild =
index 93d049756e52cacf54d28f07f4302e15e23478c0..9c97c02370e8a70902eda615d3648c942c923bf4 100644 (file)
@@ -14,7 +14,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.api.openflow.md.util.OpenflowVersion;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.QueueStatisticsToNotificationTransformer;
 import org.opendaylight.openflowplugin.openflow.md.util.InventoryDataServiceUtil;
@@ -43,7 +42,7 @@ final class OneQueueOnePortService
 
     @Override
     protected OfHeader buildRequest(final Xid xid,
-                                    final GetQueueStatisticsFromGivenPortInput input) throws ServiceException {
+                                    final GetQueueStatisticsFromGivenPortInput input) {
         MultipartRequestQueueCaseBuilder caseBuilder = new MultipartRequestQueueCaseBuilder();
         MultipartRequestQueueBuilder mprQueueBuilder = new MultipartRequestQueueBuilder();
         // Select specific queue
index 874346766d8dd95b6dfb797767ad52582b85615a..88e73c75aee386ea732988103b63cb57ed770504 100644 (file)
@@ -16,7 +16,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter32;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64;
@@ -64,7 +63,7 @@ public final class OpendaylightFlowTableStatisticsServiceImpl extends
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final GetFlowTablesStatisticsInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final GetFlowTablesStatisticsInput input) {
         // Create multipart request body for fetch all the group stats
         final MultipartRequestTableCaseBuilder multipartRequestTableCaseBuilder =
                 new MultipartRequestTableCaseBuilder();
index 36d8a7d429287da3d2b93d695a8ba44dcbdff38e..4b262ae91433e85e1ccc8466afd6522f85498dfc 100644 (file)
@@ -14,7 +14,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.api.openflow.md.util.OpenflowVersion;
 import org.opendaylight.openflowplugin.impl.services.util.RequestInputUtils;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService;
 import org.opendaylight.openflowplugin.impl.statistics.services.compatibility.NodeConnectorStatisticsToNotificationTransformer;
 import org.opendaylight.openflowplugin.openflow.md.util.InventoryDataServiceUtil;
@@ -42,7 +41,7 @@ final class PortStatsService extends AbstractCompatibleStatService<GetNodeConnec
 
     @Override
     protected OfHeader buildRequest(final Xid xid,
-                                    final GetNodeConnectorStatisticsInput input) throws ServiceException {
+                                    final GetNodeConnectorStatisticsInput input) {
         MultipartRequestPortStatsCaseBuilder caseBuilder =
                 new MultipartRequestPortStatsCaseBuilder();
         MultipartRequestPortStatsBuilder mprPortStatsBuilder =
index dfad1b9ccbe45e5e543ab99a47ac2aa995358f42..e90d10ec0aec9b830df01d64cce66914127fdba8 100644 (file)
@@ -18,7 +18,6 @@ import org.opendaylight.openflowplugin.api.openflow.statistics.ofpspecific.Stati
 import org.opendaylight.openflowplugin.impl.common.MultipartRequestInputFactory;
 import org.opendaylight.openflowplugin.impl.datastore.MultipartWriterProvider;
 import org.opendaylight.openflowplugin.impl.services.AbstractMultipartOnTheFlyService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.ofpspecific.EventsTimeCounter;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.MultipartType;
@@ -53,7 +52,7 @@ public class StatisticsGatheringOnTheFlyService<T extends OfHeader>
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final MultipartType input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final MultipartType input) {
         return MultipartRequestInputFactory.makeMultipartRequest(xid.getValue(),
                                                                  getVersion(),
                                                                  input,
index ade408bf9d5fdb9def2da260c9e1fa0c6ded73b7..a0638491c7602370f5be09b928c85a206da08a87 100644 (file)
@@ -17,7 +17,6 @@ import org.opendaylight.openflowplugin.api.openflow.statistics.ofpspecific.Event
 import org.opendaylight.openflowplugin.api.openflow.statistics.ofpspecific.StatisticsGatherer;
 import org.opendaylight.openflowplugin.impl.common.MultipartRequestInputFactory;
 import org.opendaylight.openflowplugin.impl.services.AbstractMultipartService;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.ofpspecific.EventsTimeCounter;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.MultipartType;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;
@@ -46,7 +45,7 @@ public class StatisticsGatheringService<T extends OfHeader>
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final MultipartType input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final MultipartType input) {
         return MultipartRequestInputFactory.makeMultipartRequest(xid.getValue(),
                                                                  getVersion(),
                                                                  input,
index 81f4aeb7af8b39808c8919a224a82bd59144bb4b..1a0303317d3dd3454277ef761790321c776399ac 100644 (file)
@@ -14,7 +14,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.datastore.MultipartWriterProvider;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.direct.AbstractFlowDirectStatisticsService;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.direct.statistics.rev160511.GetFlowStatisticsInput;
@@ -59,7 +58,7 @@ public class FlowDirectStatisticsService extends AbstractFlowDirectStatisticsSer
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final GetFlowStatisticsInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final GetFlowStatisticsInput input) {
         return new MultipartRequestBuilder()
             .setXid(xid.getValue())
             .setVersion(getVersion())
index e6eee3eb18f8af83e9110438677b5d6e6ad355a8..8dafbd6b8ca84253282e4bc781d3be246b37b0ef 100644 (file)
@@ -14,7 +14,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.datastore.MultipartWriterProvider;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.direct.AbstractGroupDirectStatisticsService;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.direct.statistics.rev160511.GetGroupStatisticsInput;
@@ -48,7 +47,7 @@ public class GroupDirectStatisticsService extends AbstractGroupDirectStatisticsS
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final GetGroupStatisticsInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final GetGroupStatisticsInput input) {
         return new MultipartRequestBuilder()
             .setXid(xid.getValue())
             .setVersion(getVersion())
index 9bc8b6dfdda262fef510afcccf7fb606321a0688..4c7dc1daf0bbf8ae825d3c275f009e4de615064f 100644 (file)
@@ -14,7 +14,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.datastore.MultipartWriterProvider;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.direct.AbstractMeterDirectStatisticsService;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.direct.statistics.rev160511.GetMeterStatisticsInput;
@@ -48,7 +47,7 @@ public class MeterDirectStatisticsService extends AbstractMeterDirectStatisticsS
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final GetMeterStatisticsInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final GetMeterStatisticsInput input) {
         return new MultipartRequestBuilder()
             .setXid(xid.getValue())
             .setVersion(getVersion())
index 20179df58ba8edb43fc364eadba149825bb9d005..52b2bc7522e7911c31442703c4363f6f8ccc71dc 100644 (file)
@@ -14,7 +14,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.datastore.MultipartWriterProvider;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.direct.AbstractPortDirectStatisticsService;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.direct.statistics.rev160511.GetNodeConnectorStatisticsInput;
@@ -49,7 +48,7 @@ public class PortDirectStatisticsService extends AbstractPortDirectStatisticsSer
 
     @Override
     protected OfHeader buildRequest(final Xid xid,
-                                    final GetNodeConnectorStatisticsInput input) throws ServiceException {
+                                    final GetNodeConnectorStatisticsInput input) {
         return new MultipartRequestBuilder()
             .setXid(xid.getValue())
             .setVersion(getVersion())
index 14229ff31704b9b9583c4c98fc61f65593705fb6..a3e09bebee025248e8c065a2be427aecff9aea56 100644 (file)
@@ -14,7 +14,6 @@ import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
 import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
 import org.opendaylight.openflowplugin.api.openflow.device.Xid;
 import org.opendaylight.openflowplugin.impl.datastore.MultipartWriterProvider;
-import org.opendaylight.openflowplugin.impl.services.util.ServiceException;
 import org.opendaylight.openflowplugin.impl.statistics.services.direct.AbstractQueueDirectStatisticsService;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorExecutor;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.direct.statistics.rev160511.GetQueueStatisticsInput;
@@ -48,7 +47,7 @@ public class QueueDirectStatisticsService extends AbstractQueueDirectStatisticsS
     }
 
     @Override
-    protected OfHeader buildRequest(final Xid xid, final GetQueueStatisticsInput input) throws ServiceException {
+    protected OfHeader buildRequest(final Xid xid, final GetQueueStatisticsInput input) {
         return new MultipartRequestBuilder()
             .setXid(xid.getValue())
             .setVersion(getVersion())
index 24383c5469b2ee40979fa81d859f750de64b0b8b..c9eb819d4ee9650fc4870f4081ecd5a1813c0e09 100644 (file)
@@ -88,7 +88,7 @@ public class OpenFlowPluginProviderImplTest {
     private static final int DEVICE_CONNECTION_RATE_LIMIT_PER_MIN = 0;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         when(dataBroker.newWriteOnlyTransaction()).thenReturn(writeTransaction);
         doReturn(CommitInfo.emptyFluentFuture()).when(writeTransaction).commit();
         when(entityOwnershipService.registerListener(any(), any())).thenReturn(entityOwnershipListenerRegistration);
@@ -109,7 +109,7 @@ public class OpenFlowPluginProviderImplTest {
     }
 
     @Test
-    public void testInitializeAndClose() throws Exception {
+    public void testInitializeAndClose() {
         final OpenFlowPluginProviderImpl provider = new OpenFlowPluginProviderImpl(
                 configurationService,
                 new SwitchConnectionProviderList(Lists.newArrayList(switchConnectionProvider)),
index b84fd961ffa4d8318cf52ac75e6c38bc05485c4a..7cbe1e817099fa67d0c39ce5c9e088804fbd5015 100644 (file)
@@ -76,7 +76,7 @@ public class MultipartReplyTranslatorUtilTest {
     private TranslatorLibrarian translatorLibrarian;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         when(deviceInfo.getVersion()).thenReturn(OFConstants.OFP_VERSION_1_3);
 
         translatorLibrarian = new TranslatorLibrarian() {
index 2a66f3a0c2ec97323d8aecf3451e572560b5cee0..546c202ee7f5951d1a92696028fccc2a52b37a15 100644 (file)
@@ -50,12 +50,12 @@ public class MultipartRequestInputFactoryTest {
 
     @Before
 
-    public void setUp() throws Exception {
+    public void setUp() {
         ofVersion = OFConstants.OFP_VERSION_1_3;
     }
 
     @Test
-    public void testMakeMultipartRequestInput_DESC() throws Exception {
+    public void testMakeMultipartRequestInput_DESC() {
         MultipartType mpType = MultipartType.OFPMPDESC;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -64,7 +64,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInput_FLOW_13() throws Exception {
+    public void testMakeMultipartRequestInput_FLOW_13() {
         final MultipartType mpType = MultipartType.OFPMPFLOW;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -85,7 +85,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInput_FLOW_10() throws Exception {
+    public void testMakeMultipartRequestInput_FLOW_10() {
         final MultipartType mpType = MultipartType.OFPMPFLOW;
         ofVersion = OFConstants.OFP_VERSION_1_0;
         final MultipartRequestInput mpRqInput =
@@ -105,7 +105,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInputAggregate() throws Exception {
+    public void testMakeMultipartRequestInputAggregate() {
         MultipartType mpType = MultipartType.OFPMPAGGREGATE;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -115,7 +115,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInputTable() throws Exception {
+    public void testMakeMultipartRequestInputTable() {
         MultipartType mpType = MultipartType.OFPMPTABLE;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -124,7 +124,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInputPortStats() throws Exception {
+    public void testMakeMultipartRequestInputPortStats() {
         final MultipartType mpType = MultipartType.OFPMPPORTSTATS;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -137,7 +137,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInputQueue() throws Exception {
+    public void testMakeMultipartRequestInputQueue() {
         final MultipartType mpType = MultipartType.OFPMPQUEUE;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -151,7 +151,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInputGroup() throws Exception {
+    public void testMakeMultipartRequestInputGroup() {
         final MultipartType mpType = MultipartType.OFPMPGROUP;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -164,7 +164,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInputGroupDesc() throws Exception {
+    public void testMakeMultipartRequestInputGroupDesc() {
         MultipartType mpType = MultipartType.OFPMPGROUPDESC;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -174,7 +174,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInputGroupFeatures() throws Exception {
+    public void testMakeMultipartRequestInputGroupFeatures() {
         MultipartType mpType = MultipartType.OFPMPGROUPFEATURES;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -184,7 +184,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInputMeter() throws Exception {
+    public void testMakeMultipartRequestInputMeter() {
         final MultipartType mpType = MultipartType.OFPMPMETER;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -197,7 +197,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInputMeterConfig() throws Exception {
+    public void testMakeMultipartRequestInputMeterConfig() {
         final MultipartType mpType = MultipartType.OFPMPMETERCONFIG;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -211,7 +211,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInputMeterFeatures() throws Exception {
+    public void testMakeMultipartRequestInputMeterFeatures() {
         MultipartType mpType = MultipartType.OFPMPMETERFEATURES;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -221,7 +221,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInputTableFeatures() throws Exception {
+    public void testMakeMultipartRequestInputTableFeatures() {
         final MultipartType mpType = MultipartType.OFPMPTABLEFEATURES;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -235,7 +235,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInputPortDesc() throws Exception {
+    public void testMakeMultipartRequestInputPortDesc() {
         MultipartType mpType = MultipartType.OFPMPPORTDESC;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -245,7 +245,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     @Test
-    public void testMakeMultipartRequestInputExperimenter() throws Exception {
+    public void testMakeMultipartRequestInputExperimenter() {
         MultipartType mpType = MultipartType.OFPMPEXPERIMENTER;
         final MultipartRequestInput mpRqInput =
             (MultipartRequestInput) MultipartRequestInputFactory.makeMultipartRequest(xid, ofVersion, mpType, false);
@@ -262,7 +262,7 @@ public class MultipartRequestInputFactoryTest {
     }
 
     private void checkEmptyBody(Class<? extends DataContainer> mpRqBody, Class<? extends
-            MultipartRequestBody> expectedMpRqBodyClass) throws Exception {
+            MultipartRequestBody> expectedMpRqBodyClass) {
         Assert.assertTrue(expectedMpRqBodyClass.isAssignableFrom(mpRqBody));
         Assert.assertEquals(expectedMpRqBodyClass, mpRqBody);
     }
index a9685b24fdf5bee3cebc7fdb934d50f8eca6c3d3..3245b51b0f0084314cdfd21f9bc797ceef6d0e37 100644 (file)
@@ -61,7 +61,7 @@ public class ConfigurationServiceFactoryImplTest {
     private ConfigurationService configurationService;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         when(config.isIsStatisticsPollingOn()).thenReturn(IS_STATISTICS_POLLING_ON);
         when(config.isIsFlowStatisticsPollingOn()).thenReturn(IS_STATISTICS_POLLING_ON);
         when(config.isIsTableStatisticsPollingOn()).thenReturn(IS_STATISTICS_POLLING_ON);
@@ -96,7 +96,7 @@ public class ConfigurationServiceFactoryImplTest {
     }
 
     @Test
-    public void update() throws Exception {
+    public void update() {
         final int tpMinThreads = configurationService
                 .getProperty(ConfigurationProperty.THREAD_POOL_MIN_THREADS.toString(), Integer::valueOf);
 
@@ -114,7 +114,7 @@ public class ConfigurationServiceFactoryImplTest {
     }
 
     @Test
-    public void getProperty() throws Exception {
+    public void getProperty() {
         final int tpMaxThreads = configurationService
                 .getProperty(ConfigurationProperty.THREAD_POOL_MAX_THREADS.toString(), Integer::valueOf);
 
@@ -122,7 +122,7 @@ public class ConfigurationServiceFactoryImplTest {
     }
 
     @Test
-    public void registerListener() throws Exception {
+    public void registerListener() {
         configurationService.registerListener(configurationListener);
         verify(configurationListener, times(CONFIG_PROP_COUNT)).onPropertyChanged(any(), any());
     }
index ea153bddeb202cec31e57ba77ce01b08cc29dabf..af7ff220165d0ffa812f34dfe0ba53367513fb30 100644 (file)
@@ -47,7 +47,7 @@ public class OpenFlowProviderConfigImplTest {
     private OpenflowProviderConfig openflowProviderConfig;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         when(configurationService.getProperty(eq(ConfigurationProperty.IS_STATISTICS_POLLING_ON.toString()), any()))
                 .thenReturn(IS_STATISTICS_POLLING_ON);
         when(configurationService.getProperty(eq(ConfigurationProperty.BARRIER_COUNT_LIMIT.toString()), any()))
@@ -91,88 +91,88 @@ public class OpenFlowProviderConfigImplTest {
     }
 
     @Test
-    public void getRpcRequestsQuota() throws Exception {
+    public void getRpcRequestsQuota() {
         assertEquals(RPC_REQUESTS_QUOTA, openflowProviderConfig.getRpcRequestsQuota().getValue());
     }
 
     @Test
-    public void isSwitchFeaturesMandatory() throws Exception {
+    public void isSwitchFeaturesMandatory() {
         assertEquals(SWITCH_FEATURES_MANDATORY, openflowProviderConfig.isSwitchFeaturesMandatory());
     }
 
     @Test
-    public void getGlobalNotificationQuota() throws Exception {
+    public void getGlobalNotificationQuota() {
         assertEquals(GLOBAL_NOTIFICATION_QUOTA, openflowProviderConfig.getGlobalNotificationQuota());
     }
 
     @Test
-    public void isIsStatisticsPollingOn() throws Exception {
+    public void isIsStatisticsPollingOn() {
         assertEquals(IS_STATISTICS_POLLING_ON, openflowProviderConfig.isIsStatisticsPollingOn());
     }
 
     @Test
-    public void isIsStatisticsRpcEnabled() throws Exception {
+    public void isIsStatisticsRpcEnabled() {
         assertEquals(IS_STATISTICS_RPC_ENABLED, openflowProviderConfig.isIsStatisticsRpcEnabled());
     }
 
     @Test
-    public void getBarrierIntervalTimeoutLimit() throws Exception {
+    public void getBarrierIntervalTimeoutLimit() {
         assertEquals(BARRIER_INTERVAL_TIMEOUT_LIMIT, openflowProviderConfig.getBarrierIntervalTimeoutLimit()
                 .getValue());
     }
 
     @Test
-    public void getBarrierCountLimit() throws Exception {
+    public void getBarrierCountLimit() {
         assertEquals(BARRIER_COUNT_LIMIT, openflowProviderConfig.getBarrierCountLimit().getValue());
     }
 
     @Test
-    public void getEchoReplyTimeout() throws Exception {
+    public void getEchoReplyTimeout() {
         assertEquals(ECHO_REPLY_TIMEOUT, openflowProviderConfig.getEchoReplyTimeout().getValue());
     }
 
     @Test
-    public void getThreadPoolMinThreads() throws Exception {
+    public void getThreadPoolMinThreads() {
         assertEquals(THREAD_POOL_MIN_THREADS, openflowProviderConfig.getThreadPoolMinThreads());
     }
 
     @Test
-    public void getThreadPoolMaxThreads() throws Exception {
+    public void getThreadPoolMaxThreads() {
         assertEquals(THREAD_POOL_MAX_THREADS, openflowProviderConfig.getThreadPoolMaxThreads().getValue());
     }
 
     @Test
-    public void getThreadPoolTimeout() throws Exception {
+    public void getThreadPoolTimeout() {
         assertEquals(THREAD_POOL_TIMEOUT, openflowProviderConfig.getThreadPoolTimeout());
     }
 
     @Test
-    public void isEnableFlowRemovedNotification() throws Exception {
+    public void isEnableFlowRemovedNotification() {
         assertEquals(ENABLE_FLOW_REMOVED_NOTIFICATION, openflowProviderConfig.isEnableFlowRemovedNotification());
     }
 
     @Test
-    public void isSkipTableFeatures() throws Exception {
+    public void isSkipTableFeatures() {
         assertEquals(SKIP_TABLE_FEATURES, openflowProviderConfig.isSkipTableFeatures());
     }
 
     @Test
-    public void getBasicTimerDelay() throws Exception {
+    public void getBasicTimerDelay() {
         assertEquals(BASIC_TIMER_DELAY, openflowProviderConfig.getBasicTimerDelay().getValue());
     }
 
     @Test
-    public void getMaximumTimerDelay() throws Exception {
+    public void getMaximumTimerDelay() {
         assertEquals(MAXIMUM_TIMER_DELAY, openflowProviderConfig.getMaximumTimerDelay().getValue());
     }
 
     @Test
-    public void isUseSingleLayerSerialization() throws Exception {
+    public void isUseSingleLayerSerialization() {
         assertEquals(USE_SINGLE_LAYER_SERIALIZATION, openflowProviderConfig.isUseSingleLayerSerialization());
     }
 
     @Test
-    public void getDeviceConnectionRateLimitPerMin() throws Exception {
+    public void getDeviceConnectionRateLimitPerMin() {
         assertEquals(DEVICE_CONNECTION_RATE_LIMIT_PER_MIN, openflowProviderConfig.getDeviceConnectionRateLimitPerMin());
     }
 
index bca7a967fba435e0c4f6159102529cfcbfd3b400..9903d206f3ec6a6c5af11d84cb1bb7b7d4c45469 100644 (file)
@@ -44,7 +44,7 @@ public class ConnectionContextImplTest {
     private ConnectionContextImpl connectionContext;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         Mockito.when(connetionAdapter.getRemoteAddress())
                 .thenReturn(InetSocketAddress.createUnresolved("ofp-ut.example.org", 4242));
         Mockito.when(connetionAdapter.isAlive()).thenReturn(true);
@@ -59,7 +59,7 @@ public class ConnectionContextImplTest {
     }
 
     @Test
-    public void testCloseConnection1() throws Exception {
+    public void testCloseConnection1() {
         connectionContext.closeConnection(true);
         Mockito.verify(outboundQueueRegistration).close();
         Mockito.verify(handshakeContext).close();
@@ -70,7 +70,7 @@ public class ConnectionContextImplTest {
     }
 
     @Test
-    public void testCloseConnection2() throws Exception {
+    public void testCloseConnection2() {
         connectionContext.closeConnection(false);
         Mockito.verify(outboundQueueRegistration).close();
         Mockito.verify(handshakeContext).close();
@@ -81,7 +81,7 @@ public class ConnectionContextImplTest {
     }
 
     @Test
-    public void testOnConnectionClosed() throws Exception {
+    public void testOnConnectionClosed() {
         connectionContext.onConnectionClosed();
         Assert.assertEquals(ConnectionContext.CONNECTION_STATE.RIP, connectionContext.getConnectionState());
         Mockito.verify(outboundQueueRegistration).close();
@@ -91,19 +91,19 @@ public class ConnectionContextImplTest {
     }
 
     @Test
-    public void testChangeStateToHandshaking() throws Exception {
+    public void testChangeStateToHandshaking() {
         connectionContext.changeStateToHandshaking();
         Assert.assertEquals(ConnectionContext.CONNECTION_STATE.HANDSHAKING, connectionContext.getConnectionState());
     }
 
     @Test
-    public void testChangeStateToTimeouting() throws Exception {
+    public void testChangeStateToTimeouting() {
         connectionContext.changeStateToTimeouting();
         Assert.assertEquals(ConnectionContext.CONNECTION_STATE.TIMEOUTING, connectionContext.getConnectionState());
     }
 
     @Test
-    public void testChangeStateToWorking() throws Exception {
+    public void testChangeStateToWorking() {
         connectionContext.changeStateToWorking();
         Assert.assertEquals(ConnectionContext.CONNECTION_STATE.WORKING, connectionContext.getConnectionState());
     }
index dd215eb0e03d89ff0c83db8ee1cd7409ffbe8eb4..12754dc556d30d6d50fd8bb356ab5a63b6d9d6b6 100644 (file)
@@ -18,7 +18,7 @@ public class ErrorHandlerSimpleImplTest extends TestCase {
     ErrorHandler errorHandler = new ErrorHandlerSimpleImpl();
 
     @Test
-    public void testHandleException() throws Exception {
+    public void testHandleException() {
         ConnectionException connectionException = new ConnectionException("Exception for testing purpose only.");
         errorHandler.handleException(connectionException);
 
index e4746f70486f175cdf3875b913bb57594f983257..7edc9b7d8670005455a87ca39e8d261847f33dac 100644 (file)
@@ -151,7 +151,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiation10() throws Exception {
+    public void testVersionNegotiation10() {
         LOG.debug("testVersionNegotiation10");
         Short version = OFConstants.OFP_VERSION_1_0;
 
@@ -170,7 +170,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiation10SwitchStarts() throws Exception {
+    public void testVersionNegotiation10SwitchStarts() {
         LOG.debug("testVersionNegotiation10-ss");
         Short version = OFConstants.OFP_VERSION_1_0;
 
@@ -187,7 +187,7 @@ public class HandshakeManagerImplTest {
      * Switch delivers first helloMessage with version 0x00 = negotiation unsuccessful
      */
     @Test
-    public void testVersionNegotiation00() throws Exception {
+    public void testVersionNegotiation00() {
         LOG.debug("testVersionNegotiation00");
         expectedErrors = 1;
         Short version = (short) 0x00;
@@ -203,7 +203,7 @@ public class HandshakeManagerImplTest {
      * Switch delivers first helloMessage with version 0x00 = negotiation unsuccessful
      */
     @Test
-    public void testVersionNegotiation00SwitchStarts() throws Exception {
+    public void testVersionNegotiation00SwitchStarts() {
         LOG.debug("testVersionNegotiation00-ss");
         expectedErrors = 1;
         Short version = (short) 0x00;
@@ -221,7 +221,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiation11() throws Exception {
+    public void testVersionNegotiation11() {
         LOG.debug("testVersionNegotiation11");
         Short version = (short) 0x02;
         Short expVersion = (short) 0x01;
@@ -240,7 +240,7 @@ public class HandshakeManagerImplTest {
      * Test of version negotiation Where 1.0 < switch version < 1.3.
      */
     @Test
-    public void testVersionNegotiation11SwitchStarts() throws Exception {
+    public void testVersionNegotiation11SwitchStarts() {
         LOG.debug("testVersionNegotiation11-ss");
         final Short version = (short) 0x02;
         final Short expVersion = (short) 0x01;
@@ -262,7 +262,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiation13() throws Exception {
+    public void testVersionNegotiation13() {
         LOG.debug("testVersionNegotiation13");
         Short version = OFConstants.OFP_VERSION_1_3;
 
@@ -279,7 +279,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiation13SwitchStarts() throws Exception {
+    public void testVersionNegotiation13SwitchStarts() {
         LOG.debug("testVersionNegotiation13-ss");
         Short version = OFConstants.OFP_VERSION_1_3;
 
@@ -298,7 +298,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiation15() throws Exception {
+    public void testVersionNegotiation15() {
         LOG.debug("testVersionNegotiation15");
         Short version = (short) 0x06;
         Short expVersion = OFConstants.OFP_VERSION_1_3;
@@ -318,7 +318,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiation15SwitchStart() throws Exception {
+    public void testVersionNegotiation15SwitchStart() {
         LOG.debug("testVersionNegotiation15-ss");
         Short version = (short) 0x06;
         Short expVersion = OFConstants.OFP_VERSION_1_3;
@@ -338,7 +338,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiation15_MultipleCall() throws Exception {
+    public void testVersionNegotiation15_MultipleCall() {
         LOG.debug("testVersionNegotiation15_MultipleCall");
         Short version = (short) 0x06;
         expectedErrors = 1;
@@ -356,7 +356,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiation15_MultipleCallSwitchStarts() throws Exception {
+    public void testVersionNegotiation15_MultipleCallSwitchStarts() {
         LOG.debug("testVersionNegotiation15_MultipleCall-ss");
         Short version = (short) 0x06;
         expectedErrors = 1;
@@ -376,7 +376,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiation10InBitmap() throws Exception {
+    public void testVersionNegotiation10InBitmap() {
         LOG.debug("testVersionNegotiation10InBitmap");
         Short version = OFConstants.OFP_VERSION_1_0;
         handshakeManager.setUseVersionBitmap(true);
@@ -397,7 +397,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiation10InBitmapSwitchStarts() throws Exception {
+    public void testVersionNegotiation10InBitmapSwitchStarts() {
         LOG.debug("testVersionNegotiation10InBitmap-ss");
         Short version = OFConstants.OFP_VERSION_1_0;
         handshakeManager.setUseVersionBitmap(true);
@@ -420,7 +420,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiation13InBitmap() throws Exception {
+    public void testVersionNegotiation13InBitmap() {
         LOG.debug("testVersionNegotiation13InBitmap");
         Short version = OFConstants.OFP_VERSION_1_3;
         handshakeManager.setUseVersionBitmap(true);
@@ -441,7 +441,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiation13InBitmapSwitchFirst() throws Exception {
+    public void testVersionNegotiation13InBitmapSwitchFirst() {
         LOG.debug("testVersionNegotiation13InBitmap-ss");
         Short version = OFConstants.OFP_VERSION_1_3;
         handshakeManager.setUseVersionBitmap(true);
@@ -464,7 +464,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiationNoCommonVersionInBitmap() throws Exception {
+    public void testVersionNegotiationNoCommonVersionInBitmap() {
         LOG.debug("testVersionNegotiationNoCommonVersionInBitmap");
         Short version = (short) 0x05;
         expectedErrors = 1;
@@ -484,7 +484,7 @@ public class HandshakeManagerImplTest {
      *
      */
     @Test
-    public void testVersionNegotiationNoCommonVersionInBitmapSwitchStarts() throws Exception {
+    public void testVersionNegotiationNoCommonVersionInBitmapSwitchStarts() {
         LOG.debug("testVersionNegotiationNoCommonVersionInBitmap-ss");
         Short version = (short) 0x05;
         expectedErrors = 1;
index 1cd2c37be20d89537b5d244f3ae3b09e80018309..9549fc3c8c9f7d44a446bec5466dd5c7d4d5c2fa 100644 (file)
@@ -25,7 +25,7 @@ public class OutboundQueueProviderImplTest extends TestCase {
             new OutboundQueueProviderImpl(OFConstants.OFP_VERSION_1_3);
 
     @Test
-    public void testReserveEntry() throws Exception {
+    public void testReserveEntry() {
 
         outboundQueueProvider.onConnectionQueueChanged(null);
         Long returnValue = outboundQueueProvider.reserveEntry();
index 2d8f34a8977855c9f80b7d3f747da8d60c7bdf70..74a64d59e68174be90ee5dc11a227ddc6dd4da78 100644 (file)
@@ -56,7 +56,7 @@ public class HandshakeListenerImplTest {
     private HandshakeListenerImpl handshakeListener;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         Mockito.when(connectionAdapter.barrier(ArgumentMatchers.any()))
                 .thenReturn(RpcResultBuilder.success(new BarrierOutputBuilder().build()).buildFuture());
         connectionContextSpy = Mockito.spy(new ConnectionContextImpl(connectionAdapter));
@@ -67,12 +67,12 @@ public class HandshakeListenerImplTest {
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         Mockito.verify(handshakeContext).close();
     }
 
     @Test
-    public void testOnHandshakeSuccessfull() throws Exception {
+    public void testOnHandshakeSuccessfull() {
         handshakeListener.onHandshakeSuccessful(features, OFConstants.OFP_VERSION_1_3);
         Mockito.verify(connectionContextSpy).changeStateToWorking();
         Mockito.verify(connectionContextSpy).setFeatures(any(FeaturesReply.class));
@@ -85,7 +85,7 @@ public class HandshakeListenerImplTest {
     }
 
     @Test
-    public void testOnHandshakeFailure1() throws Exception {
+    public void testOnHandshakeFailure1() {
         connectionContextSpy.setNodeId(new NodeId("ut-device:10"));
         handshakeListener.onHandshakeFailure();
         Mockito.verify(handshakeContext).close();
@@ -93,7 +93,7 @@ public class HandshakeListenerImplTest {
     }
 
     @Test
-    public void testOnHandshakeFailure2() throws Exception {
+    public void testOnHandshakeFailure2() {
         Mockito.when(connectionAdapter.getRemoteAddress())
                 .thenReturn(InetSocketAddress.createUnresolved("ut-ofp.example.org", 4242));
         connectionContextSpy.setNodeId(new NodeId("openflow:1"));
index 5601d0cc274910dab1a7ffeb64881aa30dbf0593..e7302c355d45c7b6640a4d07d90979cda331fa6b 100644 (file)
@@ -42,7 +42,7 @@ public class OpenflowProtocolListenerInitialImplTest {
     private OpenflowProtocolListenerInitialImpl openflowProtocolListenerInitial;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         Mockito.when(connectionAdapter.isAlive()).thenReturn(true);
         Mockito.when(connectionContext.getConnectionAdapter()).thenReturn(connectionAdapter);
         Mockito.when(connectionContext.getConnectionState())
@@ -53,7 +53,7 @@ public class OpenflowProtocolListenerInitialImplTest {
     }
 
     @Test
-    public void testOnEchoRequestMessage() throws Exception {
+    public void testOnEchoRequestMessage() {
         EchoRequestMessageBuilder echoRequestMessageBld = new EchoRequestMessageBuilder()
                 .setXid(42L)
                 .setVersion(OFConstants.OFP_VERSION_1_3);
@@ -63,7 +63,7 @@ public class OpenflowProtocolListenerInitialImplTest {
     }
 
     @Test
-    public void testOnHelloMessage() throws Exception {
+    public void testOnHelloMessage() {
         HelloMessageBuilder helloMessageBld = new HelloMessageBuilder()
                 .setXid(42L)
                 .setVersion(OFConstants.OFP_VERSION_1_3);
@@ -73,7 +73,7 @@ public class OpenflowProtocolListenerInitialImplTest {
     }
 
     @Test
-    public void testCheckState() throws Exception {
+    public void testCheckState() {
         Assert.assertFalse(openflowProtocolListenerInitial.checkState(ConnectionContext.CONNECTION_STATE.HANDSHAKING));
         Assert.assertTrue(openflowProtocolListenerInitial.checkState(ConnectionContext.CONNECTION_STATE.HANDSHAKING));
     }
index c95d7e4efc390e0cf05e90985580c5d33827ebb8..7c5054aece9e7e55883ceb0b1ce275bdbdedde83 100644 (file)
@@ -84,7 +84,7 @@ public class SystemNotificationsListenerImplTest {
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         Mockito.verifyNoMoreInteractions(connectionContext);
     }
 
@@ -92,7 +92,7 @@ public class SystemNotificationsListenerImplTest {
      * Successful scenario - connection is on and closes without errors.
      */
     @Test
-    public void testOnDisconnectEvent1() throws Exception {
+    public void testOnDisconnectEvent1() {
 
         DisconnectEvent disconnectNotification = new DisconnectEventBuilder().setInfo("testing disconnect").build();
         systemNotificationsListener.onDisconnectEvent(disconnectNotification);
@@ -107,7 +107,7 @@ public class SystemNotificationsListenerImplTest {
      * Broken scenario - connection is on but fails to close.
      */
     @Test
-    public void testOnDisconnectEvent2() throws Exception {
+    public void testOnDisconnectEvent2() {
 
         DisconnectEvent disconnectNotification = new DisconnectEventBuilder().setInfo("testing disconnect").build();
         systemNotificationsListener.onDisconnectEvent(disconnectNotification);
@@ -122,7 +122,7 @@ public class SystemNotificationsListenerImplTest {
      * Successful scenario - connection is already down.
      */
     @Test
-    public void testOnDisconnectEvent3() throws Exception {
+    public void testOnDisconnectEvent3() {
         connectionContextGolem.changeStateToTimeouting();
 
         DisconnectEvent disconnectNotification = new DisconnectEventBuilder().setInfo("testing disconnect").build();
@@ -138,7 +138,7 @@ public class SystemNotificationsListenerImplTest {
      * Broken scenario - connection is on but throws error on close.
      */
     @Test
-    public void testOnDisconnectEvent4() throws Exception {
+    public void testOnDisconnectEvent4() {
         Mockito.when(connectionContext.getConnectionState()).thenReturn(ConnectionContext.CONNECTION_STATE.RIP);
 
         DisconnectEvent disconnectNotification = new DisconnectEventBuilder().setInfo("testing disconnect").build();
index 71c1e3c78b97f9ecc805771967601c002acdaacf..ece6796c8d27fd74809dbcc05f256a332332c96c 100644 (file)
@@ -181,7 +181,7 @@ public class DeviceContextImplTest {
     private DeviceContext deviceContextSpy;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final FluentFuture<Optional<Node>> noExistNodeFuture =
                 FluentFutures.immediateFluentFuture(Optional.<Node>empty());
         Mockito.lenient().when(readTx.read(LogicalDatastoreType.OPERATIONAL, nodeKeyIdent))
@@ -278,7 +278,7 @@ public class DeviceContextImplTest {
     }
 
     @Test
-    public void testInitialSubmitTransaction() throws Exception {
+    public void testInitialSubmitTransaction() {
         Mockito.doReturn(CommitInfo.emptyFluentFuture()).when(writeTx).commit();
         final InstanceIdentifier<Nodes> dummyII = InstanceIdentifier.create(Nodes.class);
         ((DeviceContextImpl) deviceContext).getTransactionChainManager().activateTransactionManager() ;
@@ -297,7 +297,7 @@ public class DeviceContextImplTest {
     }
 
     @Test
-    public void testAddDeleteToTxChain() throws Exception {
+    public void testAddDeleteToTxChain() {
         final InstanceIdentifier<Nodes> dummyII = InstanceIdentifier.create(Nodes.class);
         ((DeviceContextImpl) deviceContext).getTransactionChainManager().activateTransactionManager() ;
         ((DeviceContextImpl) deviceContext).getTransactionChainManager().initialSubmitWriteTransaction();
@@ -306,7 +306,7 @@ public class DeviceContextImplTest {
     }
 
     @Test
-    public void testSubmitTransaction() throws Exception {
+    public void testSubmitTransaction() {
         ((DeviceContextImpl) deviceContext).getTransactionChainManager().activateTransactionManager() ;
         ((DeviceContextImpl) deviceContext).getTransactionChainManager().initialSubmitWriteTransaction();
         assertTrue(deviceContext.submitTransaction());
@@ -413,7 +413,7 @@ public class DeviceContextImplTest {
     }
 
     @Test
-    public void testPortStatusMessage() throws Exception {
+    public void testPortStatusMessage() {
         final PortStatusMessage mockedPortStatusMessage = mock(PortStatusMessage.class);
         final Class dummyClass = Class.class;
         when(mockedPortStatusMessage.getImplementedInterface()).thenReturn(dummyClass);
@@ -431,7 +431,7 @@ public class DeviceContextImplTest {
     }
 
     @Test
-    public void testProcessFlowRemovedMessage() throws Exception {
+    public void testProcessFlowRemovedMessage() {
         // prepare translation result
         final FlowRemovedBuilder flowRemovedMdsalBld = new FlowRemovedBuilder()
                 .setTableId((short) 0)
@@ -484,17 +484,17 @@ public class DeviceContextImplTest {
     }
 
     @Test
-    public void instantiateServiceInstance() throws Exception {
+    public void instantiateServiceInstance() {
         deviceContext.instantiateServiceInstance();
     }
 
     @Test
-    public void close() throws Exception {
+    public void close() {
         deviceContext.close();
     }
 
     @Test
-    public void closeServiceInstance() throws Exception {
+    public void closeServiceInstance() {
         deviceContext.closeServiceInstance();
     }
 
index a0bf7482d8b0b813fd09cceb0f1936567a2100f1..1f1074abc931883ca5bd969a48b4f8a786d99e83 100644 (file)
@@ -104,7 +104,7 @@ public class DeviceManagerImplTest {
     private DeviceManagerImpl deviceManager;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         when(mockConnectionContext.getFeatures()).thenReturn(mockFeatures);
         when(mockConnectionContext.getConnectionAdapter()).thenReturn(mockedConnectionAdapter);
         when(mockConnectionContext.getDeviceInfo()).thenReturn(deviceInfo);
@@ -139,7 +139,7 @@ public class DeviceManagerImplTest {
     }
 
     @Test
-    public void createContext() throws Exception {
+    public void createContext() {
         final DeviceContext context = deviceManager.createContext(mockConnectionContext);
         assertEquals(deviceInfo, context.getDeviceInfo());
 
@@ -167,7 +167,7 @@ public class DeviceManagerImplTest {
     }
 
     @Test
-    public void sendNodeAddedNotification() throws Exception {
+    public void sendNodeAddedNotification() {
         deviceManager.sendNodeAddedNotification(DUMMY_IDENTIFIER);
         deviceManager.sendNodeAddedNotification(DUMMY_IDENTIFIER);
         verify(notificationPublishService).offerNotification(new NodeUpdatedBuilder()
@@ -177,7 +177,7 @@ public class DeviceManagerImplTest {
     }
 
     @Test
-    public void sendNodeRemovedNotification() throws Exception {
+    public void sendNodeRemovedNotification() {
         deviceManager.sendNodeAddedNotification(DUMMY_IDENTIFIER);
         deviceManager.sendNodeRemovedNotification(DUMMY_IDENTIFIER);
         deviceManager.sendNodeRemovedNotification(DUMMY_IDENTIFIER);
index fb546dfc7f6037578e367b94d2862ef31a848ba2..c9e0978793a3f4ae691a6b0aef636cf7b0f2769f 100644 (file)
@@ -36,13 +36,13 @@ public class PacketInRateLimiterTest {
     private InOrder caOrdered;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         caOrdered = Mockito.inOrder(connectionAdapter);
         rateLimiter = new PacketInRateLimiter(connectionAdapter, 4, 10, messageSpy, 0.5f);
     }
 
     @Test
-    public void testDisableFlow() throws Exception {
+    public void testDisableFlow() {
         rateLimiter.disableFlow();
 
         Mockito.verify(messageSpy).spyMessage(DeviceContext.class, MessageSpy.StatisticsGroup.OFJ_BACKPRESSURE_ON);
@@ -50,7 +50,7 @@ public class PacketInRateLimiterTest {
     }
 
     @Test
-    public void testEnableFlow() throws Exception {
+    public void testEnableFlow() {
         rateLimiter.enableFlow();
 
         Mockito.verify(messageSpy).spyMessage(DeviceContext.class, MessageSpy.StatisticsGroup.OFJ_BACKPRESSURE_OFF);
@@ -58,7 +58,7 @@ public class PacketInRateLimiterTest {
     }
 
     @Test
-    public void testDrainLowWaterMark() throws Exception {
+    public void testDrainLowWaterMark() {
         // scenario:
         // occupy 4 permits
         // drain low water mark = lwm temporarily set to 50% (= 2) and get limited
@@ -111,7 +111,7 @@ public class PacketInRateLimiterTest {
     }
 
     @Test
-    public void testAcquirePermit() throws Exception {
+    public void testAcquirePermit() {
         Assert.assertEquals(0, rateLimiter.getOccupiedPermits());
         Assert.assertFalse(rateLimiter.isLimited());
 
@@ -141,7 +141,7 @@ public class PacketInRateLimiterTest {
     }
 
     @Test
-    public void testChangeWaterMarks1() throws Exception {
+    public void testChangeWaterMarks1() {
         rateLimiter.changeWaterMarks(2, 4);
         acquirePermits(4);
         Assert.assertEquals(4, rateLimiter.getOccupiedPermits());
@@ -168,7 +168,7 @@ public class PacketInRateLimiterTest {
     }
 
     @Test
-    public void testChangeWaterMarks2() throws Exception {
+    public void testChangeWaterMarks2() {
         // draining to lwm/occupied = 3/6
         acquirePermits(6);
         rateLimiter.drainLowWaterMark();
index f6dd9445a3fca105ce02f477818291ae38cfb6e7..2b50238b75388d3c7172b5d81b4573f878a3ad76 100644 (file)
@@ -33,13 +33,13 @@ public class SwitchFeaturesUtilTest {
      * and {@link SwitchFeaturesUtil SwitchFeaturesUtil}.
      */
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         featuresOutputBuilder = new GetFeaturesOutputBuilder();
         swUtil = SwitchFeaturesUtil.getInstance();
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         featuresOutputBuilder = null;
         swUtil = null;
     }
index 9d3f1f721b1a014387e400700a068ba69be250ee..1fdad07299016f268da18e50ad5edbe28af8c20d 100644 (file)
@@ -59,7 +59,7 @@ public class TransactionChainManagerTest {
     private NodeId nodeId;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final ReadTransaction readOnlyTx = Mockito.mock(ReadTransaction.class);
         Mockito.when(dataBroker.createTransactionChain(any(TransactionChainListener.class)))
                 .thenReturn(txChain);
@@ -74,12 +74,12 @@ public class TransactionChainManagerTest {
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         Mockito.verifyNoMoreInteractions(txChain, writeTx);
     }
 
     @Test
-    public void testWriteToTransaction() throws Exception {
+    public void testWriteToTransaction() {
         final Node data = new NodeBuilder().setId(nodeId).build();
         txChainManager.writeToTransaction(LogicalDatastoreType.CONFIGURATION, path, data, false);
 
@@ -91,7 +91,7 @@ public class TransactionChainManagerTest {
      * Tests transaction submit {@link TransactionChainManager#submitTransaction()}.
      */
     @Test
-    public void testSubmitTransaction() throws Exception {
+    public void testSubmitTransaction() {
         final Node data = new NodeBuilder().setId(nodeId).build();
         txChainManager.initialSubmitWriteTransaction();
         txChainManager.writeToTransaction(LogicalDatastoreType.CONFIGURATION, path, data, false);
@@ -106,7 +106,7 @@ public class TransactionChainManagerTest {
      * test of {@link TransactionChainManager#submitTransaction()}: no submit, never enabled.
      */
     @Test
-    public void testSubmitTransaction1() throws Exception {
+    public void testSubmitTransaction1() {
         final Node data = new NodeBuilder().setId(nodeId).build();
         txChainManager.writeToTransaction(LogicalDatastoreType.CONFIGURATION, path, data, false);
         txChainManager.submitTransaction();
@@ -117,7 +117,7 @@ public class TransactionChainManagerTest {
     }
 
     @Test
-    public void testSubmitTransactionFailed() throws Exception {
+    public void testSubmitTransactionFailed() {
         Mockito.doReturn(FluentFutures.immediateFailedFluentFuture(new TransactionCommitFailedException("mock")))
             .when(writeTx).commit();
         final Node data = new NodeBuilder().setId(nodeId).build();
@@ -134,7 +134,7 @@ public class TransactionChainManagerTest {
      * Test of {@link TransactionChainManager#enableSubmit()}: no submit - counter is not active.
      */
     @Test
-    public void testEnableCounter1() throws Exception {
+    public void testEnableCounter1() {
         final Node data = new NodeBuilder().setId(nodeId).build();
         txChainManager.writeToTransaction(LogicalDatastoreType.CONFIGURATION, path, data, false);
         txChainManager.writeToTransaction(LogicalDatastoreType.CONFIGURATION, path, data, false);
@@ -145,7 +145,7 @@ public class TransactionChainManagerTest {
     }
 
     @Test
-    public void testOnTransactionChainFailed() throws Exception {
+    public void testOnTransactionChainFailed() {
         txChainManager.onTransactionChainFailed(txChain, Mockito.mock(Transaction.class),
             Mockito.mock(Throwable.class));
         Mockito.verify(txChain).close();
@@ -153,14 +153,14 @@ public class TransactionChainManagerTest {
     }
 
     @Test
-    public void testOnTransactionChainSuccessful() throws Exception {
+    public void testOnTransactionChainSuccessful() {
         txChainManager.onTransactionChainSuccessful(transactionChain);
         // NOOP
         Mockito.verifyZeroInteractions(transactionChain);
     }
 
     @Test
-    public void testAddDeleteOperationTotTxChain() throws Exception {
+    public void testAddDeleteOperationTotTxChain() {
         txChainManager.addDeleteOperationToTxChain(LogicalDatastoreType.CONFIGURATION, path);
 
         Mockito.verify(txChain).newReadWriteTransaction();
@@ -168,14 +168,14 @@ public class TransactionChainManagerTest {
     }
 
     @Test
-    public void testDeactivateTransactionChainManager() throws Exception {
+    public void testDeactivateTransactionChainManager() {
         txChainManager.deactivateTransactionManager();
 
         Mockito.verify(txChain).close();
     }
 
     @Test
-    public void testDeactivateTransactionChainManagerFailed() throws Exception {
+    public void testDeactivateTransactionChainManagerFailed() {
         final Node data = new NodeBuilder().setId(nodeId).build();
         txChainManager.writeToTransaction(LogicalDatastoreType.CONFIGURATION, path, data, false);
 
@@ -189,7 +189,7 @@ public class TransactionChainManagerTest {
     }
 
     @Test
-    public void testShuttingDown() throws Exception {
+    public void testShuttingDown() {
         final Node data = new NodeBuilder().setId(nodeId).build();
         txChainManager.initialSubmitWriteTransaction();
         txChainManager.writeToTransaction(LogicalDatastoreType.CONFIGURATION, path, data, false);
index fe94f681dbe1419315517b935c7c5b3ad4d2b4e7..a3c2bdddea7eb95fc1601ac4a1ad92759fd8fda0 100644 (file)
@@ -26,12 +26,12 @@ public class DeviceInitializerProviderTest {
     private DeviceInitializerProvider provider;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         provider = new DeviceInitializerProvider();
     }
 
     @Test
-    public void register() throws Exception {
+    public void register() {
         provider.register(OFConstants.OFP_VERSION_1_3, abstractDeviceInitializer);
         final Optional<AbstractDeviceInitializer> lookup = provider.lookup(OFConstants.OFP_VERSION_1_3);
         assertTrue(lookup.isPresent());
@@ -39,7 +39,7 @@ public class DeviceInitializerProviderTest {
     }
 
     @Test
-    public void lookup() throws Exception {
+    public void lookup() {
         assertFalse(provider.lookup(OFConstants.OFP_VERSION_1_0).isPresent());
     }
 
index d7da59d7289325675376eb30bab0579a8137598b..8c6ec8934ffbffd98408811f94cc0f0838d7e8ac 100644 (file)
@@ -75,7 +75,7 @@ public class OF10DeviceInitializerTest {
     private AbstractDeviceInitializer deviceInitializer;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final KeyedInstanceIdentifier<Node, NodeKey> nodeInstanceIdentifier = DeviceStateUtil
                 .createNodeInstanceIdentifier(new NodeId("openflow:1"));
 
index 3491d0a8321214478242f70ad0f981347d28b6b3..0f219b200692f6c720831acae5ce2c136316f239 100644 (file)
@@ -82,7 +82,7 @@ public class OF13DeviceInitializerTest {
     private AbstractDeviceInitializer deviceInitializer;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final KeyedInstanceIdentifier<Node, NodeKey> nodeInstanceIdentifier = DeviceStateUtil
                 .createNodeInstanceIdentifier(new NodeId("openflow:1"));
 
index b573d6f7888ac9793c65a3e0c9c7aa3e18e80be8..870f233a6859386c2859380932a86266a2b801c8 100644 (file)
@@ -45,7 +45,7 @@ public class ShowStatsCommandProviderTest extends AbstractKarafTest {
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         // Pattern.DOTALL is set inline via "(?s)" at the beginning
         Mockito.verify(console).print(matches("(?s).+"));
         messageIntelligenceAgency.resetStatistics();
index 9a1c30174d4d68f54d02f297afe98bb2ac1995fa..b684cb7a8f09d703bd2247331b2c9bf48f15160b 100644 (file)
@@ -118,12 +118,12 @@ public class ContextChainHolderImplTest {
     }
 
     @Test
-    public void addManager() throws Exception {
+    public void addManager() {
         Assert.assertTrue(contextChainHolder.checkAllManagers());
     }
 
     @Test
-    public void createContextChain() throws Exception {
+    public void createContextChain() {
         contextChainHolder.createContextChain(connectionContext);
         Mockito.verify(deviceManager).createContext(Mockito.any(ConnectionContext.class));
         Mockito.verify(rpcManager).createContext(Mockito.any(DeviceContext.class));
@@ -133,7 +133,7 @@ public class ContextChainHolderImplTest {
 
 
     @Test
-    public void reconciliationFrameworkFailure() throws Exception {
+    public void reconciliationFrameworkFailure() {
         Mockito.when(reconciliationFrameworkEvent.onDevicePrepared(deviceInfo))
             .thenReturn(Futures.immediateFailedFuture(new Throwable("test")));
         contextChainHolder.createContextChain(connectionContext);
@@ -145,7 +145,7 @@ public class ContextChainHolderImplTest {
     }
 
     @Test
-    public void reconciliationFrameworkDisconnect() throws Exception {
+    public void reconciliationFrameworkDisconnect() {
         Mockito.when(reconciliationFrameworkEvent.onDevicePrepared(deviceInfo))
             .thenReturn(Futures.immediateFuture(ResultState.DISCONNECT));
         contextChainHolder.createContextChain(connectionContext);
@@ -157,7 +157,7 @@ public class ContextChainHolderImplTest {
     }
 
     @Test
-    public void reconciliationFrameworkSuccess() throws Exception {
+    public void reconciliationFrameworkSuccess() {
         contextChainHolder.createContextChain(connectionContext);
         Mockito.when(reconciliationFrameworkEvent.onDevicePrepared(deviceInfo))
             .thenReturn(Futures.immediateFuture(ResultState.DONOTHING));
@@ -170,7 +170,7 @@ public class ContextChainHolderImplTest {
     }
 
     @Test
-    public void reconciliationFrameworkSuccessButNotSubmit() throws Exception {
+    public void reconciliationFrameworkSuccessButNotSubmit() {
         contextChainHolder.createContextChain(connectionContext);
         // TODO when if (future != null) check in MastershipChangeServiceManagerImpl's becomeSlaveOrDisconnect() is rm
         // Mockito.when(reconciliationFrameworkEvent.onDevicePrepared(deviceInfo))
index 690717634b9fa3d13d4d7815222ca9e51a391158..5bac78556d47926d8a706c82390c02cd358f8cc3 100644 (file)
@@ -56,7 +56,7 @@ public class ContextChainImplTest {
     private ContextChain contextChain;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         Mockito.when(deviceContext.getDeviceInfo()).thenReturn(deviceInfo);
         Mockito.when(deviceInfo.getServiceIdentifier()).thenReturn(SERVICE_GROUP_IDENTIFIER);
         Mockito.when(deviceContext.closeServiceInstance()).thenReturn(Futures.immediateFuture(null));
@@ -75,7 +75,7 @@ public class ContextChainImplTest {
     }
 
     @Test
-    public void closeServiceInstance() throws Exception {
+    public void closeServiceInstance() {
         contextChain.closeServiceInstance();
         Mockito.verify(deviceContext).closeServiceInstance();
         Mockito.verify(rpcContext).closeServiceInstance();
@@ -83,7 +83,7 @@ public class ContextChainImplTest {
     }
 
     @Test
-    public void close() throws Exception {
+    public void close() {
         contextChain.registerDeviceRemovedHandler(deviceRemovedHandler);
         contextChain.close();
         Mockito.verify(statisticsContext).close();
@@ -93,7 +93,7 @@ public class ContextChainImplTest {
     }
 
     @Test
-    public void closeTwoTimes() throws Exception {
+    public void closeTwoTimes() {
         contextChain.registerDeviceRemovedHandler(deviceRemovedHandler);
         contextChain.close();
         contextChain.close();
@@ -102,7 +102,7 @@ public class ContextChainImplTest {
     }
 
     @Test
-    public void closeThreeTimes() throws Exception {
+    public void closeThreeTimes() {
         contextChain.registerDeviceRemovedHandler(deviceRemovedHandler);
         contextChain.close();
         contextChain.close();
@@ -111,12 +111,12 @@ public class ContextChainImplTest {
     }
 
     @Test
-    public void getIdentifier() throws Exception {
+    public void getIdentifier() {
         Assert.assertEquals(contextChain.getIdentifier(), SERVICE_GROUP_IDENTIFIER);
     }
 
     @Test
-    public void instantiateServiceInstanceFail() throws Exception {
+    public void instantiateServiceInstanceFail() {
         Mockito.doThrow(new IllegalStateException()).when(deviceContext).instantiateServiceInstance();
         contextChain.instantiateServiceInstance();
         Mockito.verify(contextChainMastershipWatcher)
index 4f78d953a37c27b5475928dbe467b57b88407133..dc1faa98d119e3803f29a813da09c4b10d348acb 100644 (file)
@@ -55,12 +55,12 @@ public class MastershipChangeServiceManagerImplTest {
     }
 
     @Test
-    public void register() throws Exception {
+    public void register() {
         Assert.assertNotNull(registration);
     }
 
     @Test
-    public void registerTwice() throws Exception {
+    public void registerTwice() {
         MastershipChangeRegistration registration2;
         registration2 = manager.register(secondService);
         Assert.assertNotNull(registration);
@@ -79,7 +79,7 @@ public class MastershipChangeServiceManagerImplTest {
     }
 
     @Test
-    public void reconciliationFrameworkRegistration() throws Exception {
+    public void reconciliationFrameworkRegistration() {
         Assert.assertNotNull(registrationRF);
     }
 
@@ -97,7 +97,7 @@ public class MastershipChangeServiceManagerImplTest {
     }
 
     @Test
-    public void becomeMaster() throws Exception {
+    public void becomeMaster() {
         manager.becomeMaster(deviceInfo);
         Mockito.verify(service).onBecomeOwner(deviceInfo);
         manager.becomeSlaveOrDisconnect(deviceInfo);
@@ -105,7 +105,7 @@ public class MastershipChangeServiceManagerImplTest {
     }
 
     @Test
-    public void becomeMasterBeforeDS() throws Exception {
+    public void becomeMasterBeforeDS() {
         manager.becomeMasterBeforeSubmittedDS(deviceInfo);
         Mockito.verify(event).onDevicePrepared(deviceInfo);
     }
@@ -118,7 +118,7 @@ public class MastershipChangeServiceManagerImplTest {
     }
 
     @Test
-    public void evokeEventAfterRegistration() throws Exception {
+    public void evokeEventAfterRegistration() {
         List<DeviceInfo> deviceInfos = new ArrayList<>();
         deviceInfos.add(deviceInfo);
         manager.setMasterChecker(masterChecker);
index c1b1ec1adc6e385f5687262ec42efc06d1fd4293..f6bd14b9a2c8a203abee51c364c95fb72047592c 100644 (file)
@@ -32,12 +32,12 @@ public class MastershipServiceDelegateTest {
     private MastershipServiceDelegate mastershipServiceDelegate;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         mastershipServiceDelegate = new MastershipServiceDelegate(mastershipChangeService, unregisterService);
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         verifyNoMoreInteractions(mastershipChangeService);
         verifyNoMoreInteractions(unregisterService);
     }
@@ -49,13 +49,13 @@ public class MastershipServiceDelegateTest {
     }
 
     @Test
-    public void onBecomeOwner() throws Exception {
+    public void onBecomeOwner() {
         mastershipServiceDelegate.onBecomeOwner(deviceInfo);
         verify(mastershipChangeService).onBecomeOwner(deviceInfo);
     }
 
     @Test
-    public void onLoseOwnership() throws Exception {
+    public void onLoseOwnership() {
         mastershipServiceDelegate.onLoseOwnership(deviceInfo);
         verify(mastershipChangeService).onLoseOwnership(deviceInfo);
     }
index 11f1e92f2ebfb8b0d6db9eb02b2ca3f960a85dde..8b02bc41789d71bb7af25874eabb62a805fc1734 100644 (file)
@@ -34,7 +34,7 @@ public abstract class AbstractDeserializerTest {
     private DeserializationFactory factory;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         registry = new DeserializerRegistryImpl();
         registry.init();
         factory = new DeserializationFactory(registry);
@@ -45,7 +45,7 @@ public abstract class AbstractDeserializerTest {
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         DeserializerInjector.revertDeserializers(provider);
         MessageDeserializerInjector.revertLegacyDeserializers(provider);
     }
index c63720d052ec19fbfc37db30dd7189c540912455..a38e7345b27f648f88917ad01da62f3c98ad912e 100644 (file)
@@ -36,13 +36,13 @@ public class MessageDeserializerInjectorTest {
             injector;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         injector = MessageDeserializerInjector.createInjector(switchConnectionProvider, EncodeConstants
                 .OF13_VERSION_ID);
     }
 
     @Test
-    public void injectDeserializers() throws Exception {
+    public void injectDeserializers() {
         injector.apply(10).apply(OfHeader.class).accept(ofDeserializer);
         verify(switchConnectionProvider).unregisterDeserializerMapping(new TypeToClassKey(EncodeConstants
                 .OF13_VERSION_ID, 10));
index 1233b70df8fb58b345e375d8275a389e96972589..0b858c0c97eca828100f5888cbbab5ac0af06c71 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class CopyTtlInActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         writeHeader(in);
         in.writeZero(ActionConstants.PADDING_IN_ACTION_HEADER);
index 8664b942d0ab55507f3adb3231a5e51e0fff17d8..df6029d6dfade5e617d7154b1ebef1644232306d 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class CopyTtlOutActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         writeHeader(in);
         in.writeZero(ActionConstants.PADDING_IN_ACTION_HEADER);
index 523b9b55db33784b5658b80a63cbb7d2be44ed83..111fbfce790a7deda56df5095666f21b44d0c55d 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class DecMplsTtlActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         writeHeader(in);
         in.writeZero(ActionConstants.PADDING_IN_ACTION_HEADER);
index 042d972f91ef2e847a1a67a3251e39721e369daf..c34bc3db1eb11b6d6cae4290180ae8f9c2d5db09 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class DecNwTtlActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         writeHeader(in);
         in.writeZero(ActionConstants.PADDING_IN_ACTION_HEADER);
index 2ac12464bbfeb32e3c617b208531cde70b4fc5b6..d74de713c8dbcf8f59fb8deefb1385128154c291 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class GroupActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int groupId = 10;
         writeHeader(in);
index 78dc6e26c4318d1d36b1c8f916fb6cd6132752d3..efd1c2b4536b397ca0c610f17c22b73b368eacf4 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class OutputActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int portNum = 10;
         final short maxLength = 24;
index bfa103a553bb7384b523b6c9a1711a204461b064..865465b33791395bc51e779b7438ff0d214a1b99 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class PopMplsActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short ethType = 10;
         writeHeader(in);
index c2475578a120674226ea8db8d3c2c32588d74d52..1634e2f5c673c324721e843ff795fddf4939dead 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class PopPbbActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         writeHeader(in);
         in.writeZero(ActionConstants.PADDING_IN_ACTION_HEADER);
index c0e5de8d814180276bdfc133615c353772dbc322..0d28b786fa7c94200086753a7d52f1616875a8eb 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class PopVlanActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         writeHeader(in);
         in.writeZero(ActionConstants.PADDING_IN_ACTION_HEADER);
index 1e6c7a73c526057f1bc16bd9136b981d9dda9b41..a386a54129d7eeb129db87f2b65b8ff012d7e7b1 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class PushMplsActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short ethType = 10;
         writeHeader(in);
index cfa09680c328c95881095b9c902dc32ff5d322a5..fbee9e841ae505784cce180e1e17e199cfbfbf97 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class PushPbbActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short ethType = 10;
         writeHeader(in);
index 98225c30bbb7645d7745a42e46b6b4d72e786f6d..4a6e38a7abe0ea3a99d633e4e6e1cc0e505c6cb1 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class PushVlanActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short ethType = 10;
         writeHeader(in);
index fcdb910fa102cce844dfd19df6aafcb9c6b2328d..424194b51fdd550b3b577b1046237a7bac85f508 100644 (file)
@@ -25,7 +25,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class SetFieldActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int portNum = 0xfffffffa;
         writeHeader(in);
index d2173640da88a5929fb7f02ba7fb68c60e029017..c4c06a77f14783862eab2b56e420a8a8a8c8827a 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class SetMplsTtlActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short mplsTtl = 10;
         writeHeader(in);
index ec8546b4f66830138d58d9c1d21ad3b876801766..7a3045a26d55758901dcaa718a66e6121bd1af2f 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class SetNwTtlActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short nwTtl = 10;
         writeHeader(in);
index 6cc48057af23c726f7818353d211ec25a647049a..31f03a92b0444f0f102ba511fd4ce9d10efe8ddc 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class SetQueueActionDeserializerTest extends AbstractActionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int queueId = 10;
         writeHeader(in);
index ef81734b0a5030a1b1f56481b84c1d479daf8958..09339f26d12f353d7e9840b8c8bd4c521d6c3b2c 100644 (file)
@@ -37,7 +37,7 @@ public class ApplyActionsInstructionDeserializerTest extends AbstractInstruction
     }
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
 
         // Header
index c878af29a159fad97c40b28f51a1bf28f1a2037b..9a1e9399b105f951278a10c33f8ee52e52775096 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instru
 public class ClearActionsInstructionDeserializerTest extends AbstractInstructionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         writeHeader(in);
         in.writeZero(InstructionConstants.PADDING_IN_ACTIONS_INSTRUCTION);
index cdc8a7e244ada6db31fc6922f481912e93cfa150..02049513572eecc40654b94c439118d007290872 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instru
 public class GoToTableInstructionDeserializerTest extends AbstractInstructionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short tableId = 3;
         writeHeader(in);
index 0b78cb9e8fbbbaf82ab35213a410ca7f3527cd7d..a1c8655f805e8ac4e432acd5acb2c2794b6de8bc 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instru
 public class MeterInstructionDeserializerTest extends AbstractInstructionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int meterId = 3;
         writeHeader(in);
index ca7d27fafeb1369b3dcfda7d137c3c51e30f6115..beecbc29fcd81ac276ef2119a38889cfa196b2db 100644 (file)
@@ -37,7 +37,7 @@ public class WriteActionsInstructionDeserializerTest extends AbstractInstruction
     }
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
 
         // Header
index 9852ae99316ca0f41ca4ba4ce0b654c7e9f76ff2..ae1dc3a2b6205cb3b9df074f4b75d1773e415f59 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instru
 public class WriteMetadataInstructionDeserializerTest extends AbstractInstructionDeserializerTest {
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final BigInteger metadata = BigInteger.valueOf(1234L);
         final BigInteger metadataMask = BigInteger.valueOf(9876L);
index 3e7b1709e8186b8eaaffcf6d2ce529db56a61ee7..c43d3731f2d3eef83ff07fe0aba0b1712577978d 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class ArpOpEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int arpOp = 10;
 
index 0d4d3923d3e1ac78fbee24c8b01746cba41dbd63..75bbd1e8469c12322c9dd1d6f343593352d4026a 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class ArpSourceHardwareAddressEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final MacAddress arpSourceHardwareAddress = new MacAddress("00:01:02:03:04:05");
         final MacAddress arpSourceHardwareAddressMask = new MacAddress("00:00:00:00:00:00");
index 666df7a686d63d06e341c5bb44fbb64a70d77972..a34a750f5317fb4a30b5e5ecd9c7e8236533e7bf 100644 (file)
@@ -26,7 +26,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class ArpSourceTransportAddressEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final Ipv4Prefix arpSourceTransportAddress = new Ipv4Prefix("192.168.0.0/24");
         final Ipv4Prefix arpSourceTransportAddressNoMask = new Ipv4Prefix("192.168.0.0/32");
index 123f9f1353e383789e6d74fe9dba3099a4a8bcde..6d5a189d3b5b3e7cdca0876a518932f17f87413d 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class ArpTargetHardwareAddressEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final MacAddress arpTargetHardwareAddress = new MacAddress("00:01:02:03:04:05");
         final MacAddress arpTargetHardwareAddressMask = new MacAddress("00:00:00:00:00:00");
index a783c9b67b27c77abc0a1ed5f25d3a8edabd177e..1178e5d4741c3997936db0a42ecdc35d8893d2d3 100644 (file)
@@ -26,7 +26,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class ArpTargetTransportAddressEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final Ipv4Prefix arpTargetTransportAddress = new Ipv4Prefix("192.168.0.0/24");
         final Ipv4Prefix arpTargetTransportAddressNoMask = new Ipv4Prefix("192.168.0.0/32");
index 1c488ec2985a17e057e520837eed95dcfa7d91cd..7f3a6aa19c263e9fa5ab9b33f5b410db27f0f900 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class EthernetDestinationEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final MacAddress ethernetDestinationAddress = new MacAddress("00:01:02:03:04:05");
         final MacAddress ethernetDestinationAddressMask = new MacAddress("00:00:00:00:00:00");
index ed83b661ac163e3e1021214d36aabe1ba152efe9..47db37a605418ac464bab06a17ddc82d9eced5b3 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class EthernetSourceEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final MacAddress ethernetSourceAddress = new MacAddress("00:01:02:03:04:05");
         final MacAddress ethernetSourceAddressMask = new MacAddress("00:00:00:00:00:00");
index ede1cf769e01d00898a4a477f7edd2960dcff199..a6423f89b4581800ffec0156e04476db03628e02 100644 (file)
@@ -19,7 +19,7 @@ import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
 public class EthernetTypeEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int ethType = 0x800;
 
index f3665573a003a13ac71d18cb7ffec2b552ba06ad..c9fbf7f17cd3008a18b316162155373319094629 100644 (file)
@@ -19,7 +19,7 @@ import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
 public class Icmpv4CodeEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short code = 7;
 
index 5064722756d7fb57f8242cf6702ac0761407b007..f940f6b5c8484e34932986ffe06a913ed509cdb8 100644 (file)
@@ -19,7 +19,7 @@ import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
 public class Icmpv4TypeEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short type = 7;
 
index 513c795190fbee26cc0eb23470566d6009dfd1a5..0817d0d67abff6d135b0387244e764e7ae463eab 100644 (file)
@@ -19,7 +19,7 @@ import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
 public class Icmpv6CodeEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short code = 7;
 
index 768f97eb18de77908fc5c2098951bbb6b93a44d4..823f004a3739e1f7d0b17b8b70ef757c13a6bd7c 100644 (file)
@@ -19,7 +19,7 @@ import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
 public class Icmpv6TypeEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short type = 7;
 
index 65f85eac6fa080eeaf576fffb9c31345174f84ad..2acfb3063de63ce95500fd1ad0dd3fd23b0d7dba 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.openflowplugin.openflow.md.util.OpenflowPortsUtil;
 public class InPhyPortEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int port = -6;
 
index d28c2daa64adc8db4e480c69c9eb67863bdbacfa..2bed6d9e59dd86889292de7247a2a787063a62dd 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.openflowplugin.openflow.md.util.OpenflowPortsUtil;
 public class InPortEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int port = -6;
 
index 4bf225e2860661866434cff7efce1f46354a84b1..8774d03653c9ee3f90e1413a6f27f599239b610b 100644 (file)
@@ -19,7 +19,7 @@ import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
 public class IpDscpEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short ipDscp = 7;
 
index 86fbb643672aeaa1e471697c2bc5a5fa87b03bcb..9e1b27311dad2d74f734dd2463ae9b320be690e6 100644 (file)
@@ -19,7 +19,7 @@ import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
 public class IpEcnEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short ipEcn = 7;
 
index 2d470b269dd276c57fedbed0f23840ca01a7c95d..828e57333099541d56bd7f8862c223ff666f0f72 100644 (file)
@@ -19,7 +19,7 @@ import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
 public class IpProtoEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short ipProto = 7;
 
index 58c8265ff025d5cbee45e6f2dae4304f58e06221..79baddf8e3506583914caef174c511f21301eb09 100644 (file)
@@ -26,7 +26,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv4DestinationEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final Ipv4Prefix address = new Ipv4Prefix("192.168.72.0/24");
         final Iterator<String> addressParts = IpConversionUtil.splitToParts(address);
index edd2f6a5308a9f3e0f0dc5013de16fd0c2bc9e8d..71d4a24d222b8df92a2584b2bfc1bca3e2310e73 100644 (file)
@@ -26,7 +26,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv4SourceEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final Ipv4Prefix address = new Ipv4Prefix("192.168.72.0/24");
         final Iterator<String> addressParts = IpConversionUtil.splitToParts(address);
index e36bc7db6ba17f6176fe5c4751c2e9e089b699b1..9d7c7d1b98701748121bf56deaeafd6a683aaeef 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6DestinationEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final Ipv6Prefix address = new Ipv6Prefix("fe80::200:f8ff:fe21:67cf/30");
 
index 46700669aec1ac5a45678a51ae6b3a601345fe2b..07a8703fc95d0e0b0af3acca77caaaf0d8705093 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6ExtHeaderEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int extHeader = 10;
         final int extHeaderMask = 8;
index 1c55074f3764e5a369c072f14e3c5d2e4ce791e8..2e926a66d1a88da5df71c45c8adb3899d422727b 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6FlabelEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int flowLabel = 10;
         final int flowLabelMask = 8;
index 2c8e2707e2054bcfe1ccc098d7720322cc9f7536..0abb27f6b3ae8a4c441ba97a279789d825b21cd6 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6NdSllEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final MacAddress address = new MacAddress("00:01:02:03:04:05");
 
index d8131392a94dbe24ed94cd990f5bc0250631dd86..3869b3f8393bf4de27dac8500d0e929835107598 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6NdTargetEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final Ipv6Address address = new Ipv6Address("2001:db8::");
 
index 4ac20ff0afe0174ea72cb40df900abed733af319..110833cb3aa7201de26cdf66fc25b93ee779acc5 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6NdTllEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final MacAddress address = new MacAddress("00:01:02:03:04:05");
 
index d40e7361a77e0e8cc958321d709f0f9827ff43da..25c4b25a6504e861aea8a55a6aa11fd506fa7e11 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6SourceEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final Ipv6Prefix address = new Ipv6Prefix("fe80::200:f8ff:fe21:67cf/30");
 
index d65aa98c338d8cd97e1877668e80dad18e3c42da..bc45a9104490a16042dd0b7cfbd33dc7c4a4d132 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class MetadataEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final BigInteger metadata = BigInteger.valueOf(20);
         final BigInteger metadataMask = BigInteger.valueOf(30);
index e9853d9e877aa6073dcd1f15d3ef18c1290c24d3..c89114f7891653e81a2838e65b1a9c58f650a3e2 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class MplsBosEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short mplsBos = 6;
 
index e6d96d2d152da5c07456b1d306526ff698658824..45eeda5c0ccb323a30317e5046d9fd6476e066eb 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class MplsLabelEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int mplsLabel = 10;
 
index bdba3a8b14012dfccb733a28c81acd0ed934d305..3660205c369b5a53481ee92f04c1c0aba530b612 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class MplsTcEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short mplsTc = 6;
 
index 57d5b52ee1dc1d097090187e355ff4a7c737b1d6..05f37c6486bc064f19982fa60c212bd0c8b04f4e 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class PbbEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final long pbb = 6;
         final long pbbMask = 5;
index aa4fd5f21207542f18495e1c3d8d91a485f280c4..4456ccf7ed51c7b6f8703b4e13cf556b70d16500 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class SctpDestinationPortEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int port = 22;
 
index b05cc164e2bc7ad8bed85b80d5bb5821e707289b..990a4b26d323a3ff654f1c61f6ce11e0e362e08d 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class SctpSourcePortEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int port = 22;
 
index 3a038cd764f8a88245f1660acd98766d3276468b..f033940926187c36e28dae6b66a3461a95f3c1b7 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class TcpDestinationPortEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int port = 22;
 
index 5aef1bd0f001768487f3d41a1651c6963b4b4b3d..d897510f30b478d31897ac0b0cd32319045c4d72 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class TcpFlagsEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int tcpFlags = 6;
         final int tcpFlagsMask = 5;
index 31ce7228cc9eef13c02c52e55ca9677616d3908c..6dcf7d00eb71e7c14307cc2984967afd67e3bd1a 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class TcpSourcePortEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int port = 22;
 
index 4b3f0e7a40aad30cc9f8ef8692954dbae031aa68..f6ceff81a6022b2f7113dc0e1cd43919be92d403 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class TunnelIdEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final BigInteger tunnelId = BigInteger.valueOf(6);
         final BigInteger tunnelIdMask = BigInteger.valueOf(5);
index 10172200fd387c635a536bc2298390b639978775..30a598d6e1a77912ca652902835bff7b2629aac6 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class UdpDestinationPortEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int port = 22;
 
index b39392be1c2ab5cebf39ff39e81a0506de82fbf2..ed07da294e530c573e95c48d91779a9d31b4967d 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class UdpSourcePortEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int port = 22;
 
index bbbee15d9e2f549d69521e187f1af06039b084be..6ee6f289efebdfbd71263bc9dbb044f25c66f9c9 100644 (file)
@@ -19,7 +19,7 @@ import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
 public class VlanPcpEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final short vlanPcp = 7;
 
index fd1d975204b0f636b5c3663c8f738c6c5bab11d7..14964f0b15b9b3d9baf30ed9cec3fde1ada6ebf6 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class VlanVidEntryDeserializerTest extends AbstractMatchEntryDeserializerTest {
 
     @Test
-    public void deserializeEntry() throws Exception {
+    public void deserializeEntry() {
         final ByteBuf in = UnpooledByteBufAllocator.DEFAULT.buffer();
         final int vlanVid = 8;
         final byte[] vlanMask = new byte[]{16, 0};
index fa74fc899e74dc3533ef5146d2b34d881c4a473d..a1daa00b1de1c3de061f7da08d88f67fa550396d 100644 (file)
@@ -62,7 +62,7 @@ public class FlowMessageDeserializerTest extends AbstractDeserializerTest {
     }
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         // Flow header
         buffer.writeByte(TYPE);
         buffer.writeShort(EncodeConstants.EMPTY_LENGTH);
index 3a24e8e1307e1b24be51d0e97e532b4927f414dc..1d0caa73dabb186909224b78a47eaa3cc5dc16bd 100644 (file)
@@ -44,7 +44,7 @@ public class GroupMessageDeserializerTest extends AbstractDeserializerTest {
     }
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         // Group header
         buffer.writeByte(TYPE);
         buffer.writeShort(EncodeConstants.EMPTY_LENGTH);
index bac0ff6ad032ca6a85deabcd7791fca96fe95039..628424aefd73054f1c452531e00cf8e0c16ee057 100644 (file)
@@ -50,7 +50,7 @@ public class MeterMessageDeserializerTest extends AbstractDeserializerTest {
     }
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         buffer.writeByte(TYPE); // Message type
         buffer.writeShort(EncodeConstants.EMPTY_LENGTH);
         buffer.writeInt(XID);
index 1cf28613cd303f6b330fc490f9e977d7673a6c48..11d3414ee408c770f06ee70a1dcd73089bc48ea1 100644 (file)
@@ -39,7 +39,7 @@ public class PacketInMessageDeserializerTest extends AbstractDeserializerTest {
     }
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         buffer.writeByte(TYPE);
         buffer.writeShort(EncodeConstants.EMPTY_LENGTH);
         buffer.writeInt(XID);
index 22d5c6558644311ff80a7f4e2704692659a6cd62..e7619d85eb90f0c77960e609893f9769377ce5e0 100644 (file)
@@ -60,7 +60,7 @@ public class PortMessageDeserializerTest extends AbstractDeserializerTest {
     }
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         buffer.writeByte(TYPE);
         buffer.writeShort(EncodeConstants.EMPTY_LENGTH);
         buffer.writeInt(XID);
index 1caef2ff1d102c1eafb8bceab83b8ec2cfcfb665..729eb48d3bf7d515acf54e79b4421fe4da54dd3d 100644 (file)
@@ -26,7 +26,7 @@ public class MultipartReplyDescDeserializerTest extends AbstractMultipartDeseria
     private static final String DESCRIPTION = "Description";
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         buffer.writeBytes(MANUFACTURER.getBytes());
         buffer.writeZero(DESC_STR_LEN - MANUFACTURER.length());
index e1a36578d71a508d22f458d5ac162ee7e0b082b0..8deff4a9accfa5826ce41c7736620d3433bd3060 100644 (file)
@@ -23,7 +23,7 @@ public class MultipartReplyFlowAggregateStatsDeserializerTest extends AbstractMu
     private static final byte PADDING_IN_MULTIPART_REPLY_HEADER = 4;
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         buffer.writeLong(PACKET_COUNT);
         buffer.writeLong(BYTE_COUNT);
index 041c1c13194d784bbe631f6935511ea9add0a276..0496b30af306ccd2b41769188afcb0debe5c89ef 100644 (file)
@@ -56,7 +56,7 @@ public class MultipartReplyFlowStatsDeserializerTest extends AbstractMultipartDe
     private static final int MPLS_LABEL = 135;
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
 
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
 
index 8613feb8697e4e3714bfe20ca5db6e8a4a198db0..04c49b458f52bfdb5eb00fb9d752e231460eb476 100644 (file)
@@ -24,7 +24,7 @@ public class MultipartReplyFlowTableStatsDeserializerTest extends AbstractMultip
     private static final byte PADDING_IN_TABLE_HEADER = 3;
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         buffer.writeByte(TABLE_ID);
         buffer.writeZero(PADDING_IN_TABLE_HEADER);
index a139ee2d4023ae4a079c3017bdd3be7fd8992dfa..464583f3329ea1851a63b5be639ab2b33309db85 100644 (file)
@@ -30,7 +30,7 @@ public class MultipartReplyGroupDescDeserializerTest extends AbstractMultipartDe
     private static final int WATCH_GROUP = 4;
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         buffer.writeShort(ITEM_LENGTH);
         buffer.writeByte(GROUP_TYPE);
index 1de6d0ca60c7f91663692cbc1a5b820dfd143cbd..416c4c37db26e380e66c6a81d73b7c503181ef35 100644 (file)
@@ -41,7 +41,7 @@ public class MultipartReplyGroupFeaturesDeserializerTest extends AbstractMultipa
             GroupCapabilities.ChainingChecks);
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
 
         int bitMaskGroups = ByteBufUtils.fillBitMask(0,
                 GROUP_TYPES_SUPPORTED.contains(GroupTypes.GroupAll),
index bf7070873bb1876cec265ead453299dced2f59ff..f6a00986e9424f4101a19b6863f1898f877298db 100644 (file)
@@ -29,7 +29,7 @@ public class MultipartReplyGroupStatsDeserializerTest extends AbstractMultipartD
     private static final long BYTE_COUNT = 2L;
 
     @Test
-    public void testDeserialize() throws Exception {
+    public void testDeserialize() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         buffer.writeShort(ITEM_LENGTH);
         buffer.writeZero(PADDING_IN_GROUP_HEADER_01);
index b20632245a0815c53b3cfc90693563b929d66799..d6ebcbcc026f5ba71448cc11e3b2dfcefedb2f6f 100644 (file)
@@ -64,7 +64,7 @@ public class MultipartReplyMessageDeserializerTest extends AbstractDeserializerT
     }
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         buffer.writeByte(TYPE);
         buffer.writeShort(EncodeConstants.EMPTY_LENGTH);
index ab7d2555478ae361d35a0af19962322b00c4f87f..3de6d6443c7aea8d1fcdde2bb397695d06dd361b 100644 (file)
@@ -40,7 +40,7 @@ public class MultipartReplyMeterConfigDeserializerTest extends AbstractMultipart
     private static final byte PREC_LEVEL = 3;
 
     @Test
-    public void deserializeDrop() throws Exception {
+    public void deserializeDrop() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         writeCommonAtributes(buffer);
         buffer.writeShort(OFPMBTDROP);
@@ -60,7 +60,7 @@ public class MultipartReplyMeterConfigDeserializerTest extends AbstractMultipart
     }
 
     @Test
-    public void deserializeDscp() throws Exception {
+    public void deserializeDscp() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         writeCommonAtributes(buffer);
         buffer.writeShort(OFPMBTDSCP);
index c8525c17d7d7cb62652252f44de34e0c570c6f31..db377096f89f4a964f8ebd67c4fd4bbeece6f092 100644 (file)
@@ -35,7 +35,7 @@ public class MultipartReplyMeterFeaturesDeserializerTest extends AbstractMultipa
     private static final byte MAX_COLOR = 48;
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         buffer.writeInt(MAX_METER);
 
index 1dc3e467b08d2b897b0dd5c5ae597f3f6af6ff26..725d4d7ff7010f7f4398af249cd61d3482a97f06 100644 (file)
@@ -30,7 +30,7 @@ public class MultipartReplyMeterStatsDeserializerTest extends AbstractMultipartD
     private static final long BYTE_BAND_COUNT = 8L;
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         buffer.writeInt(METER_ID);
         buffer.writeShort(ITEM_LENGTH);
index 709c1e8d1f1518cc806a1d3ad93aaf493126adcb..b1ed1ececc9ca2ee9ad9480bf8e30ef4e406787c 100644 (file)
@@ -65,7 +65,7 @@ public class MultipartReplyPortDescDeserializerTest extends AbstractMultipartDes
     private static final int MAXIMUM_SPEED = 10;
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         buffer.writeInt(PORT_NUMBER);
         buffer.writeZero(PADDING_IN_PORT_DESC_HEADER_01);
index 9b5aec36606590c813a9f7afe550d93a7ada3560..e325e00b593b550fb91ae55547463747e9f0442b 100644 (file)
@@ -36,7 +36,7 @@ public class MultipartReplyPortStatsDeserializerTest extends AbstractMultipartDe
     private static final int NANOSECOND = 15;
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         buffer.writeInt(PORT);
         buffer.writeZero(PADDING_IN_PORT_STATS_HEADER);
index 98efa83cfb6bbc8a64f142442f0a6f2a5ab436c8..feb8a0ef9a58ff892fe0abf1ef1242fedd510439 100644 (file)
@@ -27,7 +27,7 @@ public class MultipartReplyQueueStatsDeserializerTest extends AbstractMultipartD
     private static final int NANOSECOND = 15;
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         buffer.writeInt(PORT);
         buffer.writeInt(QUEUE_ID);
index 943b517b1a46a1e4e02431a78cd433cc3ed71219..88d8193c80a257ab979ffcba0e0826e60087ca6b 100644 (file)
@@ -61,7 +61,7 @@ public class MultipartReplyTableFeaturesDeserializerTest extends AbstractMultipa
     private static final int OFPTFPT_APPLY_SETFIELD_MISS = 15;
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
 
         writeValues(buffer, OFPTFPT_INSTRUCTIONS);
index d77836c58b0f093314eb6e8caa7081be407b19f7..77347964f4b824c438ed1fe8830ed002579bcd09 100644 (file)
@@ -61,7 +61,7 @@ public class TableFeaturesMatchFieldDeserializerTest {
     private TableFeaturesMatchFieldDeserializer deserializer = new TableFeaturesMatchFieldDeserializer();
 
     @Test
-    public void deserialize() throws Exception {
+    public void deserialize() {
         ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
 
         addValues(buffer, OxmMatchConstants.OPENFLOW_BASIC_CLASS, OxmMatchConstants.ARP_OP);
index 5a367880e5f224106e36d5b124a3157daea33eac..909c81175452ca9655d03e39a775b8d8386918c9 100644 (file)
@@ -32,7 +32,7 @@ public abstract class AbstractSerializerTest {
     private SerializerRegistry registry;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         registry = new SerializerRegistryImpl();
         registry.init();
         provider = new SerializerExtensionProviderImpl(registry);
index 4bf6c0c11df82dac974ce2aa00a3c69e828334f7..56918adde419c6d1cbf2724625bf5e234e12cb19 100644 (file)
@@ -36,12 +36,12 @@ public class ActionSerializerInjectorTest {
     private Function<Class<? extends Action>, Consumer<OFSerializer<? extends Action>>> injector;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         injector = ActionSerializerInjector.createInjector(switchConnectionProvider, EncodeConstants.OF13_VERSION_ID);
     }
 
     @Test
-    public void injectSerializers() throws Exception {
+    public void injectSerializers() {
         injector.apply(CopyTtlInCase.class).accept(actionSerializer);
         verify(switchConnectionProvider).registerSerializer(
                 new MessageTypeKey<Object>(EncodeConstants.OF13_VERSION_ID, CopyTtlInCase.class),
index e1e24817cfb96a26fe0431c206ba6935d26eb369..721e3f611f7359702b0093aa64ad66920a8e78a4 100644 (file)
@@ -36,13 +36,13 @@ public class InstructionSerializerInjectorTest {
     private Function<Class<? extends Instruction>, Consumer<OFSerializer<? extends Instruction>>> injector;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         injector =
                 InstructionSerializerInjector.createInjector(switchConnectionProvider, EncodeConstants.OF13_VERSION_ID);
     }
 
     @Test
-    public void injectSerializers() throws Exception {
+    public void injectSerializers() {
         injector.apply(ApplyActionsCase.class).accept(instructionSerializer);
         verify(switchConnectionProvider).registerSerializer(
                 new MessageTypeKey<>(EncodeConstants.OF13_VERSION_ID, ApplyActionsCase.class),
index 879b91764d4f277d1c28ab6593772c4a0f88de43..5768f025cc47fe2f1dddc2ba58ae34f5baeaae04 100644 (file)
@@ -40,7 +40,7 @@ public class MessageSerializerInjectorTest {
     }
 
     @Test
-    public void injectSerializers() throws Exception {
+    public void injectSerializers() {
         injector.apply(OfHeader.class).accept(ofSerializer);
         verify(switchConnectionProvider)
                 .registerSerializer(new MessageTypeKey<>(OFConstants.OFP_VERSION_1_3, OfHeader.class), ofSerializer);
index 667f3876337d524602738fc8ed083dd9fbabd21c..3c3b1515e36c4d9da2fbc5ceb4c5501f0a58a431 100644 (file)
@@ -18,7 +18,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class CopyTtlInActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Action action = new CopyTtlInCaseBuilder()
                 .setCopyTtlIn(new CopyTtlInBuilder()
                         .build())
index 14f90b2ed4880712fdf9582115127a0238a69242..aecbb025f99e74441af1adb4a1234d90c7cbffbd 100644 (file)
@@ -18,7 +18,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class CopyTtlOutActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Action action = new CopyTtlOutCaseBuilder()
                 .setCopyTtlOut(new CopyTtlOutBuilder()
                         .build())
index 415c7e5b67da9b08d64f1e3af8c6691f6ba65c2e..396bb33f7074ec61a00446228c51daa6da6098e5 100644 (file)
@@ -18,7 +18,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class DecMplsTtlActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Action action = new DecMplsTtlCaseBuilder()
                 .setDecMplsTtl(new DecMplsTtlBuilder()
                         .build())
index 6d3fa185f8e09c9bbf419441cb9ae1d9d9cd62fa..b5e54fc0f0077e8181401c1e94ed65a46385670a 100644 (file)
@@ -18,7 +18,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class DecNwTtlActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Action action = new DecNwTtlCaseBuilder()
                 .setDecNwTtl(new DecNwTtlBuilder()
                         .build())
index 47fcf4b33c9b3f5efb2b88e98f86bd9935f0d359..08a721d9a5e1463c5e4d7635d8f3628ad8aaa611 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class GroupActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final long group = 10L;
 
         final Action action = new GroupActionCaseBuilder()
index 1e114c2dbd8e08a2c5847c7ed2805b5876bbf784..bbe5360eb6cb6191dd67942b59e695cd28e0d745 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev13
 public class OutputActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int length = 10;
         final String port = OutputPortValues.LOCAL.toString();
 
index 253054d5e971359832429f0777e00aa4182a53ae..b3b2d56cadf54640180782203c73efdd84f2f5ed 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class PopMplsActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int ethType = 10;
 
         final Action action = new PopMplsActionCaseBuilder()
index 4461580f74dd7320a9a500414564a9fba6bf3838..459a43555c9a4fa63b64f972eaee77291561aa5e 100644 (file)
@@ -18,7 +18,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class PopPbbActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Action action = new PopPbbActionCaseBuilder()
                 .setPopPbbAction(new PopPbbActionBuilder()
                         .build())
index 302e1bad3837eb81cf025f5f9a44b0d83e69c1d9..947cf9ac572db414d72fe9ce2684f6797913f5f9 100644 (file)
@@ -18,7 +18,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class PopVlanActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Action action = new PopVlanActionCaseBuilder()
                 .setPopVlanAction(new PopVlanActionBuilder()
                         .build())
index 24dfa5f8607c8c4ea6c2252de10b612cf499355c..07bf12e9b90d1113cb7050543f63e7dd9dfc45d0 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class PushMplsActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int ethType = 10;
 
         final Action action = new PushMplsActionCaseBuilder()
index 9ac7fa80e9e48b516042c0d67bd4438af4806a1f..d97492168ebb3e1082ca25301acc3071c0fdb44e 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class PushPbbActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int ethType = 10;
 
         final Action action = new PushPbbActionCaseBuilder()
index 731ce1d8b850d6a1219a8d7aca0fc1bde6b2fc17..5dd7d7151758a08818ebfb06ed3c85a42479a895 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class PushVlanActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int ethType = 10;
 
         final Action action = new PushVlanActionCaseBuilder()
index 7f09a69489de559693c20609373a1cff0fee2852..b6c70c1938b26907ae1ee8f650375a222984666f 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class SetDlDstActionSerializerTest extends AbstractSetFieldActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final MacAddress address = new MacAddress("00:01:02:03:04:05");
 
         final Action action = new SetDlDstActionCaseBuilder()
index 03249df81a9b13f93fe6911b30a65207e02a0646..34d5845a6ab3d05b1428c53c99c2d21438053d73 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class SetDlSrcActionSerializerTest extends AbstractSetFieldActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final MacAddress address = new MacAddress("00:01:02:03:04:05");
 
         final Action action = new SetDlSrcActionCaseBuilder()
index 36bec2f1b800d2d546e375963039ccf3670dd8a1..ba7ee370ea390bf10c765f48069b02e0175e7880 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class SetMplsTtlActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short mpls = (short) 10;
 
         final Action action = new SetMplsTtlActionCaseBuilder()
index 25b25dc1a4f2bf0028ee825fc77264f2d01d69a5..86041264b551a88c2d3839782c155053e6158e01 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.addr
 public class SetNwDstActionSerializerTest extends AbstractSetFieldActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Ipv4 address = new Ipv4Builder()
                 .setIpv4Address(new Ipv4Prefix("192.168.76.2/32"))
                 .build();
index 974d831ff2957e806f095ade763c317f030368ed..c490c4e16deacbbc438bb818185e984ea7e09d3a 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.addr
 public class SetNwSrcActionSerializerTest extends AbstractSetFieldActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Ipv4 address = new Ipv4Builder()
                 .setIpv4Address(new Ipv4Prefix("192.168.76.2/32"))
                 .build();
index 6953018c0c290ee1a603724ab0fbf4cced577bb6..c52744bea2ef5383d1b2bb97441c05816de29b6b 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class SetNwTosActionSerializerTest extends AbstractSetFieldActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int tos = 10;
 
         final Action action = new SetNwTosActionCaseBuilder()
index 7eadf5c6b51da451154d105d765e46333fc0561d..a79a34adf1f24b4d8e39887b74ffe4c537aa681e 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class SetNwTtlActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short ttl = 10;
 
         final Action action = new SetNwTtlActionCaseBuilder()
index a3414d1a6ba173bddd91d66e00fff5de9746eb9d..989a2c1b23f592994d0405c7a92b8084380a2815 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class SetQueueActionSerializerTest extends AbstractActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final long queue = 10;
 
         final Action action = new SetQueueActionCaseBuilder()
index 65e1a842f58d0e715642871b3cf4f013631e833a..1f4e60a534ac35c176a4dca78db4a9e60564b867 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class SetTpDstActionSerializerTest extends AbstractSetFieldActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final PortNumber port = new PortNumber(20);
         final short protocol = 6; // TCP
 
index 95e28278981a110b404cd1e38e9fa400911a8c6d..0c09fe5a8515a1d76305ffa3e0e7d543cad12b0e 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class SetTpSrcActionSerializerTest extends AbstractSetFieldActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final PortNumber port = new PortNumber(20);
         final short protocol = 6; // TCP
 
index cf8fab38283e088a10cdf175c242217e2b9d769b..c90c554f606c0750642a67bac00f5099a5d8e6c1 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId;
 public class SetVlanIdActionSerializerTest extends AbstractSetFieldActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int vlan = 1;
 
         final Action action = new SetVlanIdActionCaseBuilder()
index c03de2bcea45c4fb930a253dd459d76066272455..e45692fde9e2ac385671fd35ad2164995c2d9718 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanPcp;
 public class SetVlanPcpActionSerializerTest extends AbstractSetFieldActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short vlan = 1;
 
         final Action action = new SetVlanPcpActionCaseBuilder()
index 14b8e04bd3da18b6b5e7c2e697cc9e8d72968e3d..38d8722016d12a534d377c92d2143f6b4da66a75 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 public class StripVlanActionSerializerTest extends AbstractSetFieldActionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Action action = new StripVlanActionCaseBuilder()
                 .setStripVlanAction(new StripVlanActionBuilder()
                         .build())
index 10c404c5f677520d7e091de64668fa223cd96af5..6d3beb080e7a9fb9adf13f34f16587b936cd7738 100644 (file)
@@ -31,7 +31,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instru
 public class ApplyActionsInstructionSerializerTest extends AbstractInstructionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int order = 0;
         final Ipv4Prefix prefix = new Ipv4Prefix("192.168.76.0/32");
 
index 876907d2c70c27fd4565cb4495fefffc6c88f401..2b6c81a5e2859e11e50e3126f31796edb4bf120d 100644 (file)
@@ -18,7 +18,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instru
 public class ClearActionsInstructionSerializerTest extends AbstractInstructionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Instruction instruction = new ClearActionsCaseBuilder()
                 .setClearActions(new ClearActionsBuilder()
                         .build())
index fc130ce5f1e1634965acaa7b0097f3f60d70d3f2..a139636b1eb6a5f181b63d8597e69f66e9af6530 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instru
 public class GoToTableInstructionSerializerTest extends AbstractInstructionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short table = 2;
 
         final Instruction instruction = new GoToTableCaseBuilder()
index 090b58c794f5224e15ff39fa94fd5672b4e2e6c6..4ef6b3d5f9e1e625090773da6077b18ad090dc2d 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.Meter
 public class MeterInstructionSerializerTest extends AbstractInstructionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final long meter = 2;
 
         final Instruction instruction = new MeterCaseBuilder()
index 3cb9e2a319f099e942494e7cace103b2d447637d..f2707430a635b5920f34c125e9abb83eb68826d1 100644 (file)
@@ -31,7 +31,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instru
 public class WriteActionsInstructionSerializerTest extends AbstractInstructionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int order = 0;
         final Ipv4Prefix prefix = new Ipv4Prefix("192.168.76.0/32");
 
index 10b0d8195c69e334b0d79916111ae68385b56815..a7fec8abf3b224b16201f50045c85670cbc2f2e8 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instru
 public class WriteMetadataInstructionSerializerTest extends AbstractInstructionSerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final long metadata = 10L;
         final long metadataMask = 10L;
 
index 71bcddef1c32ce3a3726c3d79726f3953ded3736..e076f87f1ea95af5879f3b0d227940f058d73d7d 100644 (file)
@@ -20,7 +20,7 @@ public abstract class AbstractExperimenterMatchEntrySerializerTest extends Abstr
 
     protected void assertMatch(final Match match,
                                final boolean hasMask,
-                               final Consumer<ByteBuf> assertBody) throws Exception {
+                               final Consumer<ByteBuf> assertBody) {
         final ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         getSerializer().serialize(match, buffer);
 
index 69ba89747ea77499154a7e60f8737c57c807b687..16197beb098bd89c584affc0ee3c98b342bf252f 100644 (file)
@@ -28,7 +28,7 @@ public abstract class AbstractMatchEntrySerializerTest extends AbstractSerialize
 
     protected void assertMatch(final Match match,
                                final boolean hasMask,
-                               final Consumer<ByteBuf> assertBody) throws Exception {
+                               final Consumer<ByteBuf> assertBody) {
         final ByteBuf buffer = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(match, buffer);
 
index 37d04f63c53677aad82201bf39471c08ab387e0a..cfd2f7a9b48d396498c47a64df59e2b118724b0a 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class ArpOpEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int arpOp = 42;
 
         final Match arpOpMatch = new MatchBuilder()
index 89f6cce17f29117c23d241e05da0ec47a6951802..58510aa7f67b62a1130da5ffe57a9a41af985273 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class ArpSourceHardwareAddressEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final MacAddress address = new MacAddress("00:01:02:03:04:05");
         final MacAddress mask = new MacAddress("00:00:00:00:00:00");
 
index f1a62286634cdaa3275edff4a04ff5d3b0ff59ef..a3cc7e0ca2e35ad62a586aa5cc77827aaf0cce62 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class ArpSourceTransportAddressEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Match arpSpaMatch = new MatchBuilder()
                 .setLayer3Match(new ArpMatchBuilder()
                         .setArpSourceTransportAddress(new Ipv4Prefix("10.0.2.0/24"))
index 81788f2a3e657a3caf5de8c6f4ad56608f2900d0..f36f5d32bc9a48ffaf54e40fb74069c0237ae418 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class ArpTargetHardwareAddressEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final MacAddress address = new MacAddress("00:01:02:03:04:05");
         final MacAddress mask = new MacAddress("00:00:00:00:00:00");
 
index e8e5b6c6335d1d61fd23d11c79bb17623d819360..8ab6ab5b34fca6ed4877ed90ec244f5b0f0744fd 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class ArpTargetTransportAddressEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Match arpSpaMatch = new MatchBuilder()
                 .setLayer3Match(new ArpMatchBuilder()
                         .setArpTargetTransportAddress(new Ipv4Prefix("10.0.2.0/24"))
index e9bf5d2b0108934cbc6013fe0b62598c6adc39a2..4abfd2a73066d9b5c886d17ca3cbe566ce8edf7c 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 
 public class EthernetDestinationEntrySerializerTest extends AbstractMatchEntrySerializerTest {
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final MacAddress address = new MacAddress("00:01:02:03:04:05");
         final MacAddress mask = new MacAddress("00:00:00:00:00:00");
 
index 7b099129cc1251649cf7ae106bf2bf72f6471aaa..d2c8aa1ed055e2752993f7de85e5cbc6a92fbe96 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class EthernetSourceEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final MacAddress address = new MacAddress("00:01:02:03:04:05");
         final MacAddress mask = new MacAddress("00:00:00:00:00:00");
 
index 3dd5439c3f0cfd04a7171b49ee72d8d245a9b4ca..e6ee2d72ce8dbbd1a5aafe9b07b51f0d339dad14 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class EthernetTypeEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final long ethType = 0xffffL;
 
         final Match match = new MatchBuilder()
index f08c079198463277fea7e7e6137ee7b3b4e470fd..8edef31229622e77047a34db847a665fa7bfea16 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Icmpv4CodeEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short code = 200;
 
         final Match match = new MatchBuilder()
index 347d5dcb0ced77cb74bd8ee1e9e4fa4582874926..834aab0cb99094ea99c2fa17aed34e2f225da650 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Icmpv4TypeEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short type = 128;
 
         final Match match = new MatchBuilder()
index 9ea9c8b13e162b166695d49e9a287286c0c678e9..652637c0d4f8ed7cf91787b7352622d9165707bf 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Icmpv6CodeEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short code = 101;
 
         final Match match = new MatchBuilder()
index c7cd96dede0601294362e024e2ceff72ac301f11..a6571a2082bd706fd5ec60f42792cab853dd5a26 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Icmpv6TypeEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short type = 123;
 
         final Match match = new MatchBuilder()
index ea49f4c52947fb364596f4e00f1e373652666035..74bdfe7ff92db2e749a3eb068a91d6ff5f5f7f27 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeCon
 public class InPhyPortEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int port = 10122;
 
         final Match match = new MatchBuilder()
index 550a84f4d89a4ea4692aadec79f7b5512a3823d5..d28004ad61e3007a934bee11cb9235face8bb566 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeCon
 public class InPortEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int port = 42;
 
         final Match match = new MatchBuilder()
index da824c1c54a9a8257888c510b48f287ec75a8243..00f81698c3fb096b16eea5e05f7ee0fe0414e10b 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class IpDscpEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short dscp = (short) 58;
 
         final Match match = new MatchBuilder()
index f11bc66cafdca4e078cd31fba9a6e54a08b07068..007aa1639cebefcb7b59c13dd73cf8d5daeb398f 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class IpEcnEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short ecn = (short) 58;
 
         final Match match = new MatchBuilder()
index 5f3ff29e2e009390049006abf5bb61c987f71449..b552cfc20566b02ae870e5abdc9ea0c37fb9f9d5 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class IpProtoEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short proto = (short) 6; // TCP
 
         final Match match = new MatchBuilder()
index ff9c15e781a7540a9a9c064a2eb3faa8e4faf59b..3270e1f14dbb61a0eaab727db8bc3bd499a6db4f 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv4ArbitraryBitMaskDestinationEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Ipv4Address ipv4Address = new Ipv4Address("192.168.10.0");
         final DottedQuad ipv4mask = new DottedQuad("255.255.255.0");
 
index 7168aa4bb85ce2eacb1e119f21d29fa7eccd5b7e..89166907c73c5ebb075928449f966e2cecee731c 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv4ArbitraryBitMaskSourceEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Ipv4Address ipv4Address = new Ipv4Address("192.168.10.0");
         final DottedQuad ipv4mask = new DottedQuad("255.255.255.0");
 
index cf30fcecd0117429ed4174171883e17ebd582da4..d5ba597efef8bcae4cd55dd640efcf77e94ab275 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv4DestinationEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Match ipv4match = new MatchBuilder()
                 .setLayer3Match(new Ipv4MatchBuilder()
                         .setIpv4Destination(new Ipv4Prefix("10.0.2.0/24"))
index d7c677af40d2d0d43d17068adee44edb31e2f04c..44ebc2c7f48b7eb7b2d0fc6e9e7910d9351d3953 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv4SourceEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Match ipv4match = new MatchBuilder()
                 .setLayer3Match(new Ipv4MatchBuilder()
                         .setIpv4Source(new Ipv4Prefix("10.0.2.0/24"))
index b9971d82f9fb1f62c6e81b55dd74d87f8486a134..d08a52950899fd54fc87d146e79a93a112ccd01a 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.opendaylight.ipv6.arbitrary
 public class Ipv6ArbitraryBitMaskDestinationEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Ipv6Address ipv6Address = new Ipv6Address("aaaa:bbbb:1111:2222::");
         final Ipv6ArbitraryMask ipv6mask = new Ipv6ArbitraryMask("ffff:ffff:ffff:ffff::");
 
index 748f668b7a7273005f0125d611dea91a74da3c36..178187c3d80f42db16da15687782a1d70621a94e 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.opendaylight.ipv6.arbitrary
 public class Ipv6ArbitraryBitMaskSourceEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Ipv6Address ipv6Address = new Ipv6Address("aaaa:bbbb:1111:2222::");
         final Ipv6ArbitraryMask ipv6mask = new Ipv6ArbitraryMask("ffff:ffff:ffff:ffff::");
 
index 719fc16e3087bf78d609e0285bc764942e7cbc82..065cbc148a874457865edf57ce90ae199a35d277 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6DestinationEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Ipv6Prefix ipv6Address = new Ipv6Prefix("2001:db8::/32");
 
         final Match ipv6abmMatch = new MatchBuilder()
@@ -46,7 +46,7 @@ public class Ipv6DestinationEntrySerializerTest extends AbstractMatchEntrySerial
     }
 
     @Test
-    public void testSerializeWithoutMask() throws Exception {
+    public void testSerializeWithoutMask() {
         final Ipv6Prefix ipv6Address = new Ipv6Prefix("2001:db8::123/128");
 
         final Match ipv6abmMatch = new MatchBuilder()
index e1bd43f64c55f4dceed0f9b708b111a4e1cbf2a2..d450af5f87313b90ec79a3346f616d577c029f76 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6ExtHeaderEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int ipv6extHdr = 358;
         final int ipv6extHdrMask = 100;
 
index 8e5d7c63a2078775f88cc5660fe4e394980fa443..373a545856e342219a0213cce20e3eb970e9327f 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6LabelEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final long ipv6flowLabel = 358;
         final long ipv6flowLabelMask = 100;
 
index 2fbc524c7bcdf6639d1562df1ba4ab40d1ad39ed..c5969a1d27b7619e28bc5d8853fc4aa18c76aa3c 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6NdSllEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final MacAddress ipv6NdSll = new MacAddress("00:01:02:03:04:05");
 
         final Match ipv6NdSllMatch = new MatchBuilder()
index 0cf6c5f6b64e399bd5c8f68791940331256a1cf2..b8789305bad2d4a6038f0fb8daa2123879f4e2b7 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6NdTargetEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Ipv6Address ipv6NdTarget = new Ipv6Address("2001:db8::");
 
         final Match ipv6NdTargetMatch = new MatchBuilder()
index f9fbc4937bb23ebb82b5c0896634397865fac48c..dc43c485afecdab879824802ef55dc85f515458f 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6NdTllEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final MacAddress ipv6NdTll = new MacAddress("00:01:02:03:04:05");
 
         final Match ipv6NdTllMatch = new MatchBuilder()
index bac5c263e1a3954bca999f5bbc988173ed30af9f..847950031cf7d325cb8cbf3c3705a4f537d2c8eb 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class Ipv6SourceEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Ipv6Prefix ipv6Address = new Ipv6Prefix("2001:db8::/32");
 
         final Match ipv6abmMatch = new MatchBuilder()
@@ -46,7 +46,7 @@ public class Ipv6SourceEntrySerializerTest extends AbstractMatchEntrySerializerT
     }
 
     @Test
-    public void testSerializeWithoutMask() throws Exception {
+    public void testSerializeWithoutMask() {
         final Ipv6Prefix ipv6Address = new Ipv6Prefix("2001:db8::123/128");
 
         final Match ipv6abmMatch = new MatchBuilder()
index f0b3b7ef8d036050e110046d48140d90748de38e..daa750717e856b11c425fbc089f75b025c86f233 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class MetadataEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final byte[] metadata = new byte[] { 0, 1, 2, 3, 4, 5, 6, 7 };
         final byte[] metadataMask = new byte[] { 30, 30, 30, 30, 30, 0, 0, 0 };
 
index 276776b6e09ccf82c486b4a049bfae05ad314951..4d84fc5956713256304d2ea75db759d88ff5e4f2 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class MplsBosEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short mplsBos = (short) 1;
 
         final Match mplsBosMatch = new MatchBuilder()
index 78bf1b51d50f801b9ae1b3b94bbc029490751037..ba205e73f20174d3e17de5f12d8cf315e14135e4 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class MplsLabelEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final long mplsLabel = 10L;
 
         final Match mplsLabelMatch = new MatchBuilder()
index ebe8873ae8c0fc2ea297eb6ae13f6bbf1157a32f..cd941efd27f8c4df3120796a232d399443125d8c 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class MplsTcEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short mplsTc = (short) 1;
 
         final Match mplsTcMatch = new MatchBuilder()
index fbabcc9f00be45bf8da248c1045391fe44c26534..acaa8da87e7983a474247af2f92e26ed2cb3cf66 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class PacketTypeEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void serializeTest() throws Exception {
+    public void serializeTest() {
         final long packetType = 0x1894f;
 
         PacketTypeMatch packetTypeMatch = new PacketTypeMatchBuilder().setPacketType(packetType).build();
index 424b1036bf0402ad7c954b78aa14cbdec352d548..733b81b7e32ab6cc648aac9028395cbf7680c29b 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class PbbEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final long pbbId = 6789;
         final byte[] pbbIdMask = new byte[] { 0, 15, 10 };
 
index 5da3fb03f5f5c6a76f60c10bb13412ad0a727c84..b9b936c5a1647470adf9b884d2355b70f9dbda42 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class SctpDestinationPortEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int sctp = 10;
 
         final Match sctpMatch = new MatchBuilder()
index 4b149308696b0440ec415d1f9f6da8704da0c5e2..2b6ec038bc91266b94699bda19c82bfc0f16142c 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class SctpSourcePortEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int sctp = 10;
 
         final Match sctpMatch = new MatchBuilder()
index 2e9e03df7f020612a2c6a75aa6be6b4907af138e..f8ef1777db3ab5ae02414be3efab3c1dd1d27451 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class TcpDestinationPortEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int tcp = 10;
 
         final Match sctpMatch = new MatchBuilder()
index 54792eb4e922db4898a48f759742ff6a87639a16..933e29f393428c6ec9cdc29d060c787a935d15f7 100644 (file)
@@ -22,7 +22,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class TcpFlagsEntrySerializerTest extends AbstractExperimenterMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int tcp = 8;
         final byte[] tcpMask = new byte[] { 30, 30 };
 
index 7fb7606ff9f7cb0472b7d2d68fa8628e358d9163..df337713896e99bfcb7d0935ed1eee6f06774bf3 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class TcpSourcePortEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int tcp = 10;
 
         final Match sctpMatch = new MatchBuilder()
index 141af7be494d68adf6be7fcc4c8275f3e4c6c9e7..044c252635d4bdd31166464d4654ddf557a5292f 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class TunnelIdEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final long tunnelId = 8;
         final byte[] tcpMask = new byte[] { 30, 30, 30, 30, 0, 0, 0, 0 };
 
index 391d7a9cf4b8d1acc65123116dc635d66f14ae4b..4baad60e59de95c5b52f3afcc52301f7558dd3b1 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class TunnelIpv4DestinationEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Match ipv4match = new MatchBuilder()
                 .setLayer3Match(new TunnelIpv4MatchBuilder()
                         .setTunnelIpv4Destination(new Ipv4Prefix("10.0.2.0/24"))
index 797b03c95dfc60784fef1b11776e7f5659349cd9..591362a64c96b6916e49a31409698e43b876e586 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class TunnelIpv4SourceEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Match ipv4match = new MatchBuilder()
                 .setLayer3Match(new TunnelIpv4MatchBuilder()
                         .setTunnelIpv4Source(new Ipv4Prefix("10.0.2.0/24"))
index 3c000dafd5881be657123697024d6147404fbd06..dcc9b16c29636988d3e07386190b90bfec38a771 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class UdpDestinationPortEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int tcp = 10;
 
         final Match sctpMatch = new MatchBuilder()
index 1dda32cdf03c4e9aaeed0713a95817822086b617..5bf0b39b59346397eb0369584ab8dc24a42d27a5 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class UdpSourcePortEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int tcp = 10;
 
         final Match sctpMatch = new MatchBuilder()
index 82cb588c1a601b12afffc15a5124ca7c4ca1dcad..109ebf8752797887aa19aa11a599f347073f98a4 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class VlanPcpEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short vlan = (short) 1;
 
         final Match vlanMatch = new MatchBuilder()
index 26180c5f5f7bd30ae2b18dbcaf666086fdeaee3f..03dd37657053714e51724dd12fcee1519a4d15e6 100644 (file)
@@ -23,7 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 public class VlanVidEntrySerializerTest extends AbstractMatchEntrySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final int vlan = (short) 1;
 
         final Match vlanMatch = new MatchBuilder()
index 010a828a58312bfd5708fdb4a58b59a488e916fb..494e1ac72b0071685639414d9222ec85c2d20432 100644 (file)
@@ -85,7 +85,7 @@ public class AsyncConfigMessageSerializerTest extends AbstractSerializerTest {
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(MESSAGE, out);
 
index 8dfbc076d0714d4d68b42459fd739d4701aef249..4d68b236837f8d31dd4668c7e8d65b34cbafa5b8 100644 (file)
@@ -184,7 +184,7 @@ public class FlowMessageSerializerTest extends AbstractSerializerTest {
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(MESSAGE, out);
 
index 5250807445a51ef559e4a3d4261dbc8fa1fd582b..dc4cfdb0783edba3964e5da5a6180a7e3d2f62f2 100644 (file)
@@ -106,7 +106,7 @@ public class GroupMessageSerializerTest extends AbstractSerializerTest {
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(MESSAGE, out);
 
index 16f417bad8a140fae8e69d1aaf6a80045767b031..ec98addc644f8c10b33b269b01b10b98f2f878a0 100644 (file)
@@ -111,7 +111,7 @@ public class MeterMessageSerializerTest extends AbstractSerializerTest {
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(MESSAGE, out);
 
index 9cb7c2a80a2d1b62d4c98f6a7068e8e4d0b39d06..2af05a99125a0cca245f23c1edf996aefb31fb66 100644 (file)
@@ -99,7 +99,7 @@ public class PortMessageSerializerTest extends AbstractSerializerTest {
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(MESSAGE, out);
 
index ccd447f4b99f748b93724949cf25f5d87071944f..622676b9dcd11dc0d348aed4be764861e5bf471e 100644 (file)
@@ -32,7 +32,7 @@ public class MultipartRequestDescSerializerTest extends AbstractSerializerTest {
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
         assertEquals(out.readableBytes(), 0);
index 14efdedcdb1a0484659f7896a586f8acbd0ec0e8..052b4d68206a702581de54210aa895b960d5e7c4 100644 (file)
@@ -59,7 +59,7 @@ public class MultipartRequestFlowAggregateStatsSerializerTest extends AbstractSe
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
 
index 2cef6dbc9ca6c175e125b32c3de5d333b34b5e0d..26b219f73971c605f955dd1eed0a926df7c59bf8 100644 (file)
@@ -59,7 +59,7 @@ public class MultipartRequestFlowStatsSerializerTest extends AbstractSerializerT
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
 
index 03ced587e963f39fd045ef48defcbbc58e15a674..183205126719923c7ce30bdb38b79ed0b7ae90d3 100644 (file)
@@ -32,7 +32,7 @@ public class MultipartRequestFlowTableStatsSerializerTest extends AbstractSerial
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
         assertEquals(out.readableBytes(), 0);
index 2c817cbc02b833805827e1cfad6930f927c952da..28e8572bc4b2c90bf840dcf7c1b790d3198773f1 100644 (file)
@@ -32,7 +32,7 @@ public class MultipartRequestGroupDescSerializerTest extends AbstractSerializerT
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
         assertEquals(out.readableBytes(), 0);
index 7098b4aa29647b05f5e7e7d1c05c72964f13be71..a69804994607794a8cb854031fd49c2d47da2651 100644 (file)
@@ -32,7 +32,7 @@ public class MultipartRequestGroupFeaturesSerializerTest extends AbstractSeriali
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
         assertEquals(out.readableBytes(), 0);
index 24b05db28014f42491c26126e6b75bfc0d60c544..8095de642f1c2dd596a3a7227d3cac4c5fd28971 100644 (file)
@@ -36,7 +36,7 @@ public class MultipartRequestGroupStatsSerializerTest extends AbstractSerializer
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
 
index 0338df7880ba4df9c35412d2d3a3cbe7b01c1188..9b996e781de8194d7601448759bfcc6c539b9e88 100644 (file)
@@ -57,7 +57,7 @@ public class MultipartRequestMessageSerializerTest extends AbstractSerializerTes
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(MESSAGE, out);
 
index 0df02aee8ce47b02a6fb75d2dc339d6d706d3fa5..4286199b064f7f6520fa94879e67f4a6c02a6f13 100644 (file)
@@ -36,7 +36,7 @@ public class MultipartRequestMeterConfigSerializerTest extends AbstractSerialize
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
 
index b1054451cf73c993c43e0acce164aa18dcec8448..70e36b9eb3b287c784bad64fe2888b570c8298d1 100644 (file)
@@ -32,7 +32,7 @@ public class MultipartRequestMeterFeaturesSerializerTest extends AbstractSeriali
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
         assertEquals(out.readableBytes(), 0);
index a82e516e5b0c6e35ce52405465cd53b667020def..788b8fd659560a6405ff789905585fdf0c4d8308 100644 (file)
@@ -36,7 +36,7 @@ public class MultipartRequestMeterStatsSerializerTest extends AbstractSerializer
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
 
index 2fc8dea14ea559ace807c76f784e27834bfe728f..666f6b5e29308d0d01fe4bc9a37014ca76fbf41b 100644 (file)
@@ -32,7 +32,7 @@ public class MultipartRequestPortDescSerializerTest extends AbstractSerializerTe
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
         assertEquals(out.readableBytes(), 0);
index ff84abdf86d7f9740da94598e1efcaf7f3f8b0ee..aae23c5a4b15f2816e12afc37798fb2e5acfd7a0 100644 (file)
@@ -36,7 +36,7 @@ public class MultipartRequestPortStatsSerializerTest extends AbstractSerializerT
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
 
index 7916cf5a08b99af40c6b4aeb2fad4a310ace2128..160dff69944127ea89d9b67c3f00c1bfcfecef5e 100644 (file)
@@ -38,7 +38,7 @@ public class MultipartRequestQueueStatsSerializerTest extends AbstractSerializer
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
 
index 4fddccaeeb961e0a3dfb1712ba4585094779de90..4307d6db73971cf1540244189d530ef1b393eefb 100644 (file)
@@ -75,7 +75,7 @@ public class MultipartRequestTableFeaturesSerializerTest extends AbstractSeriali
     }
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         serializer.serialize(BODY, out);
 
index bc1a9224244d95874110336c0de16981b53b36ec..d97df08194cfe73fe2084b1b5ff938a268127266 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class ApplyActionsMissTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ApplyActionsMiss property = new ApplyActionsMissBuilder()
                 .setApplyActionsMiss(new org.opendaylight.yang.gen.v1.urn.opendaylight
                         .table.types.rev131026.table.feature.prop.type.table.feature.prop.type.apply.actions.miss
index afe5dcf15ef80d09a8a9ad519ad197360bdf6c96..d1ad4fbca21413a75aac3ad2dd01717334ad9a1e 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class ApplyActionsTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ApplyActions property = new ApplyActionsBuilder()
                 .setApplyActions(new org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature
                         .prop.type.table.feature.prop.type.apply.actions
index 59562a6c8b9b87e166f83ab5c5c71c8700a1c21b..09c4dabca18b3abefa24334e3408e37fa4137d76 100644 (file)
@@ -25,7 +25,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class ApplySetfieldMissTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ApplySetfieldMiss property = new ApplySetfieldMissBuilder()
                 .setApplySetfieldMiss(new org.opendaylight.yang.gen.v1.urn.opendaylight
                         .table.types.rev131026.table.feature.prop.type.table.feature.prop.type.apply.setfield.miss
index dec98fb2558190fc4b42447ec7ddf1f922288826..e19f7dbf8efcf612f76994b033fef7eb701ab487 100644 (file)
@@ -25,7 +25,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class ApplySetfieldTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final ApplySetfield property = new ApplySetfieldBuilder()
                 .setApplySetfield(new org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature
                         .prop.type.table.feature.prop.type.apply.setfield
index 85a30671a8fc9ae3805aa8384edb5759e6be3dda..388bc993b48359631be3ee0fbdbe5cf9b8fdb6e9 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class InstructionsMissTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final InstructionsMiss property = new InstructionsMissBuilder()
                 .setInstructionsMiss(new org.opendaylight.yang.gen.v1.urn.opendaylight
                         .table.types.rev131026.table.feature.prop.type.table.feature.prop.type.instructions.miss
index e409b2a216eceb8878a54435b81ce0d346799b76..a21859275c2798ed420dfa92f60727390e374e21 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class InstructionsTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Instructions property = new InstructionsBuilder()
                 .setInstructions(new org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature
                         .prop.type.table.feature.prop.type.instructions
index d489353dcbe6eb2527a46e520f2f696630fcce7a..1e1a4eda47e472285efbd068938997b7eb8e4377 100644 (file)
@@ -26,7 +26,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class MatchTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Match property = new MatchBuilder()
                 .setMatchSetfield(new MatchSetfieldBuilder()
                         .setSetFieldMatch(ImmutableList
index 84bcfb5f9dae6b11098dd282c61b49a23f275e0a..5bfc3d744553c915406296f4d24c887be702904f 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class NextTableMissTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short tableId = 42;
         final NextTableMiss property = new NextTableMissBuilder()
                 .setTablesMiss(new TablesMissBuilder()
index c6445794cf442671b4df6145d952e917e5c629e1..076a589ff0824fc4af8cbc330bd9d34a2119546d 100644 (file)
@@ -21,7 +21,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class NextTableTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final short tableId = 42;
         final NextTable property = new NextTableBuilder()
                 .setTables(new TablesBuilder()
index 968bcd9079351698f96ca3a381a7a4871bfb5c69..a91395958c390f9be47a317c995b2efd7d737ae6 100644 (file)
@@ -26,7 +26,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class WildcardsTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Wildcards property = new WildcardsBuilder()
                 .setWildcardSetfield(new WildcardSetfieldBuilder()
                         .setSetFieldMatch(ImmutableList
index bd62929d693f2c0fdec5a94393322f0cb8246803..2dd2aa82a0f0e214417a825cdd41fd620bae04c6 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class WriteActionsMissTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final WriteActionsMiss property = new WriteActionsMissBuilder()
                 .setWriteActionsMiss(new org.opendaylight.yang.gen.v1.urn.opendaylight
                         .table.types.rev131026.table.feature.prop.type.table.feature.prop.type.write.actions.miss
index a08093232801439221943b25f4973f718d2b2923..4ad3c353eb2fb0e7b602f32cd96f960dcc29c48e 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class WriteActionsTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final WriteActions property = new WriteActionsBuilder()
                 .setWriteActions(new org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature
                         .prop.type.table.feature.prop.type.write.actions
index 29373965dc693a9958f0316500186f4c2aac87f5..658f2795585c363eef39232a6b6ea19330e47de0 100644 (file)
@@ -25,7 +25,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class WriteSetfieldMissTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final WriteSetfieldMiss property = new WriteSetfieldMissBuilder()
                 .setWriteSetfieldMiss(new org.opendaylight.yang.gen.v1.urn.opendaylight
                         .table.types.rev131026.table.feature.prop.type.table.feature.prop.type.write.setfield.miss
index cf578cbcd6cf89c83f1d2cf1d71def95e921060c..e33888f648e3fac45a1ee3cf884eb4542a5c85c0 100644 (file)
@@ -25,7 +25,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 public class WriteSetfieldTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
 
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final WriteSetfield property = new WriteSetfieldBuilder()
                 .setWriteSetfield(new org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature
                         .prop.type.table.feature.prop.type.write.setfield
index 3508236734d68945aa779db1d3161e740c55d3bc..4c49e0878a56f63dbf446ad2136996c464b4591f 100644 (file)
@@ -66,7 +66,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 
 public class MatchFieldSerializerTest extends AbstractTablePropertySerializerTest {
     @Test
-    public void testSerialize() throws Exception {
+    public void testSerialize() {
         final Match property = new MatchBuilder()
                 .setMatchSetfield(new MatchSetfieldBuilder()
                         .setSetFieldMatch(ImmutableList
index 4a907c3262da354f63ff67893a5866dd7cd218c4..9cc4d36ef6aa659de639b4db39d5bd4e58171d83 100644 (file)
@@ -72,7 +72,7 @@ public class DeviceFlowRegistryImplTest {
     private ReadTransaction readOnlyTransaction;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         nodeInstanceIdentifier =
                 InstanceIdentifier.create(Nodes.class).child(Node.class, new NodeKey(new NodeId(NODE_ID)));
         when(dataBroker.newReadOnlyTransaction()).thenReturn(readOnlyTransaction);
@@ -169,12 +169,12 @@ public class DeviceFlowRegistryImplTest {
     }
 
     @Test
-    public void testRetrieveIdForFlow() throws Exception {
+    public void testRetrieveIdForFlow() {
         Assert.assertEquals(descriptor, deviceFlowRegistry.retrieveDescriptor(key));
     }
 
     @Test
-    public void testStore() throws Exception {
+    public void testStore() {
         //store the same key with different value
         final FlowDescriptor descriptor2 = FlowDescriptorFactory.create(key.getTableId(), new FlowId("ut:2"));
         deviceFlowRegistry.storeDescriptor(key, descriptor2);
@@ -190,7 +190,7 @@ public class DeviceFlowRegistryImplTest {
     }
 
     @Test
-    public void testStoreIfNecessary() throws Exception {
+    public void testStoreIfNecessary() {
         FlowId newFlowId;
 
         //store existing key
@@ -214,19 +214,19 @@ public class DeviceFlowRegistryImplTest {
     }
 
     @Test
-    public void testRemoveDescriptor() throws Exception {
+    public void testRemoveDescriptor() {
         deviceFlowRegistry.addMark(key);
         Assert.assertEquals(0, deviceFlowRegistry.getAllFlowDescriptors().size());
     }
 
     @Test
-    public void testClose() throws Exception {
+    public void testClose() {
         deviceFlowRegistry.close();
         Assert.assertEquals(0, deviceFlowRegistry.getAllFlowDescriptors().size());
     }
 
     @Test
-    public void createAlienFlowIdTest() throws Exception {
+    public void createAlienFlowIdTest() {
         final String alienFlowId1 = DeviceFlowRegistryImpl.createAlienFlowId(DUMMY_TABLE_ID).getValue();
         final Integer index1 = parseIndex(alienFlowId1);
         final String alienFlowId2 = DeviceFlowRegistryImpl.createAlienFlowId(DUMMY_TABLE_ID).getValue();
@@ -238,7 +238,7 @@ public class DeviceFlowRegistryImplTest {
     }
 
     @Test
-    public void testForEach() throws Exception {
+    public void testForEach() {
         final AtomicInteger counter = new AtomicInteger(0);
         deviceFlowRegistry.forEach(k -> counter.incrementAndGet());
         Assert.assertEquals(1, counter.get());
index f7afc58718f1589c3bb45bde226930880fe3392c..45642087c1d493363ae5502c583f35c102c5303e 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.Fl
 public class FlowDescriptorDtoTest {
 
     @Test
-    public void testCreate() throws Exception {
+    public void testCreate() {
         final FlowDescriptor flowDescriptor = FlowDescriptorFactory.create((short) 1, new FlowId("unit:1"));
         Assert.assertNotNull(flowDescriptor);
         Assert.assertNotNull(flowDescriptor.getFlowId());
@@ -29,7 +29,7 @@ public class FlowDescriptorDtoTest {
 
     @Test(expected = Exception.class)
     @SuppressFBWarnings("NP_NONNULL_PARAM_VIOLATION") // that is the point of this test
-    public void testCreateNegative1() throws Exception {
+    public void testCreateNegative1() {
         FlowDescriptorFactory.create((short) 1, null);
     }
 }
index f9e9c600d7a6ea118a307740f44a9750da76f0c5..1d40449da259a59ee952f76ad96c5da4ffed9025 100644 (file)
@@ -66,7 +66,7 @@ public class FlowRegistryKeyFactoryTest {
     }
 
     @Test
-    public void testEquals() throws Exception {
+    public void testEquals() {
         FlowsStatisticsUpdate flowStats = FLOWS_STATISTICS_UPDATE_BUILDER.build();
 
         HashSet<FlowRegistryKey> flowRegistryKeys = new HashSet<>();
@@ -81,7 +81,7 @@ public class FlowRegistryKeyFactoryTest {
     }
 
     @Test
-    public void testEqualsNegative() throws Exception {
+    public void testEqualsNegative() {
         final FlowAndStatisticsMapList flowStatisticsMapList1 =
                 TestFlowHelper.createFlowAndStatisticsMapListBuilder(1).build();
         final FlowRegistryKey key1 = FlowRegistryKeyFactory.create(deviceInfo.getVersion(), flowStatisticsMapList1);
@@ -111,7 +111,7 @@ public class FlowRegistryKeyFactoryTest {
     }
 
     @Test
-    public void testGetHash2() throws Exception {
+    public void testGetHash2() {
         MatchBuilder match1Builder = new MatchBuilder().setLayer3Match(new Ipv4MatchBuilder()
                 .setIpv4Destination(new Ipv4Prefix("10.0.1.157/32")).build());
         FlowBuilder flow1Builder = new FlowBuilder()
@@ -137,7 +137,7 @@ public class FlowRegistryKeyFactoryTest {
     }
 
     @Test
-    public void testGetHashNPE() throws Exception {
+    public void testGetHashNPE() {
         MatchBuilder match1Builder = new MatchBuilder().setLayer3Match(new Ipv4MatchBuilder()
                 .setIpv4Destination(new Ipv4Prefix("10.0.1.157/32")).build());
         FlowBuilder flow1Builder = new FlowBuilder()
@@ -173,7 +173,7 @@ public class FlowRegistryKeyFactoryTest {
     }
 
     @Test
-    public void testGetHash() throws Exception {
+    public void testGetHash() {
         FlowsStatisticsUpdate flowStats = FLOWS_STATISTICS_UPDATE_BUILDER.build();
 
         for (FlowAndStatisticsMapList item : flowStats.getFlowAndStatisticsMapList()) {
index 47f7056934e6f3c9dcff577432dd6c303ffb3d93..d65db0647e3dbc951f7cb93be2fcedb233b4cbe7 100755 (executable)
@@ -24,7 +24,7 @@ public class DeviceGroupRegistryImplTest {
     private DeviceGroupRegistryImpl deviceGroupRegistry;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         deviceGroupRegistry = new DeviceGroupRegistryImpl();
         groupId = new GroupId(42L);
         groupId2 = new GroupId(84L);
@@ -34,27 +34,27 @@ public class DeviceGroupRegistryImplTest {
     }
 
     @Test
-    public void testStore() throws Exception {
+    public void testStore() {
         deviceGroupRegistry.store(groupId2);
         Assert.assertEquals(2, deviceGroupRegistry.getAllGroupIds().size());
     }
 
     @Test
-    public void testRemoveMarked() throws Exception {
+    public void testRemoveMarked() {
         deviceGroupRegistry.addMark(groupId);
         deviceGroupRegistry.processMarks();
         Assert.assertEquals(0, deviceGroupRegistry.getAllGroupIds().size());
     }
 
     @Test
-    public void testRemoveMarkedNegative() throws Exception {
+    public void testRemoveMarkedNegative() {
         deviceGroupRegistry.addMark(groupId2);
         deviceGroupRegistry.processMarks();
         Assert.assertEquals(1, deviceGroupRegistry.getAllGroupIds().size());
     }
 
     @Test
-    public void testClose() throws Exception {
+    public void testClose() {
         deviceGroupRegistry.addMark(groupId);
         deviceGroupRegistry.close();
 
@@ -67,7 +67,7 @@ public class DeviceGroupRegistryImplTest {
     }
 
     @Test
-    public void testForEach() throws Exception {
+    public void testForEach() {
         final AtomicInteger counter = new AtomicInteger(0);
         deviceGroupRegistry.store(groupId2);
         deviceGroupRegistry.forEach(group -> counter.incrementAndGet());
index bd5cc39ca68b8062101b4971eb78304ffb9a4e4a..477001c461cb9b279d400f8b508ecc03b647570d 100755 (executable)
@@ -24,7 +24,7 @@ public class DeviceMeterRegistryImplTest {
     private DeviceMeterRegistryImpl deviceMeterRegistry;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         deviceMeterRegistry = new DeviceMeterRegistryImpl();
         meterId = new MeterId(42L);
         meterId2 = new MeterId(84L);
@@ -34,27 +34,27 @@ public class DeviceMeterRegistryImplTest {
     }
 
     @Test
-    public void testStore() throws Exception {
+    public void testStore() {
         deviceMeterRegistry.store(meterId2);
         Assert.assertEquals(2, deviceMeterRegistry.getAllMeterIds().size());
     }
 
     @Test
-    public void testRemoveMarked() throws Exception {
+    public void testRemoveMarked() {
         deviceMeterRegistry.addMark(meterId);
         deviceMeterRegistry.processMarks();
         Assert.assertEquals(0, deviceMeterRegistry.getAllMeterIds().size());
     }
 
     @Test
-    public void testRemoveMarkedNegative() throws Exception {
+    public void testRemoveMarkedNegative() {
         deviceMeterRegistry.addMark(meterId2);
         deviceMeterRegistry.processMarks();
         Assert.assertEquals(1, deviceMeterRegistry.getAllMeterIds().size());
     }
 
     @Test
-    public void testClose() throws Exception {
+    public void testClose() {
         deviceMeterRegistry.addMark(meterId);
         deviceMeterRegistry.close();
 
@@ -68,7 +68,7 @@ public class DeviceMeterRegistryImplTest {
     }
 
     @Test
-    public void testForEach() throws Exception {
+    public void testForEach() {
         final AtomicInteger counter = new AtomicInteger(0);
         deviceMeterRegistry.store(meterId2);
         deviceMeterRegistry.forEach(meter -> counter.incrementAndGet());
index fa491d38ce8ad3f9be27aad91112e23c09d91215..1b89f8d7f2bf2f28738a37f66620c7939e043205 100644 (file)
@@ -54,7 +54,7 @@ public class RoleContextImplTest {
     private RoleContext roleContext;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         when(deviceInfo.getNodeInstanceIdentifier()).thenReturn(DeviceStateUtil
                 .createNodeInstanceIdentifier(new NodeId("openflow:1")));
         when(deviceInfo.getVersion()).thenReturn(OFConstants.OFP_VERSION_1_3);
@@ -66,12 +66,12 @@ public class RoleContextImplTest {
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         roleContext.close();
     }
 
     @Test
-    public void instantiateServiceInstance() throws Exception {
+    public void instantiateServiceInstance() {
         roleContext.instantiateServiceInstance();
         verify(roleService).setRole(new SetRoleInputBuilder()
                 .setControllerRole(OfpRole.BECOMEMASTER)
index 1e311581f60bcfcec5a51d5808a02df7c4c4eeb2..11f893c10c5bcbf1ff29cef9d05aae29cbd1d7f0 100644 (file)
@@ -31,7 +31,7 @@ public class AbstractRequestContextTest {
     }
 
     @Test
-    public void testCreateRequestFuture() throws Exception {
+    public void testCreateRequestFuture() {
         Future<?> future = requestContext.getFuture();
         assertNotNull(future);
     }
index 9de76edf555ab6880ff640cc59d73c25834206d6..ce4ca89156b535cb58c1b1bf5af55061a02a9cae 100644 (file)
@@ -95,7 +95,7 @@ public class RpcContextImplTest {
     }
 
     @Test
-    public void testStoreOrFail() throws Exception {
+    public void testStoreOrFail() {
         try (RpcContext rpcContext = new RpcContextImpl(
                 rpcProviderRegistry,
                 100,
@@ -109,7 +109,7 @@ public class RpcContextImplTest {
     }
 
     @Test
-    public void testStoreOrFailThatFails() throws Exception {
+    public void testStoreOrFailThatFails() {
         try (RpcContext rpcContext = new RpcContextImpl(
                 rpcProviderRegistry,
                 0,
@@ -123,7 +123,7 @@ public class RpcContextImplTest {
     }
 
     @Test
-    public void testStoreAndCloseOrFail() throws Exception {
+    public void testStoreAndCloseOrFail() {
         try (RpcContext rpcContext = new RpcContextImpl(
                 rpcProviderRegistry,
                 100,
@@ -165,7 +165,7 @@ public class RpcContextImplTest {
      * When deviceContext.reserveXidForDeviceMessage returns null, null should be returned.
      */
     @Test
-    public void testCreateRequestContext1() throws InterruptedException {
+    public void testCreateRequestContext1() {
         when(deviceInfo.reserveXidForDeviceMessage()).thenReturn(null);
         assertEquals(rpcContext.createRequestContext(),null);
     }
@@ -175,7 +175,7 @@ public class RpcContextImplTest {
      */
 
     @Test
-    public void testCreateRequestContext2() throws InterruptedException {
+    public void testCreateRequestContext2() {
         RequestContext temp = rpcContext.createRequestContext();
         temp.close();
         verify(messageSpy).spyMessage(RpcContextImpl.class, MessageSpy.StatisticsGroup.REQUEST_STACK_FREED);
index 90c920f6f78a181fbd36da439b83992fc4ebc9b2..2da9fcb414439bb090c5e1452afb2b8a8c0f1ab4 100644 (file)
@@ -94,7 +94,7 @@ public class RpcManagerImplTest {
     }
 
     @Test
-    public void createContext() throws Exception {
+    public void createContext() {
         final RpcContext context = rpcManager.createContext(deviceContext);
         assertEquals(deviceInfo, context.getDeviceInfo());
     }
index a1fa78ea3269d298ac85606ee8b05d029dce039b..cb380af69fb5f86cc7ff53c597225231430954be 100644 (file)
@@ -31,14 +31,14 @@ public class EchoServiceTest extends ServiceMocking {
     }
 
     @Test
-    public void testSendEcho() throws Exception {
+    public void testSendEcho() {
         EchoInputBuilder sendEchoInput = new EchoInputBuilder();
         echoService.handleServiceCall(sendEchoInput);
         verify(mockedRequestContextStack).createRequestContext();
     }
 
     @Test
-    public void testBuildRequest() throws Exception {
+    public void testBuildRequest() {
         EchoInputBuilder sendEchoInput = new EchoInputBuilder().setData(DUMMY_DATA);
         final OfHeader request = this.echoService.buildRequest(new Xid(DUMMY_XID_VALUE), sendEchoInput);
         assertEquals(DUMMY_XID_VALUE, request.getXid());
index 6ac095c242c1d39588f6a1937af615d3cb62fbcc..844465c6213ed77c15ee18dabbd5cea6eafa3876 100644 (file)
@@ -52,7 +52,7 @@ public class MultipartRequestCallbackTest {
     private AbstractMultipartRequestCallback<MultipartReply> multipartRequestCallback;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         Mockito.doNothing().when(requestContext).setResult(rpcResultCapt.capture());
         Mockito.when(deviceContext.getMessageSpy()).thenReturn(spy);
 
@@ -69,7 +69,7 @@ public class MultipartRequestCallbackTest {
      * End collecting.
      */
     @Test
-    public void testOnSuccess1() throws Exception {
+    public void testOnSuccess1() {
         multipartRequestCallback.onSuccess(null);
         Mockito.verify(multiMsgCollector).endCollecting(ArgumentMatchers.any());
     }
@@ -78,7 +78,7 @@ public class MultipartRequestCallbackTest {
      * Fail adding to collection.
      */
     @Test
-    public void testOnSuccess2() throws Exception {
+    public void testOnSuccess2() {
         multipartRequestCallback.onSuccess(new EchoOutputBuilder().build());
         final RpcResult<List<MultipartReply>> rpcResult = rpcResultCapt.getValue();
         Assert.assertNotNull(rpcResult);
@@ -89,7 +89,7 @@ public class MultipartRequestCallbackTest {
      * Successfully added to collection.
      */
     @Test
-    public void testOnSuccess3() throws Exception {
+    public void testOnSuccess3() {
         final MultipartReplyMessage replyMessage = new MultipartReplyMessageBuilder().build();
         multipartRequestCallback.onSuccess(replyMessage);
         Mockito.verify(multiMsgCollector)
index 57af525dc0a2506e968c7ca729096a1f43518b97..af573a6b7f516cf6bf72e62397fc6c0fc27f8b28 100644 (file)
@@ -189,7 +189,7 @@ public class MultipartRequestOnTheFlyCallbackTest {
      * Not the last reply.
      */
     @Test
-    public void testOnSuccessWithValidMultipart1() throws Exception {
+    public void testOnSuccessWithValidMultipart1() {
         final MatchBuilder matchBuilder = new MatchBuilder()
                 .setMatchEntry(Collections.emptyList());
         final FlowStatsBuilder flowStatsBuilder = new FlowStatsBuilder()
index 2b0016a10989096dc3b7bfcf3665bd2ab416b204..194a8552d09be07d2dbf8150b9287c643e971d3d 100644 (file)
@@ -97,7 +97,7 @@ public abstract class ServiceMocking {
 
     @Before
     @SuppressWarnings("unchecked")
-    public void initialization() throws Exception {
+    public void initialization() {
         lenient().when(mockedExtensionConverter.getExperimenterId())
                 .thenReturn(new ExperimenterId(DUMMY_EXPERIMENTER_ID));
         lenient().when(mockedExtensionConverterProvider.getMessageConverter(Matchers.<TypeVersionKey>any()))
@@ -131,7 +131,7 @@ public abstract class ServiceMocking {
         setup();
     }
 
-    protected void setup() throws Exception {
+    protected void setup() {
         //NOOP - to be overloaded
     }
 
index 8bb15ded98d68e210c59e26c5762e16b86d77456..401bac48567b79e88fcdd9eb7181f1636d2abd12 100644 (file)
@@ -51,7 +51,7 @@ public class FlatBatchFlowAdaptersTest {
     private static final NodeRef NODE_REF = new NodeRef(NODE_II);
 
     @Test
-    public void testAdaptFlatBatchAddFlow() throws Exception {
+    public void testAdaptFlatBatchAddFlow() {
         final BatchPlanStep planStep = new BatchPlanStep(BatchStepType.FLOW_ADD);
         planStep.setBarrierAfter(true);
         planStep.getTaskBag().addAll(Lists.newArrayList(
@@ -85,7 +85,7 @@ public class FlatBatchFlowAdaptersTest {
     }
 
     @Test
-    public void testAdaptFlatBatchRemoveFlow() throws Exception {
+    public void testAdaptFlatBatchRemoveFlow() {
         final BatchPlanStep planStep = new BatchPlanStep(BatchStepType.FLOW_REMOVE);
         planStep.setBarrierAfter(true);
         planStep.getTaskBag().addAll(Lists.newArrayList(
@@ -102,7 +102,7 @@ public class FlatBatchFlowAdaptersTest {
     }
 
     @Test
-    public void testAdaptFlatBatchUpdateFlow() throws Exception {
+    public void testAdaptFlatBatchUpdateFlow() {
         final BatchPlanStep planStep = new BatchPlanStep(BatchStepType.FLOW_UPDATE);
         planStep.setBarrierAfter(true);
         planStep.getTaskBag().addAll(Lists.newArrayList(
@@ -119,7 +119,7 @@ public class FlatBatchFlowAdaptersTest {
     }
 
     @Test
-    public void testCreateBatchFlowChainingFunction_failures() throws Exception {
+    public void testCreateBatchFlowChainingFunction_failures() {
         final RpcResult<BatchFlowOutputListGrouping> input = RpcResultBuilder.<BatchFlowOutputListGrouping>failed()
                 .withError(RpcError.ErrorType.APPLICATION, "ut-flowError")
                 .withResult(new AddFlowsBatchOutputBuilder()
@@ -144,7 +144,7 @@ public class FlatBatchFlowAdaptersTest {
     }
 
     @Test
-    public void testCreateBatchFlowChainingFunction_successes() throws Exception {
+    public void testCreateBatchFlowChainingFunction_successes() {
         final RpcResult<BatchFlowOutputListGrouping> input = RpcResultBuilder
                 .<BatchFlowOutputListGrouping>success(new AddFlowsBatchOutputBuilder().build())
                 .build();
index 98e1374dd4da553555b48b7ee31a9e8c75a389e8..e3a403caa5dac90acadc073d5d6153db4a281809 100644 (file)
@@ -53,7 +53,7 @@ public class FlatBatchGroupAdaptersTest {
     private static final NodeRef NODE_REF = new NodeRef(NODE_II);
 
     @Test
-    public void testAdaptFlatBatchAddGroup() throws Exception {
+    public void testAdaptFlatBatchAddGroup() {
         final BatchPlanStep planStep = new BatchPlanStep(BatchStepType.FLOW_ADD);
         planStep.setBarrierAfter(true);
         planStep.getTaskBag().addAll(Lists.newArrayList(
@@ -93,7 +93,7 @@ public class FlatBatchGroupAdaptersTest {
     }
 
     @Test
-    public void testAdaptFlatBatchRemoveGroup() throws Exception {
+    public void testAdaptFlatBatchRemoveGroup() {
         final BatchPlanStep planStep = new BatchPlanStep(BatchStepType.FLOW_REMOVE);
         planStep.setBarrierAfter(true);
         planStep.getTaskBag().addAll(Lists.newArrayList(
@@ -112,7 +112,7 @@ public class FlatBatchGroupAdaptersTest {
     }
 
     @Test
-    public void testAdaptFlatBatchUpdateGroup() throws Exception {
+    public void testAdaptFlatBatchUpdateGroup() {
         final BatchPlanStep planStep = new BatchPlanStep(BatchStepType.FLOW_UPDATE);
         planStep.setBarrierAfter(true);
         planStep.getTaskBag().addAll(Lists.newArrayList(
@@ -131,7 +131,7 @@ public class FlatBatchGroupAdaptersTest {
     }
 
     @Test
-    public void testCreateBatchGroupChainingFunction_failures() throws Exception {
+    public void testCreateBatchGroupChainingFunction_failures() {
         final RpcResult<BatchGroupOutputListGrouping> input = RpcResultBuilder.<BatchGroupOutputListGrouping>failed()
                 .withError(RpcError.ErrorType.APPLICATION, "ut-groupError")
                 .withResult(new AddGroupsBatchOutputBuilder()
@@ -155,7 +155,7 @@ public class FlatBatchGroupAdaptersTest {
     }
 
     @Test
-    public void testCreateBatchGroupChainingFunction_successes() throws Exception {
+    public void testCreateBatchGroupChainingFunction_successes() {
         final RpcResult<BatchGroupOutputListGrouping> input = RpcResultBuilder
                 .<BatchGroupOutputListGrouping>success(new AddGroupsBatchOutputBuilder().build())
                 .build();
index 16c5763162eacf3078304663ac2ef22a7bc6c9d4..bf487d3e7e6e22b2f2faa7c67add03f231928416 100644 (file)
@@ -53,7 +53,7 @@ public class FlatBatchMeterAdaptersTest {
     private static final NodeRef NODE_REF = new NodeRef(NODE_II);
 
     @Test
-    public void testAdaptFlatBatchAddMeter() throws Exception {
+    public void testAdaptFlatBatchAddMeter() {
         final BatchPlanStep planStep = new BatchPlanStep(BatchStepType.FLOW_ADD);
         planStep.setBarrierAfter(true);
         planStep.getTaskBag().addAll(Lists.newArrayList(
@@ -93,7 +93,7 @@ public class FlatBatchMeterAdaptersTest {
     }
 
     @Test
-    public void testAdaptFlatBatchRemoveMeter() throws Exception {
+    public void testAdaptFlatBatchRemoveMeter() {
         final BatchPlanStep planStep = new BatchPlanStep(BatchStepType.FLOW_REMOVE);
         planStep.setBarrierAfter(true);
         planStep.getTaskBag().addAll(Lists.newArrayList(
@@ -112,7 +112,7 @@ public class FlatBatchMeterAdaptersTest {
     }
 
     @Test
-    public void testAdaptFlatBatchUpdateMeter() throws Exception {
+    public void testAdaptFlatBatchUpdateMeter() {
         final BatchPlanStep planStep = new BatchPlanStep(BatchStepType.FLOW_UPDATE);
         planStep.setBarrierAfter(true);
         planStep.getTaskBag().addAll(Lists.newArrayList(
@@ -131,7 +131,7 @@ public class FlatBatchMeterAdaptersTest {
     }
 
     @Test
-    public void testCreateBatchMeterChainingFunction_failures() throws Exception {
+    public void testCreateBatchMeterChainingFunction_failures() {
         final RpcResult<BatchMeterOutputListGrouping> input = RpcResultBuilder.<BatchMeterOutputListGrouping>failed()
                 .withError(RpcError.ErrorType.APPLICATION, "ut-meterError")
                 .withResult(new AddMetersBatchOutputBuilder()
@@ -155,7 +155,7 @@ public class FlatBatchMeterAdaptersTest {
     }
 
     @Test
-    public void testCreateBatchMeterChainingFunction_successes() throws Exception {
+    public void testCreateBatchMeterChainingFunction_successes() {
         final RpcResult<BatchMeterOutputListGrouping> input = RpcResultBuilder
                 .<BatchMeterOutputListGrouping>success(new AddMetersBatchOutputBuilder().build())
                 .build();
index 682f4cdc361371e6987ac1a0914dc25675749f57..e612add4ee8e2db90fc60846c5eca63dfcf7150d 100644 (file)
@@ -36,7 +36,7 @@ public class FlowCapableTransactionServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testBuildRequest() throws Exception {
+    public void testBuildRequest() {
         SendBarrierInput sendBarrierInput = buildSendBarrierInput();
 
         final OfHeader request = flowCapableTransactionService.buildRequest(new Xid(DUMMY_XID_VALUE), sendBarrierInput);
@@ -45,7 +45,7 @@ public class FlowCapableTransactionServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testSendBarrier() throws Exception {
+    public void testSendBarrier() {
         SendBarrierInput sendBarrierInput = buildSendBarrierInput();
         flowCapableTransactionService.sendBarrier(sendBarrierInput);
         verify(mockedRequestContextStack).createRequestContext();
index 6d3523005897b5b79d6aa028ca9cf423513f5adb..fe39cfd7e95cb3dbe2248d2fe27fbdab6ff1b9ee 100644 (file)
@@ -29,14 +29,14 @@ public class NodeConfigServiceImplTest extends ServiceMocking {
     NodeConfigServiceImpl nodeConfigService;
 
     @Test
-    public void testSetConfig() throws Exception {
+    public void testSetConfig() {
         nodeConfigService = new NodeConfigServiceImpl(mockedRequestContextStack, mockedDeviceContext);
         nodeConfigService.setConfig(dummyConfigInput());
         verify(mockedRequestContextStack).createRequestContext();
     }
 
     @Test
-    public void testBuildRequest() throws Exception {
+    public void testBuildRequest() {
         nodeConfigService = new NodeConfigServiceImpl(mockedRequestContextStack, mockedDeviceContext);
         final OfHeader request = nodeConfigService.buildRequest(new Xid(DUMMY_XID_VALUE), dummyConfigInput());
 
index 16d1ba38a1c1047419e4839dcf788baee6af2a1d..871ef12c997d823509f5a1e8646153a3036c9ec1 100644 (file)
@@ -56,14 +56,14 @@ public class PacketProcessingServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testTransmitPacket() throws Exception {
+    public void testTransmitPacket() {
         TransmitPacketInput transmitPacketInput = buildTransmitPacketInput();
         packetProcessingService.transmitPacket(transmitPacketInput);
         verify(mockedRequestContextStack).createRequestContext();
     }
 
     @Test
-    public void testBuildRequest() throws Exception {
+    public void testBuildRequest() {
         TransmitPacketInput transmitPacketInput = buildTransmitPacketInput();
 
         final OfHeader request = packetProcessingService.buildRequest(new Xid(DUMMY_XID_VALUE), transmitPacketInput);
index f904f838887a6c7a4081119ec8a4c7a0ae377497..76bcaf5cfef9191964141e1dc0777261e863d3ad 100644 (file)
@@ -39,7 +39,7 @@ public class SalAsyncConfigServiceImplTest extends ServiceMocking {
     private SalAsyncConfigServiceImpl salAsyncConfigService;
 
     @Override
-    public void setup() throws Exception {
+    public void setup() {
         salAsyncConfigService = new SalAsyncConfigServiceImpl(
                 mockedRequestContextStack, mockedDeviceContext);
     }
index 8af79bc7d28baa27ac17b974ff8a777445ba581e..74e9171694ca4c3f2b5fc46c10683a6144537615 100644 (file)
@@ -91,7 +91,7 @@ public class SalBundleServiceImplTest {
     }
 
     @Test
-    public void testAddBundleMessages() throws Exception {
+    public void testAddBundleMessages() {
         final List<Message> innerMessages = createMessages();
         final Messages messages = new MessagesBuilder().setMessage(innerMessages).build();
         final AddBundleMessagesInput input = new AddBundleMessagesInputBuilder()
index ecfe9392477631f689c9fb4c0cfe79cabfba6ca1..e648341b5449a618a1b4e1e203f0ee4c0dec9e32 100644 (file)
@@ -56,7 +56,7 @@ public class SalExperimenterMessageServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testSendExperimenter() throws Exception {
+    public void testSendExperimenter() {
         SendExperimenterInput sendExperimenterInput = buildSendExperimenterInput();
         salExperimenterMessageService.sendExperimenter(sendExperimenterInput);
         verify(mockedRequestContextStack).createRequestContext();
index ecae3b0c2b9d7bf44c57335fcf1f41d66d208abd..133ba53c6187ab9767ab71d375683e235e2fe1bb 100644 (file)
@@ -33,7 +33,7 @@ public class SalExperimenterMpMessageServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void sendExperimenterMpRequest() throws Exception {
+    public void sendExperimenterMpRequest() {
         final SendExperimenterMpRequestInput data = new SendExperimenterMpRequestInputBuilder()
                 .setExperimenterMessageOfChoice(mockExperimenter())
                 .setNode(new NodeRef(mockedDeviceInfo.getNodeInstanceIdentifier()))
index abbc7b8b1e8aaac2ae167528c0bab1824ec21f86..335af88e0fd86895e308fe6453da1b9e8fddb0d9 100644 (file)
@@ -116,14 +116,14 @@ public class SalFlatBatchServiceImplTest {
     private SalFlatBatchServiceImpl salFlatBatchService;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         salFlatBatchService =
                 new SalFlatBatchServiceImpl(salFlowsBatchService, salGroupsBatchService, salMetersBatchService);
 
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         Mockito.verifyNoMoreInteractions(salFlowsBatchService, salGroupsBatchService, salMetersBatchService);
     }
 
index 68413d99d6187bbf9277a0855db655c53f4c93eb..692a43fd2dc753fe07609ac3df1a8c77e11f7b0a 100644 (file)
@@ -95,7 +95,7 @@ public class SalFlowsBatchServiceImplTest {
     public static final String FLOW_ID_VALUE_2 = "ut-dummy-flow2";
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         salFlowsBatchService = new SalFlowsBatchServiceImpl(salFlowService, transactionService);
 
         Mockito.when(transactionService.sendBarrier(ArgumentMatchers.any()))
@@ -103,7 +103,7 @@ public class SalFlowsBatchServiceImplTest {
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         Mockito.verifyNoMoreInteractions(salFlowService, transactionService);
     }
 
index 3f3950635a142deba682c67eda7d8a9a3697c88b..33ee1f8e71de7464e8fc24754a38666b4af6460e 100755 (executable)
@@ -46,7 +46,7 @@ public class SalGroupServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testAddGroup() throws Exception {
+    public void testAddGroup() {
         addGroup();
     }
 
@@ -62,12 +62,12 @@ public class SalGroupServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testUpdateGroup() throws Exception {
+    public void testUpdateGroup() {
         updateGroup();
     }
 
     @Test
-    public void testUpdateGroupWithItemLifecycle() throws Exception {
+    public void testUpdateGroupWithItemLifecycle() {
         updateGroup();
     }
 
@@ -84,16 +84,16 @@ public class SalGroupServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testRemoveGroup() throws Exception {
+    public void testRemoveGroup() {
         removeGroup();
     }
 
     @Test
-    public void testRemoveGroupWithItemLifecycle() throws Exception {
+    public void testRemoveGroupWithItemLifecycle() {
         removeGroup();
     }
 
-    private void removeGroup() throws Exception {
+    private void removeGroup() {
         final GroupId dummyGroupId = new GroupId(DUMMY_GROUP_ID);
         RemoveGroupInput removeGroupInput = new RemoveGroupInputBuilder().setGroupId(dummyGroupId).build();
         this.<RemoveGroupOutput>mockSuccessfulFuture();
index 754de683424c51dd1eecf729ff570952a86a1657..6aa8a111de28b41cedd4fe515de32907344a42e8 100644 (file)
@@ -89,7 +89,7 @@ public class SalGroupsBatchServiceImplTest {
 
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         salGroupsBatchService = new SalGroupsBatchServiceImpl(salGroupService, transactionService);
 
         Mockito.when(transactionService.sendBarrier(ArgumentMatchers.any()))
@@ -97,7 +97,7 @@ public class SalGroupsBatchServiceImplTest {
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         Mockito.verifyNoMoreInteractions(salGroupService, transactionService);
     }
 
index 68ca0c0bd302e06931ace7adc7623d52080d2f62..001a6d2c990fc282ad49732af74e83c37dafdf2d 100755 (executable)
@@ -46,7 +46,7 @@ public class SalMeterServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testAddMeter() throws Exception {
+    public void testAddMeter() {
         addMeter();
     }
 
@@ -60,12 +60,12 @@ public class SalMeterServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testUpdateMeter() throws Exception {
+    public void testUpdateMeter() {
         updateMeter();
     }
 
 
-    private void updateMeter() throws Exception {
+    private void updateMeter() {
         final UpdatedMeter dummyUpdatedMeter =
                 new UpdatedMeterBuilder().setMeterId(new MeterId(DUMMY_METTER_ID)).build();
         final OriginalMeter dummyOriginalMeter =
@@ -80,12 +80,12 @@ public class SalMeterServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testRemoveMeter() throws Exception {
+    public void testRemoveMeter() {
         removeMeter();
     }
 
 
-    private void removeMeter() throws Exception {
+    private void removeMeter() {
         final MeterId dummyMeterId = new MeterId(DUMMY_METER_ID);
         RemoveMeterInput removeMeterInput = new RemoveMeterInputBuilder().setMeterId(dummyMeterId).build();
         this.<RemoveMeterOutput>mockSuccessfulFuture();
index 32b5490ad61a60dc08e72a5efa32b7ac8e40548d..b80738b34525f22c53f406ba757a42f903a943ab 100644 (file)
@@ -90,7 +90,7 @@ public class SalMetersBatchServiceImplTest {
     private SalMetersBatchServiceImpl salMetersBatchService;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         salMetersBatchService = new SalMetersBatchServiceImpl(salMeterService, transactionService);
 
         Mockito.when(transactionService.sendBarrier(any()))
@@ -98,7 +98,7 @@ public class SalMetersBatchServiceImplTest {
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         Mockito.verifyNoMoreInteractions(salMeterService, transactionService);
     }
 
index d026b4e5429fed1574aa06147c1bfc8c92752517..ee020f7092fcdcb5d42aec872671625c8d2ff9b1 100644 (file)
@@ -45,13 +45,13 @@ public class SalPortServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testUpdatePort() throws Exception {
+    public void testUpdatePort() {
         salPortService.updatePort(dummyUpdatePortInput());
         verify(mockedRequestContextStack).createRequestContext();
     }
 
     @Test
-    public void testBuildRequest() throws Exception {
+    public void testBuildRequest() {
         final OfHeader ofHeader = salPortService.buildRequest(new Xid(DUMMY_XID), dummyUpdatePortInput());
     }
 
index 96afe3df559e96eb2e1b1834264ff37c422e64a4..da24425e36821ee40a983825cee770698dd06f20 100644 (file)
@@ -15,7 +15,6 @@ import com.google.common.util.concurrent.FutureCallback;
 import com.google.common.util.concurrent.SettableFuture;
 import java.util.Collections;
 import java.util.List;
-import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
 import org.junit.Assert;
 import org.junit.Test;
@@ -68,7 +67,7 @@ public class SalTableServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testUpdateTableFail1() throws ExecutionException, InterruptedException {
+    public void testUpdateTableFail1() {
         Mockito.doAnswer((Answer<Void>) invocation -> {
             final RpcResult<List<MultipartReply>> rpcResult =
                     RpcResultBuilder.<List<MultipartReply>>failed().build();
@@ -82,7 +81,7 @@ public class SalTableServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testUpdateTableFail2() throws ExecutionException, InterruptedException {
+    public void testUpdateTableFail2() {
         Mockito.doAnswer((Answer<Void>) invocation -> {
             final RpcResult<List<MultipartReply>> rpcResult =
                     RpcResultBuilder.success(Collections.<MultipartReply>emptyList())
@@ -97,7 +96,7 @@ public class SalTableServiceImplTest extends ServiceMocking {
     }
 
     @Test
-    public void testUpdateTableSuccess() throws ExecutionException, InterruptedException {
+    public void testUpdateTableSuccess() {
         Mockito.doAnswer((Answer<Void>) invocation -> {
             TableFeaturesBuilder tableFeaturesBld = new TableFeaturesBuilder()
                     .setTableId((short) 0)
index 6ecbd795f98cdcdfd12ebd45e9a2a263755c1b4c..10b2195b4833cc31fdb4297408a27ae60e70de13 100644 (file)
@@ -32,12 +32,12 @@ public class SingleLayerAggregateFlowMultipartServiceTest extends ServiceMocking
     private SingleLayerAggregateFlowMultipartService service;
 
     @Override
-    protected void setup() throws Exception {
+    protected void setup() {
         service = new SingleLayerAggregateFlowMultipartService(mockedRequestContextStack, mockedDeviceContext);
     }
 
     @Test
-    public void buildRequest() throws Exception {
+    public void buildRequest() {
         final GetAggregateFlowStatisticsFromFlowTableForGivenMatchInput input = new
                 GetAggregateFlowStatisticsFromFlowTableForGivenMatchInputBuilder()
                 .setTableId(TABLE_ID)
index 8bdd20a47aa791d0765d5f07b79e7e9bfd93fd95..e331f2e2adabc683b069c39b549439d4fa6535eb 100644 (file)
@@ -28,14 +28,14 @@ public class SingleLayerExperimenterMultipartServiceTest extends ServiceMocking
     private SingleLayerExperimenterMultipartService service;
 
     @Override
-    protected void setup() throws Exception {
+    protected void setup() {
         service = new SingleLayerExperimenterMultipartService(
                 mockedRequestContextStack, mockedDeviceContext,
                 mockedExtensionConverterProvider);
     }
 
     @Test
-    public void buildRequest() throws Exception {
+    public void buildRequest() {
         final SendExperimenterMpRequestInput input = new SendExperimenterMpRequestInputBuilder()
                 .setExperimenterMessageOfChoice(mockExperimenter())
                 .build();
index 534538d6d2aa8cad912fbf23ac844f253c85263f..c4b96e31104c8122e32a615bb0817fe611296e71 100644 (file)
@@ -24,13 +24,13 @@ public class SingleLayerFlowServiceTest extends ServiceMocking {
     private SingleLayerFlowService<AddFlowOutput> service;
 
     @Override
-    protected void setup() throws Exception {
+    protected void setup() {
         service = new SingleLayerFlowService<>(mockedRequestContextStack,
                 mockedDeviceContext, AddFlowOutput.class);
     }
 
     @Test
-    public void buildRequest() throws Exception {
+    public void buildRequest() {
         final AddFlowInput input = new AddFlowInputBuilder()
                 .setTableId(TABLE_ID)
                 .build();
index 22ba2227671a172a081b53c6d068672f8de62a3c..363a8b1af6155dfeb4ca8e44fd38e7b211c26d93 100644 (file)
@@ -25,13 +25,13 @@ public class SingleLayerGroupServiceTest extends ServiceMocking {
     private SingleLayerGroupService<AddGroupOutput> service;
 
     @Override
-    protected void setup() throws Exception {
+    protected void setup() {
         service = new SingleLayerGroupService<>(mockedRequestContextStack,
                 mockedDeviceContext, AddGroupOutput.class);
     }
 
     @Test
-    public void buildRequest() throws Exception {
+    public void buildRequest() {
         final AddGroupInput input = new AddGroupInputBuilder()
                 .setGroupId(new GroupId(GROUP_ID))
                 .build();
index 3105d12bbc743fc68cc1a4fe613e895a22c18d14..984d3e76cb45c0d28ee227cd9098aadf33ee3cee 100644 (file)
@@ -25,13 +25,13 @@ public class SingleLayerMeterServiceTest extends ServiceMocking {
     private SingleLayerMeterService<AddMeterOutput> service;
 
     @Override
-    protected void setup() throws Exception {
+    protected void setup() {
         service = new SingleLayerMeterService<>(mockedRequestContextStack,
                 mockedDeviceContext, AddMeterOutput.class);
     }
 
     @Test
-    public void buildRequest() throws Exception {
+    public void buildRequest() {
         final AddMeterInput input = new AddMeterInputBuilder()
                 .setMeterId(new MeterId(METER_ID))
                 .build();
index 5a6c917ec93ff30563c1a3c2b1fd9446a846b8ac..f82214baede28496857b04a8e4e972be6411288e 100644 (file)
@@ -24,13 +24,13 @@ public class SingleLayerPortServiceTest extends ServiceMocking {
     private SingleLayerPortService<UpdatePortOutput> service;
 
     @Override
-    protected void setup() throws Exception {
+    protected void setup() {
         service = new SingleLayerPortService<>(mockedRequestContextStack,
                 mockedDeviceContext, UpdatePortOutput.class);
     }
 
     @Test
-    public void buildRequest() throws Exception {
+    public void buildRequest() {
         final Port input = new PortBuilder()
                 .setPortNumber(new PortNumberUni(PORT_ID))
                 .build();
index 2422bc445e18b3e4d047e07e389af9a2bc67e30b..7b9f0c4d9926862fe1df8cfbfe636c13d1cbe751 100644 (file)
@@ -34,13 +34,13 @@ public class SingleLayerTableMultipartServiceTest extends ServiceMocking {
     private SingleLayerTableMultipartService service;
 
     @Override
-    protected void setup() throws Exception {
+    protected void setup() {
         service = new SingleLayerTableMultipartService(mockedRequestContextStack, mockedDeviceContext,
                 MultipartWriterProviderFactory.createDefaultProvider(mockedDeviceContext));
     }
 
     @Test
-    public void buildRequest() throws Exception {
+    public void buildRequest() {
         final UpdateTableInput input = new UpdateTableInputBuilder()
                 .setUpdatedTable(new UpdatedTableBuilder()
                         .setTableFeatures(Collections.singletonList(new TableFeaturesBuilder()
index 33548413079bc034da3370e4a9f5858e8afa1858..70c700b3d69402a14c85eaf13337fd5cc985b53f 100644 (file)
@@ -26,12 +26,12 @@ public class RequestContextUtilTest {
     private RequestContext<Void> requestContext;
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         verifyNoMoreInteractions(requestContext);
     }
 
     @Test
-    public void closeRequestContextWithRpcError() throws Exception {
+    public void closeRequestContextWithRpcError() {
         final String errorMessage = "Test error";
         RequestContextUtil.closeRequestContextWithRpcError(
                 requestContext,
@@ -43,7 +43,7 @@ public class RequestContextUtilTest {
     }
 
     @Test
-    public void closeRequestContext() throws Exception {
+    public void closeRequestContext() {
         doThrow(new IllegalStateException()).when(requestContext).close();
         RequestContextUtil.closeRequestContext(requestContext);
         verify(requestContext).close();
index 8686724b8faa53c9921c1afa6bff3b0f5013bd81..46404a133c4e3df0f69f83098825c18f93441b15 100644 (file)
@@ -18,7 +18,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731
 
 public class RequestInputUtilsTest {
     @Test
-    public void createMultipartHeader() throws Exception {
+    public void createMultipartHeader() {
         final Short version = OFConstants.OFP_VERSION_1_3;
         final Long xid = 42L;
         final MultipartType type = MultipartType.OFPMPDESC;
index 17672c9efeb845bb20ad91e5603842d803047081..915dd009383273660d6cf17be0a4ac33bb7577ae 100644 (file)
@@ -80,7 +80,7 @@ public class StatisticsContextImplParamTest extends StatisticsContextImpMockInit
     }
 
     @Test
-    public void gatherDynamicDataTest() throws InterruptedException {
+    public void gatherDynamicDataTest() {
 
         when(mockedDeviceState.isTableStatisticsAvailable()).thenReturn(Boolean.TRUE);
         when(mockedDeviceState.isFlowStatisticsAvailable()).thenReturn(Boolean.TRUE);
index 02962122f490fe56ac34bcbb683c118f7ecfff96..0b0db5a2da07ea88594ee1033f19f114a2ff3644 100644 (file)
@@ -51,7 +51,7 @@ public class StatisticsContextImplTest extends StatisticsContextImpMockInitiatio
             Mockito.mock(OpenflowProviderConfig.class);
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         convertorManager = ConvertorManagerFactory.createDefaultManager();
         when(mockedDeviceInfo.reserveXidForDeviceMessage()).thenReturn(TEST_XID);
         Mockito.when(mockedDeviceContext.getDeviceState()).thenReturn(mockedDeviceState);
@@ -93,7 +93,7 @@ public class StatisticsContextImplTest extends StatisticsContextImpMockInitiatio
      */
     @Test
     @SuppressWarnings("checkstyle:IllegalCatch")
-    public void testClose() throws Exception {
+    public void testClose() {
         statisticsContext =
                 new StatisticsContextImpl<>(mockedDeviceContext,
                         convertorManager,
@@ -118,13 +118,13 @@ public class StatisticsContextImplTest extends StatisticsContextImpMockInitiatio
     }
 
     @Test
-    public void testGatherDynamicData_none() throws Exception {
+    public void testGatherDynamicData_none() {
         statisticsContext.instantiateServiceInstance();
         Mockito.verifyNoMoreInteractions(mockedStatisticsGatheringService, mockedStatisticsOnFlyGatheringService);
     }
 
     @Test
-    public void testGatherDynamicData_all() throws Exception {
+    public void testGatherDynamicData_all() {
         Mockito.reset(mockedDeviceState);
         when(mockedDeviceState.isTableStatisticsAvailable()).thenReturn(Boolean.TRUE);
         when(mockedDeviceState.isFlowStatisticsAvailable()).thenReturn(Boolean.TRUE);
index 7d0ae8f5fd8765234337aef4d56bc0fd168dbc22..fe4e0e0ee806c8d9a53f19a46b5aef595e5dc3c2 100755 (executable)
@@ -169,7 +169,7 @@ public class StatisticsGatheringUtilsTest {
     private MultipartWriterProvider provider;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         when(deviceContext.getDeviceInfo()).thenReturn(deviceInfo);
         when(deviceContext.getDeviceFlowRegistry()).thenReturn(deviceFlowRegistry);
         when(deviceContext.getDeviceGroupRegistry()).thenReturn(deviceGroupRegistry);
@@ -190,7 +190,7 @@ public class StatisticsGatheringUtilsTest {
     }
 
     @Test
-    public void testWriteFlowStatistics() throws Exception {
+    public void testWriteFlowStatistics() {
         final ArgumentCaptor<LogicalDatastoreType> dataStoreType = ArgumentCaptor.forClass(LogicalDatastoreType.class);
         final ArgumentCaptor<InstanceIdentifier> flowPath = ArgumentCaptor.forClass(InstanceIdentifier.class);
         final ArgumentCaptor<Flow> flow = ArgumentCaptor.forClass(Flow.class);
@@ -530,7 +530,7 @@ public class StatisticsGatheringUtilsTest {
     }
 
     @Test
-    public void testDeleteAllKnownFlows() throws Exception {
+    public void testDeleteAllKnownFlows() {
         final short tableId = 0;
         final InstanceIdentifier<FlowCapableNode> nodePath =
                 deviceInfo.getNodeInstanceIdentifier().augmentation(FlowCapableNode.class);
index ac53e5a2c82de1b75d38075e523af3fc2221ae3b..c09f3e23f060480e14223c6cd5eda4951aaa25a4 100644 (file)
@@ -223,7 +223,7 @@ public class StatisticsManagerImplTest {
     }
 
     @Test
-    public void testClose() throws Exception {
+    public void testClose() {
         statisticsManager.close();
         verify(serviceControlRegistration).close();
     }
index 605f16ed5a99a86f5c4c380a0cccd057ed0c8d8d..20f37d1ae23b42ecc34c5e88f2f6ad6c0b0deb2e 100644 (file)
@@ -30,7 +30,7 @@ public class StatisticsPollingServiceTest {
     private StatisticsPollingService statisticsPollingService;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         when(timeCounter.getAverageTimeBetweenMarks()).thenReturn(15000L);
         when(gatheringSupplier.get()).thenReturn(Futures.immediateFuture(true));
         statisticsPollingService = new StatisticsPollingService(
@@ -39,7 +39,7 @@ public class StatisticsPollingServiceTest {
     }
 
     @Test
-    public void startUp() throws Exception {
+    public void startUp() {
         statisticsPollingService.startUp();
         verify(timeCounter).markStart();
     }
@@ -52,7 +52,7 @@ public class StatisticsPollingServiceTest {
     }
 
     @Test
-    public void scheduler() throws Exception {
+    public void scheduler() {
         statisticsPollingService.scheduler();
         verify(timeCounter).getAverageTimeBetweenMarks();
     }
index 1c4a9ff5ee30e9a9d30c17f80365aae44a5d584a..7080a4f0bb839ccee4b01cfdc1f6b0e64b67016f 100644 (file)
@@ -23,7 +23,7 @@ public class TimeCounterTest {
     private TimeCounter timeCounter;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         timeCounter = new TimeCounter();
     }
 
@@ -41,7 +41,7 @@ public class TimeCounterTest {
      * @throws Exception if interrupted
      */
     @Test
-    public void testGetAverageTimeBetweenMarks() throws Exception {
+    public void testGetAverageTimeBetweenMarks() {
         Assert.assertEquals(0, timeCounter.getAverageTimeBetweenMarks());
         timeCounter.markStart();
         Assert.assertEquals(0, timeCounter.getAverageTimeBetweenMarks());
index 4f9abf088bf3206860c47adfb007a18eeafbe743..9c68de8af645f79fb39fc33e90f0ada36304b3dc 100644 (file)
@@ -49,7 +49,7 @@ public class OpendaylightFlowStatisticsServiceImpl1Test extends AbstractStatsSer
     }
 
     @Test(expected = IllegalAccessError.class)
-    public void testGetAggregateFlowStatisticsFromFlowTableForAllFlows() throws Exception {
+    public void testGetAggregateFlowStatisticsFromFlowTableForAllFlows() {
         GetAggregateFlowStatisticsFromFlowTableForAllFlowsInputBuilder input =
                 new GetAggregateFlowStatisticsFromFlowTableForAllFlowsInputBuilder()
                 .setNode(createNodeRef("unitProt:123"))
@@ -59,7 +59,7 @@ public class OpendaylightFlowStatisticsServiceImpl1Test extends AbstractStatsSer
     }
 
     @Test(expected = IllegalAccessError.class)
-    public void testGetAllFlowStatisticsFromFlowTable() throws Exception {
+    public void testGetAllFlowStatisticsFromFlowTable() {
         GetAllFlowStatisticsFromFlowTableInputBuilder input = new GetAllFlowStatisticsFromFlowTableInputBuilder()
                 .setNode(createNodeRef("unitProt:123"))
                 .setTableId(new TableId((short) 1));
@@ -68,7 +68,7 @@ public class OpendaylightFlowStatisticsServiceImpl1Test extends AbstractStatsSer
     }
 
     @Test(expected = IllegalAccessError.class)
-    public void testGetAllFlowsStatisticsFromAllFlowTables() throws Exception {
+    public void testGetAllFlowsStatisticsFromAllFlowTables() {
         GetAllFlowsStatisticsFromAllFlowTablesInputBuilder input =
                 new GetAllFlowsStatisticsFromAllFlowTablesInputBuilder()
                 .setNode(createNodeRef("unitProt:123"));
@@ -77,7 +77,7 @@ public class OpendaylightFlowStatisticsServiceImpl1Test extends AbstractStatsSer
     }
 
     @Test(expected = IllegalAccessError.class)
-    public void testGetFlowStatisticsFromFlowTable() throws Exception {
+    public void testGetFlowStatisticsFromFlowTable() {
         GetFlowStatisticsFromFlowTableInputBuilder input = new GetFlowStatisticsFromFlowTableInputBuilder()
                 .setNode(createNodeRef("unitProt:123"))
                 .setPriority(5);
index bfc1fb19bf8620e17592904fcce5df5f96cda67c..9da86fb4a96335343cefcf20f695c9f0c00454b9 100644 (file)
@@ -42,7 +42,7 @@ public class OpendaylightFlowStatisticsServiceImpl3Test extends AbstractStatsSer
     }
 
     @Test
-    public void testGetAggregateFlowStatisticsFromFlowTableForAllFlows() throws Exception {
+    public void testGetAggregateFlowStatisticsFromFlowTableForAllFlows() {
         GetAggregateFlowStatisticsFromFlowTableForAllFlowsInput input =
                 new GetAggregateFlowStatisticsFromFlowTableForAllFlowsInputBuilder()
                 .setNode(createNodeRef("unitProt:123"))
@@ -54,7 +54,7 @@ public class OpendaylightFlowStatisticsServiceImpl3Test extends AbstractStatsSer
     }
 
     @Test
-    public void testGetAllFlowStatisticsFromFlowTable() throws Exception {
+    public void testGetAllFlowStatisticsFromFlowTable() {
         GetAllFlowStatisticsFromFlowTableInput input = new GetAllFlowStatisticsFromFlowTableInputBuilder()
                 .setNode(createNodeRef("unitProt:123"))
                 .setTableId(new TableId((short) 1))
@@ -65,7 +65,7 @@ public class OpendaylightFlowStatisticsServiceImpl3Test extends AbstractStatsSer
     }
 
     @Test
-    public void testGetAllFlowsStatisticsFromAllFlowTables() throws Exception {
+    public void testGetAllFlowsStatisticsFromAllFlowTables() {
         GetAllFlowsStatisticsFromAllFlowTablesInput input = new GetAllFlowsStatisticsFromAllFlowTablesInputBuilder()
                 .setNode(createNodeRef("unitProt:123"))
                 .build();
@@ -75,7 +75,7 @@ public class OpendaylightFlowStatisticsServiceImpl3Test extends AbstractStatsSer
     }
 
     @Test
-    public void testGetFlowStatisticsFromFlowTable() throws Exception {
+    public void testGetFlowStatisticsFromFlowTable() {
         GetFlowStatisticsFromFlowTableInput input = new GetFlowStatisticsFromFlowTableInputBuilder()
                 .setNode(createNodeRef("unitProt:123"))
                 .setPriority(5)
index edd81db795a7ef12fd24731adc9ae3d1bd5bb352..23fd2ac06a0e24aeef616905acf28ec3ff3667fe 100644 (file)
@@ -93,7 +93,7 @@ public class OpendaylightFlowTableStatisticsServiceImplTest extends AbstractSing
     }
 
     @Test
-    public void testBuildRequest() throws Exception {
+    public void testBuildRequest() {
         Xid xid = new Xid(42L);
         GetFlowTablesStatisticsInputBuilder input = new GetFlowTablesStatisticsInputBuilder()
                 .setNode(createNodeRef("unitProt:123"));
index 9ed65a9be45190b84c1e0e6d2818637fd3fae3f9..848d03b06eecb05c9e2431f836386b048a987d62 100644 (file)
@@ -79,7 +79,7 @@ public class OpendaylightGroupStatisticsServiceImplTest extends AbstractSingleSt
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         Mockito.verify(notificationPublishService).offerNotification(ArgumentMatchers.any());
     }
 
index cb0ad0dbff4759c5873374f7e1925edf6914e873..792ed116c9a560306dd0c51c7d0893bae465ce65 100644 (file)
@@ -79,7 +79,7 @@ public class OpendaylightMeterStatisticsServiceImplTest extends AbstractSingleSt
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         Mockito.verify(notificationPublishService).offerNotification(ArgumentMatchers.any());
     }
 
index 941fc2aa37e25fb33d8d7d2f63aeed137f89a27a..428f0d387eff086072fceb8d44e4583bdf51c638 100644 (file)
@@ -57,7 +57,7 @@ public class OpendaylightPortStatisticsServiceImplTest extends AbstractSingleSta
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         Mockito.verify(notificationPublishService).offerNotification(ArgumentMatchers.any());
     }
 
index ce5bd48155e448e8b7d79b015564499049361a36..f3e60fef2bc0f94c553feb3fb9e5ee2365b9bacb 100644 (file)
@@ -57,7 +57,7 @@ public class OpendaylightQueueStatisticsServiceImplTest extends AbstractSingleSt
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         Mockito.verify(notificationPublishService).offerNotification(ArgumentMatchers.any());
     }
 
index 80a8b4f4a2f8924ca25089a8866dd5a9b3ea1f9a..8cf5e207d1e77185a4d2508d127e194cd79c7bea 100644 (file)
@@ -31,7 +31,7 @@ public class PortStatsServiceTest extends AbstractStatsServiceTest {
     }
 
     @Test
-    public void testBuildRequest() throws Exception {
+    public void testBuildRequest() {
         Xid xid = new Xid(42L);
         GetNodeConnectorStatisticsInputBuilder input = new GetNodeConnectorStatisticsInputBuilder()
                 .setNodeConnectorId(new NodeConnectorId("junitProto:11:12"))
index 7dae97b3fa77c811323e05de102d7531d42ff999..062878b254cc59fe52c05ee2ad3a62696fa5916c 100644 (file)
@@ -112,7 +112,7 @@ public class AbstractCompatibleStatServiceTest extends AbstractStatsServiceTest
     }
 
     @Test
-    public void testGetOfVersion() throws Exception {
+    public void testGetOfVersion() {
         Assert.assertEquals(OFConstants.OFP_VERSION_1_3, service.getOfVersion().getVersion());
     }
 
index c853add6a3fb81aadd5785a060b2fdf578e95af8..83574b6c67059a1b1c80102da77b3bfd3cf5ee44 100644 (file)
@@ -88,7 +88,7 @@ public class OpendaylightFlowStatisticsServiceDelegateImplTest extends AbstractS
     }
 
     @Test(expected = IllegalAccessError.class)
-    public void testGetAggregateFlowStatisticsFromFlowTableForGivenMatch() throws Exception {
+    public void testGetAggregateFlowStatisticsFromFlowTableForGivenMatch() {
         flowStatisticsServiceDelegate.getAggregateFlowStatisticsFromFlowTableForGivenMatch(null);
     }
 
index ab50f4030cc73b5a082b71723f47a88bcc92f5c5..8cc1fd19b07a6b177a861308ad83fc80fbace587 100644 (file)
@@ -45,14 +45,14 @@ public class StatisticsGatheringOnTheFlyServiceTest extends ServiceMocking {
     }
 
     @Test
-    public void testGetStatisticsOfType() throws Exception {
+    public void testGetStatisticsOfType() {
         final EventIdentifier eventIdentifier = new EventIdentifier("ut-event", "ut-device-id:1");
         statisticsGatheringService.getStatisticsOfType(eventIdentifier, MultipartType.OFPMPFLOW);
         Mockito.verify(mockedRequestContextStack).createRequestContext();
     }
 
     @Test
-    public void testBuildRequest() throws Exception {
+    public void testBuildRequest() {
         final long xidValue = 21L;
         Xid xid = new Xid(xidValue);
         final OfHeader request = statisticsGatheringService.buildRequest(xid, MultipartType.OFPMPFLOW);
index 6cc42d016af7997be7f1db00775937961acbaa06..b7a70d7e4492a6bf0c1ef7f0ebf0f7ceaaa8f3f0 100644 (file)
@@ -32,7 +32,7 @@ public class StatisticsGatheringServiceTest extends ServiceMocking {
     }
 
     @Test
-    public void testGetStatisticsOfType() throws Exception {
+    public void testGetStatisticsOfType() {
         final EventIdentifier eventIdentifier = new EventIdentifier("ut-event", "ut-device-id:1");
         for (MultipartType mpType : MultipartType.values()) {
             statisticsGatheringService.getStatisticsOfType(eventIdentifier, mpType);
@@ -42,7 +42,7 @@ public class StatisticsGatheringServiceTest extends ServiceMocking {
     }
 
     @Test
-    public void testBuildRequest() throws Exception {
+    public void testBuildRequest() {
         final long xidValue = 21L;
         Xid xid = new Xid(xidValue);
         for (MultipartType mpType : MultipartType.values()) {
index 1df959a2cc3e30427da82e1ef3104b02b6de9a34..e793c8fd9d40028301fd5ae2d4f7185ab377bf9a 100755 (executable)
@@ -97,7 +97,7 @@ public abstract class AbstractDirectStatisticsServiceTest {
     }
 
     @Before
-    public void init() throws Exception {
+    public void init() {
         nodeConnectorId = InventoryDataServiceUtil.nodeConnectorIdfromDatapathPortNo(
                 DATAPATH_ID, PORT_NO, OpenflowVersion.get(OF_VERSION));
 
@@ -129,14 +129,14 @@ public abstract class AbstractDirectStatisticsServiceTest {
         setUp();
     }
 
-    protected abstract void setUp() throws Exception;
+    protected abstract void setUp();
 
     @Test
-    public abstract void testBuildRequestBody() throws Exception;
+    public abstract void testBuildRequestBody();
 
     @Test
-    public abstract void testBuildReply() throws Exception;
+    public abstract void testBuildReply();
 
     @Test
-    public abstract void testStoreStatistics() throws Exception;
+    public abstract void testStoreStatistics();
 }
index 73ef8601bde63dfc1b766169d366e7de74749717..1524ce85a37da567b6f60fa1717ef11c8e5d49ce 100644 (file)
@@ -60,7 +60,7 @@ public class OpendaylightDirectStatisticsServiceImplTest {
     private OpendaylightDirectStatisticsService emptyService;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final OpendaylightDirectStatisticsServiceProvider provider = new OpendaylightDirectStatisticsServiceProvider();
         provider.register(AbstractFlowDirectStatisticsService.class, flowDirectStatisticsService);
         provider.register(AbstractGroupDirectStatisticsService.class, groupDirectStatisticsService);
@@ -73,7 +73,7 @@ public class OpendaylightDirectStatisticsServiceImplTest {
     }
 
     @Test
-    public void testGetGroupStatistics() throws Exception {
+    public void testGetGroupStatistics() {
         service.getGroupStatistics(getGroupStatisticsInput);
         verify(groupDirectStatisticsService).handleAndReply(getGroupStatisticsInput);
     }
@@ -94,7 +94,7 @@ public class OpendaylightDirectStatisticsServiceImplTest {
     }
 
     @Test
-    public void testGetQueueStatistics() throws Exception {
+    public void testGetQueueStatistics() {
         service.getQueueStatistics(getQueueStatisticsInput);
         verify(queueDirectStatisticsService).handleAndReply(getQueueStatisticsInput);
     }
@@ -115,7 +115,7 @@ public class OpendaylightDirectStatisticsServiceImplTest {
     }
 
     @Test
-    public void testGetFlowStatistics() throws Exception {
+    public void testGetFlowStatistics() {
         service.getFlowStatistics(getFlowStatisticsInput);
         verify(flowDirectStatisticsService).handleAndReply(getFlowStatisticsInput);
     }
@@ -136,7 +136,7 @@ public class OpendaylightDirectStatisticsServiceImplTest {
     }
 
     @Test
-    public void testGetMeterStatistics() throws Exception {
+    public void testGetMeterStatistics() {
         service.getMeterStatistics(getMeterStatisticsInput);
         verify(meterDirectStatisticsService).handleAndReply(getMeterStatisticsInput);
     }
@@ -157,7 +157,7 @@ public class OpendaylightDirectStatisticsServiceImplTest {
     }
 
     @Test
-    public void testGetNodeConnectorStatistics() throws Exception {
+    public void testGetNodeConnectorStatistics() {
         service.getNodeConnectorStatistics(getNodeConnectorStatisticsInput);
         verify(nodeConnectorDirectStatisticsService).handleAndReply(getNodeConnectorStatisticsInput);
     }
index 41efadf42695d768186604752d74d59c6d51fbc8..3fced71de2f824926a1b5832c1e2164cb3314998 100644 (file)
@@ -45,7 +45,7 @@ public class FlowDirectStatisticsServiceTest extends AbstractDirectStatisticsSer
     private FlowDirectStatisticsService service;
 
     @Override
-    public void setUp() throws Exception {
+    public void setUp() {
         service = new FlowDirectStatisticsService(requestContextStack,
                                                   deviceContext,
                                                   convertorManager,
@@ -56,7 +56,7 @@ public class FlowDirectStatisticsServiceTest extends AbstractDirectStatisticsSer
     }
 
     @Override
-    public void testBuildRequestBody() throws Exception {
+    public void testBuildRequestBody() {
         final GetFlowStatisticsInput input = mock(GetFlowStatisticsInput.class);
 
         when(input.getTableId()).thenReturn(TABLE_NO);
@@ -71,7 +71,7 @@ public class FlowDirectStatisticsServiceTest extends AbstractDirectStatisticsSer
     }
 
     @Override
-    public void testBuildReply() throws Exception {
+    public void testBuildReply() {
         final MultipartReply reply = mock(MultipartReply.class);
         final MultipartReplyFlowCase flowCase = mock(MultipartReplyFlowCase.class);
         final MultipartReplyFlow flow = mock(MultipartReplyFlow.class);
@@ -104,7 +104,7 @@ public class FlowDirectStatisticsServiceTest extends AbstractDirectStatisticsSer
     }
 
     @Override
-    public void testStoreStatistics() throws Exception {
+    public void testStoreStatistics() {
         final FlowAndStatisticsMapList stat = mock(FlowAndStatisticsMapList.class);
         when(stat.getTableId()).thenReturn(TABLE_NO);
         when(stat.getMatch()).thenReturn(new MatchBuilder().build());
index 5798df588165f2b6018eefed73920873c88b0aa6..c50f80cf5dfc357c04006a63fd76273ca6becd3f 100644 (file)
@@ -40,7 +40,7 @@ public class GroupDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     private GroupDirectStatisticsService service;
 
     @Override
-    public void setUp() throws Exception {
+    public void setUp() {
         service = new GroupDirectStatisticsService(requestContextStack,
                                                    deviceContext,
                                                    convertorManager,
@@ -48,7 +48,7 @@ public class GroupDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testBuildRequestBody() throws Exception {
+    public void testBuildRequestBody() {
         final GetGroupStatisticsInput input = mock(GetGroupStatisticsInput.class);
 
         lenient().when(input.getNode()).thenReturn(createNodeRef(NODE_ID));
@@ -64,7 +64,7 @@ public class GroupDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testBuildReply() throws Exception {
+    public void testBuildReply() {
         final MultipartReply reply = mock(MultipartReply.class);
         final MultipartReplyGroupCase groupCase = mock(MultipartReplyGroupCase.class);
         final MultipartReplyGroup group = mock(MultipartReplyGroup.class);
@@ -96,7 +96,7 @@ public class GroupDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testStoreStatistics() throws Exception {
+    public void testStoreStatistics() {
         final org.opendaylight.yang.gen.v1.urn
                 .opendaylight.group.types.rev131018.group.statistics.reply.GroupStats stat =
                 mock(org.opendaylight.yang.gen.v1.urn
index 4990c249ca768dcb6b9ed51c12905025e0d68c17..6faddacb799a6b45b8661fe757eadad36e1861e5 100644 (file)
@@ -39,13 +39,13 @@ public class MeterDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     private MeterDirectStatisticsService service;
 
     @Override
-    public void setUp() throws Exception {
+    public void setUp() {
         service = new MeterDirectStatisticsService(requestContextStack, deviceContext, convertorManager,
                                                    multipartWriterProvider);
     }
 
     @Override
-    public void testBuildRequestBody() throws Exception {
+    public void testBuildRequestBody() {
         final GetMeterStatisticsInput input = mock(GetMeterStatisticsInput.class);
 
         when(input.getMeterId()).thenReturn(new MeterId(METER_NO));
@@ -59,7 +59,7 @@ public class MeterDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testBuildReply() throws Exception {
+    public void testBuildReply() {
         final MultipartReply reply = mock(MultipartReply.class);
         final MultipartReplyMeterCase MeterCase = mock(MultipartReplyMeterCase.class);
         final MultipartReplyMeter meter = mock(MultipartReplyMeter.class);
@@ -85,7 +85,7 @@ public class MeterDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testStoreStatistics() throws Exception {
+    public void testStoreStatistics() {
         final org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.meter.statistics.reply.MeterStats stat
                 = mock(
                 org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.meter.statistics.reply.MeterStats
index 3ec5f6c3a5641df0773959259f78e52cb59276d6..321be4b1e6f91bb07ba6cf989a1a8dc33c6d169e 100644 (file)
@@ -38,7 +38,7 @@ public class NodeConnectorDirectStatisticsServiceTest extends AbstractDirectStat
     private PortDirectStatisticsService service;
 
     @Override
-    public void setUp() throws Exception {
+    public void setUp() {
         service = new PortDirectStatisticsService(requestContextStack,
                                                   deviceContext,
                                                   convertorManager,
@@ -46,7 +46,7 @@ public class NodeConnectorDirectStatisticsServiceTest extends AbstractDirectStat
     }
 
     @Override
-    public void testBuildRequestBody() throws Exception {
+    public void testBuildRequestBody() {
         final GetNodeConnectorStatisticsInput input = mock(GetNodeConnectorStatisticsInput.class);
 
         lenient().when(input.getNode()).thenReturn(createNodeRef(NODE_ID));
@@ -62,7 +62,7 @@ public class NodeConnectorDirectStatisticsServiceTest extends AbstractDirectStat
     }
 
     @Override
-    public void testBuildReply() throws Exception {
+    public void testBuildReply() {
         final MultipartReply reply = mock(MultipartReply.class);
         final MultipartReplyPortStatsCase nodeConnectorCase = mock(MultipartReplyPortStatsCase.class);
         final MultipartReplyPortStats nodeConnector = mock(MultipartReplyPortStats.class);
@@ -97,7 +97,7 @@ public class NodeConnectorDirectStatisticsServiceTest extends AbstractDirectStat
     }
 
     @Override
-    public void testStoreStatistics() throws Exception {
+    public void testStoreStatistics() {
         final NodeConnectorStatisticsAndPortNumberMap stat = mock(NodeConnectorStatisticsAndPortNumberMap.class);
         when(stat.getNodeConnectorId()).thenReturn(nodeConnectorId);
 
index c2ce06a194c93c40c9d576b5e835ca3b8db858a7..96df59863c7507992a40f06f0e708bf7b853eb25 100644 (file)
@@ -42,7 +42,7 @@ public class QueueDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     private QueueDirectStatisticsService service;
 
     @Override
-    public void setUp() throws Exception {
+    public void setUp() {
         service = new QueueDirectStatisticsService(requestContextStack,
                                                    deviceContext,
                                                    convertorManager,
@@ -50,7 +50,7 @@ public class QueueDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testBuildRequestBody() throws Exception {
+    public void testBuildRequestBody() {
         final GetQueueStatisticsInput input = mock(GetQueueStatisticsInput.class);
 
         lenient().when(input.getNode()).thenReturn(createNodeRef(NODE_ID));
@@ -68,7 +68,7 @@ public class QueueDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testBuildReply() throws Exception {
+    public void testBuildReply() {
         final MultipartReply reply = mock(MultipartReply.class);
         final MultipartReplyQueueCase queueCase = mock(MultipartReplyQueueCase.class);
         final MultipartReplyQueue queue = mock(MultipartReplyQueue.class);
@@ -95,7 +95,7 @@ public class QueueDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Test
-    public void testStoreStatisticsBarePortNo() throws Exception {
+    public void testStoreStatisticsBarePortNo() {
         final QueueIdAndStatisticsMap map = mock(QueueIdAndStatisticsMap.class);
         when(map.getQueueId()).thenReturn(new QueueId(QUEUE_NO));
         when(map.getNodeConnectorId()).thenReturn(new NodeConnectorId("1"));
@@ -109,7 +109,7 @@ public class QueueDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testStoreStatistics() throws Exception {
+    public void testStoreStatistics() {
         final QueueIdAndStatisticsMap map = mock(QueueIdAndStatisticsMap.class);
         when(map.getQueueId()).thenReturn(new QueueId(QUEUE_NO));
         when(map.getNodeConnectorId()).thenReturn(new NodeConnectorId("openflow:1:1"));
index bcb761a8af5aa1d1b3a9e06b6e7d830e29ed0f6e..d0eee124fc23dd0241ef1b7e7e9b982ed401d02b 100644 (file)
@@ -46,7 +46,7 @@ public class FlowDirectStatisticsServiceTest extends AbstractDirectStatisticsSer
     private FlowDirectStatisticsService service;
 
     @Override
-    public void setUp() throws Exception {
+    public void setUp() {
         service = new FlowDirectStatisticsService(requestContextStack,
                                                   deviceContext,
                                                   convertorManager,
@@ -57,7 +57,7 @@ public class FlowDirectStatisticsServiceTest extends AbstractDirectStatisticsSer
     }
 
     @Override
-    public void testBuildRequestBody() throws Exception {
+    public void testBuildRequestBody() {
         final GetFlowStatisticsInput input = mock(GetFlowStatisticsInput.class);
 
         when(input.getTableId()).thenReturn(TABLE_NO);
@@ -70,7 +70,7 @@ public class FlowDirectStatisticsServiceTest extends AbstractDirectStatisticsSer
     }
 
     @Override
-    public void testBuildReply() throws Exception {
+    public void testBuildReply() {
         final FlowAndStatisticsMapList flowStat = new FlowAndStatisticsMapListBuilder()
                 .setDuration(new DurationBuilder()
                         .setSecond(new Counter32(1L))
@@ -100,7 +100,7 @@ public class FlowDirectStatisticsServiceTest extends AbstractDirectStatisticsSer
     }
 
     @Override
-    public void testStoreStatistics() throws Exception {
+    public void testStoreStatistics() {
         final FlowAndStatisticsMapList stat = mock(FlowAndStatisticsMapList.class);
         when(stat.getTableId()).thenReturn(TABLE_NO);
         when(stat.getMatch()).thenReturn(new MatchBuilder().build());
index 72d2533b022823bc93ed31386e8d18cb36a156ff..f43224e5a6eb01374e37def73c3bedc6d2b1b784 100644 (file)
@@ -38,7 +38,7 @@ public class GroupDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     private GroupDirectStatisticsService service;
 
     @Override
-    public void setUp() throws Exception {
+    public void setUp() {
         service = new GroupDirectStatisticsService(requestContextStack,
                                                    deviceContext,
                                                    convertorManager,
@@ -46,7 +46,7 @@ public class GroupDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testBuildRequestBody() throws Exception {
+    public void testBuildRequestBody() {
         final GetGroupStatisticsInput input = mock(GetGroupStatisticsInput.class);
 
         lenient().when(input.getNode()).thenReturn(createNodeRef(NODE_ID));
@@ -60,7 +60,7 @@ public class GroupDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testBuildReply() throws Exception {
+    public void testBuildReply() {
         final GroupStats groupStat = new GroupStatsBuilder()
                 .setGroupId(new GroupId(GROUP_NO))
                 .build();
@@ -83,7 +83,7 @@ public class GroupDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testStoreStatistics() throws Exception {
+    public void testStoreStatistics() {
         final org.opendaylight.yang.gen.v1.urn
                 .opendaylight.group.types.rev131018.group.statistics.reply.GroupStats stat =
                 mock(org.opendaylight.yang.gen.v1.urn
index cb9d144aae2fa524f1e2ff669a23b2ec3302fce2..0e85f3711482403917e82cf5535751a58aee09d0 100644 (file)
@@ -43,7 +43,7 @@ public class MeterDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     private MeterDirectStatisticsService service;
 
     @Override
-    public void setUp() throws Exception {
+    public void setUp() {
         service = new MeterDirectStatisticsService(requestContextStack,
                                                    deviceContext,
                                                    convertorManager,
@@ -51,7 +51,7 @@ public class MeterDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testBuildRequestBody() throws Exception {
+    public void testBuildRequestBody() {
         final GetMeterStatisticsInput input = mock(GetMeterStatisticsInput.class);
 
         lenient().when(input.getNode()).thenReturn(createNodeRef(NODE_ID));
@@ -65,7 +65,7 @@ public class MeterDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testBuildReply() throws Exception {
+    public void testBuildReply() {
         final MeterStats meterStat = new MeterStatsBuilder()
                 .setMeterId(new MeterId(METER_NO))
                 .setByteInCount(new Counter64(BigInteger.ONE))
@@ -94,7 +94,7 @@ public class MeterDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testStoreStatistics() throws Exception {
+    public void testStoreStatistics() {
         final org.opendaylight.yang.gen.v1.urn
                 .opendaylight.meter.types.rev130918.meter.statistics.reply.MeterStats stat =
                 mock(org.opendaylight.yang.gen.v1.urn
index f5c5615055ccdeea3a6fcb8a3dd617f03f26da2b..22497a949a700b3c3b583d6252bd4cf1258bdb89 100644 (file)
@@ -36,7 +36,7 @@ public class NodeConnectorDirectStatisticsServiceTest extends AbstractDirectStat
     private PortDirectStatisticsService service;
 
     @Override
-    public void setUp() throws Exception {
+    public void setUp() {
         service = new PortDirectStatisticsService(requestContextStack,
                                                   deviceContext,
                                                   convertorManager,
@@ -44,7 +44,7 @@ public class NodeConnectorDirectStatisticsServiceTest extends AbstractDirectStat
     }
 
     @Override
-    public void testBuildRequestBody() throws Exception {
+    public void testBuildRequestBody() {
         final GetNodeConnectorStatisticsInput input = mock(GetNodeConnectorStatisticsInput.class);
 
         lenient().when(input.getNode()).thenReturn(createNodeRef(NODE_ID));
@@ -58,7 +58,7 @@ public class NodeConnectorDirectStatisticsServiceTest extends AbstractDirectStat
     }
 
     @Override
-    public void testBuildReply() throws Exception {
+    public void testBuildReply() {
         final NodeConnectorStatisticsAndPortNumberMap portStat = new NodeConnectorStatisticsAndPortNumberMapBuilder()
                 .setNodeConnectorId(nodeConnectorId)
                 .build();
@@ -80,7 +80,7 @@ public class NodeConnectorDirectStatisticsServiceTest extends AbstractDirectStat
     }
 
     @Override
-    public void testStoreStatistics() throws Exception {
+    public void testStoreStatistics() {
         final NodeConnectorStatisticsAndPortNumberMap stat = mock(NodeConnectorStatisticsAndPortNumberMap.class);
         when(stat.getNodeConnectorId()).thenReturn(nodeConnectorId);
 
index eda1e8e8b5c2c754eba0644bcafbc9be93127289..5383a96ac3a5917b78e53df7c1f497a31a3cd19c 100644 (file)
@@ -42,7 +42,7 @@ public class QueueDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     private QueueDirectStatisticsService service;
 
     @Override
-    public void setUp() throws Exception {
+    public void setUp() {
         service = new QueueDirectStatisticsService(requestContextStack,
                                                    deviceContext,
                                                    convertorManager,
@@ -50,7 +50,7 @@ public class QueueDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testBuildRequestBody() throws Exception {
+    public void testBuildRequestBody() {
         final GetQueueStatisticsInput input = mock(GetQueueStatisticsInput.class);
 
         lenient().when(input.getNode()).thenReturn(createNodeRef(NODE_ID));
@@ -66,7 +66,7 @@ public class QueueDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testBuildReply() throws Exception {
+    public void testBuildReply() {
         final QueueIdAndStatisticsMap queueStats = new QueueIdAndStatisticsMapBuilder()
                 .setQueueId(new QueueId(QUEUE_NO))
                 .setNodeConnectorId(new NodeConnectorId(PORT_NO.toString()))
@@ -91,7 +91,7 @@ public class QueueDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Test
-    public void testStoreStatisticsBarePortNo() throws Exception {
+    public void testStoreStatisticsBarePortNo() {
         final QueueIdAndStatisticsMap map = mock(QueueIdAndStatisticsMap.class);
         when(map.getQueueId()).thenReturn(new QueueId(QUEUE_NO));
         when(map.getNodeConnectorId()).thenReturn(new NodeConnectorId("1"));
@@ -105,7 +105,7 @@ public class QueueDirectStatisticsServiceTest extends AbstractDirectStatisticsSe
     }
 
     @Override
-    public void testStoreStatistics() throws Exception {
+    public void testStoreStatistics() {
         final QueueIdAndStatisticsMap map = mock(QueueIdAndStatisticsMap.class);
         when(map.getQueueId()).thenReturn(new QueueId(QUEUE_NO));
         when(map.getNodeConnectorId()).thenReturn(new NodeConnectorId("openflow:1:1"));
index d36eb811ee281ef6f4efed409d970556c38a79b2..0e9077a014baa18bc9d8737a9085d5af6fd7bcad 100644 (file)
@@ -32,12 +32,12 @@ public class AggregatedFlowStatisticsTranslatorTest {
     private DeviceInfo deviceInfo;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         translator = new AggregatedFlowStatisticsTranslator();
     }
 
     @Test
-    public void testTranslate() throws Exception {
+    public void testTranslate() {
         MultipartReplyAggregateBuilder aggregateStatsValueBld = new MultipartReplyAggregateBuilder()
                 .setByteCount(BigInteger.valueOf(1L))
                 .setFlowCount(2L)
index 278e00aabecf0413008dd856b8e121927096e69b..4bf6d176de945019f9eec09ec0efe1c06fbb7085 100644 (file)
@@ -64,7 +64,7 @@ public class FlowRemovedTranslatorTest {
     private FlowWildcardsV10 flowWildcards;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final KeyedInstanceIdentifier<Node, NodeKey> nodeId = InstanceIdentifier.create(Nodes.class)
                 .child(Node.class, new NodeKey(new NodeId("dummyNodeId")));
 
@@ -76,7 +76,7 @@ public class FlowRemovedTranslatorTest {
     }
 
     @Test
-    public void testTranslate() throws Exception {
+    public void testTranslate() {
         org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.FlowRemoved flowRemovedMessage =
                 buildMessage(false);
         final FlowRemoved flowRemoved = translator.translate(flowRemovedMessage, deviceInfo, null);
@@ -87,7 +87,7 @@ public class FlowRemovedTranslatorTest {
     }
 
     @Test
-    public void testTranslateV10() throws Exception {
+    public void testTranslateV10() {
         org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.FlowRemoved flowRemovedMessage =
                 buildMessage(true);
         final FlowRemoved flowRemoved = translatorV10.translate(flowRemovedMessage, deviceInfo, null);
index d5487950efca87b0baf1c8580a5ccb15d7b77a4e..b0ae933a030f9ba80d502cc72a7d95134588e86e 100644 (file)
@@ -78,7 +78,7 @@ public class PacketReceivedTranslatorTest {
     static final Long PORT_NUM_VALUE = 11L;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         final List<PhyPort> phyPorts = Collections.singletonList(phyPort);
         convertorManager = ConvertorManagerFactory.createDefaultManager();
 
@@ -86,7 +86,7 @@ public class PacketReceivedTranslatorTest {
     }
 
     @Test
-    public void testTranslate() throws Exception {
+    public void testTranslate() {
         final KeyedInstanceIdentifier<Node, NodeKey> nodePath = KeyedInstanceIdentifier
                 .create(Nodes.class)
                 .child(Node.class, new NodeKey(new NodeId("openflow:10")));
@@ -124,7 +124,7 @@ public class PacketReceivedTranslatorTest {
     }
 
     @Test
-    public void testGetPacketInMatch() throws Exception {
+    public void testGetPacketInMatch() {
         MatchEntryBuilder matchEntryBuilder = assembleMatchEntryBld(PORT_NUM_VALUE);
         MatchBuilder packetInMatchBld = new MatchBuilder()
                 .setMatchEntry(Lists.newArrayList(matchEntryBuilder.build()));
index 6c82e6dc57080c2c7210d0b1305d1d3eee8df98f..af8a4b07d998db1c514a5fbc2e5f3db1608f6f6c 100644 (file)
@@ -47,7 +47,7 @@ public class PortUpdateTranslatorTest {
     private PortStatusMessageBuilder portBld;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         portUpdateTranslator = new PortUpdateTranslator();
 
         portStateBld = new StateBuilder().setLive(true);
@@ -58,7 +58,7 @@ public class PortUpdateTranslatorTest {
     }
 
     @Test
-    public void testTranslate_13() throws Exception {
+    public void testTranslate_13() {
         Mockito.when(deviceInfo.getVersion()).thenReturn(OFConstants.OFP_VERSION_1_3);
         final org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.port.rev130925.PortFeatures portFeatures =
                 org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.port.rev130925.PortFeatures
@@ -88,7 +88,7 @@ public class PortUpdateTranslatorTest {
     }
 
     @Test
-    public void testTranslate_10() throws Exception {
+    public void testTranslate_10() {
         Mockito.when(deviceInfo.getVersion()).thenReturn(OFConstants.OFP_VERSION_1_0);
         final org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.port.rev130925.PortFeatures portFeatures =
                 new org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.port.rev130925.PortFeatures(
index 8dcfe0e5c4b071ac218e13d8a145e47cfc88c10e..98e23ed0af90392f23a6ccf93116216fcfbb47c3 100644 (file)
@@ -24,7 +24,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.opendaylight.ipv6.arbitrary
 public class AddressNormalizationUtilTest {
 
     @Test
-    public void normalizeProtocolAgnosticPortOF10() throws Exception {
+    public void normalizeProtocolAgnosticPortOF10() {
         final Uri left = new Uri("openflow:1:INPORT");
         final Uri right = new Uri("IN_PORT");
 
@@ -35,7 +35,7 @@ public class AddressNormalizationUtilTest {
     }
 
     @Test
-    public void normalizeProtocolAgnosticPortOF13() throws Exception {
+    public void normalizeProtocolAgnosticPortOF13() {
         final Uri left = new Uri("openflow:1:ANY");
         final Uri right = new Uri("ANY");
 
@@ -46,7 +46,7 @@ public class AddressNormalizationUtilTest {
     }
 
     @Test
-    public void normalizeIpv6Prefix() throws Exception {
+    public void normalizeIpv6Prefix() {
         final Ipv6Prefix left = new Ipv6Prefix("1E3D:5678:9ABC::/24");
         final Ipv6Prefix right = new Ipv6Prefix("1e3d:5600:0:0:0:0:0:0/24");
 
@@ -57,7 +57,7 @@ public class AddressNormalizationUtilTest {
     }
 
     @Test
-    public void normalizeIpv6Arbitrary() throws Exception {
+    public void normalizeIpv6Arbitrary() {
         final Ipv6Address leftAddress = new Ipv6Address("1E3D:5678:9ABC::");
         final Ipv6ArbitraryMask leftMask = new Ipv6ArbitraryMask("FFFF:FF00::");
         final Ipv6Prefix right = new Ipv6Prefix("1e3d:5600:0:0:0:0:0:0/24");
@@ -69,7 +69,7 @@ public class AddressNormalizationUtilTest {
     }
 
     @Test
-    public void normalizeIpv6AddressWithoutMask() throws Exception {
+    public void normalizeIpv6AddressWithoutMask() {
         final Ipv6Address left = new Ipv6Address("1E3D:5678:9ABC::");
         final Ipv6Address right = new Ipv6Address("1e3d:5678:9abc:0:0:0:0:0");
 
@@ -80,7 +80,7 @@ public class AddressNormalizationUtilTest {
     }
 
     @Test
-    public void normalizeIpv4Prefix() throws Exception {
+    public void normalizeIpv4Prefix() {
         final Ipv4Prefix left = new Ipv4Prefix("192.168.72.1/16");
         final Ipv4Prefix right = new Ipv4Prefix("192.168.0.0/16");
 
@@ -91,7 +91,7 @@ public class AddressNormalizationUtilTest {
     }
 
     @Test
-    public void normalizeIpv4Arbitrary() throws Exception {
+    public void normalizeIpv4Arbitrary() {
         final Ipv4Address leftAddress = new Ipv4Address("192.168.72.1");
         final DottedQuad leftMask = new DottedQuad("255.255.0.0");
         final Ipv4Prefix right = new Ipv4Prefix("192.168.0.0/16");
@@ -103,7 +103,7 @@ public class AddressNormalizationUtilTest {
     }
 
     @Test
-    public void normalizeMacAddress() throws Exception {
+    public void normalizeMacAddress() {
         final MacAddress left = new MacAddress("01:23:45:AB:CD:EF");
         final MacAddress right = new MacAddress("01:23:45:ab:cd:ef");
 
@@ -114,7 +114,7 @@ public class AddressNormalizationUtilTest {
     }
 
     @Test
-    public void normalizeMacAddressMask() throws Exception {
+    public void normalizeMacAddressMask() {
         final MacAddress left = new MacAddress("FF:FF:FF:FF:FF:FF");
         final MacAddress right = null;
 
index 8cfd6bed96098866652d541acf2c637cbea42e47..6f24255584711af5b25917de1104fcc571478dee 100644 (file)
@@ -52,18 +52,18 @@ public class BarrierUtilTest {
     private ArgumentCaptor<Pair<RpcResult<String>, RpcResult<SendBarrierOutput>>> pairCpt;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         Mockito.when(transactionService.sendBarrier(ArgumentMatchers.any()))
                 .thenReturn(RpcResultBuilder.<SendBarrierOutput>success().buildFuture());
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         Mockito.verifyNoMoreInteractions(transactionService, compositeTransform);
     }
 
     @Test
-    public void testChainBarrier() throws Exception {
+    public void testChainBarrier() {
         final String data = "ut-data1";
         final ListenableFuture<RpcResult<String>> input = RpcResultBuilder.success(data).buildFuture();
         final ListenableFuture<RpcResult<String>> chainResult =
@@ -81,7 +81,7 @@ public class BarrierUtilTest {
     }
 
     @Test
-    public void testCreateSendBarrierInput() throws Exception {
+    public void testCreateSendBarrierInput() {
         final SendBarrierInput barrierInput = BarrierUtil.createSendBarrierInput(NODE_REF);
 
         Assert.assertEquals(NODE_REF, barrierInput.getNode());
index 1078df83c0a8168aa282309194ee0660f7655193..cbceb9e8f25f48e86e0dd1432a6bbc790a1fce44 100644 (file)
@@ -69,7 +69,7 @@ public class DeviceInitializationUtilTest {
     private FeaturesReply featuresReply;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         when(deviceInfo.getNodeInstanceIdentifier()).thenReturn(NODE_II);
         doReturn(CommitInfo.emptyFluentFuture()).when(writeTransaction).commit();
         when(dataBroker.newWriteOnlyTransaction()).thenReturn(writeTransaction);
@@ -83,7 +83,7 @@ public class DeviceInitializationUtilTest {
     }
 
     @Test
-    public void makeEmptyNodes() throws Exception {
+    public void makeEmptyNodes() {
         DeviceInitializationUtil.makeEmptyNodes(dataBroker);
         verify(dataBroker).newWriteOnlyTransaction();
         verify(writeTransaction).merge(LogicalDatastoreType.OPERATIONAL, InstanceIdentifier
@@ -94,26 +94,26 @@ public class DeviceInitializationUtilTest {
     }
 
     @Test
-    public void makeEmptyTables() throws Exception {
+    public void makeEmptyTables() {
         DeviceInitializationUtil.makeEmptyTables(txFacade, deviceInfo, (short) 10);
         verify(txFacade, times(10)).writeToTransaction(
                 eq(LogicalDatastoreType.OPERATIONAL), any(), any());
     }
 
     @Test
-    public void getIpAddress() throws Exception {
+    public void getIpAddress() {
         final IpAddress ipAddress = DeviceInitializationUtil.getIpAddress(connectionContext, NODE_II);
         assertEquals(ipAddress, IetfInetUtil.INSTANCE.ipAddressFor(INET_SOCKET_ADDRESS.getAddress()));
     }
 
     @Test
-    public void getPortNumber() throws Exception {
+    public void getPortNumber() {
         final PortNumber portNumber = DeviceInitializationUtil.getPortNumber(connectionContext, NODE_II);
         assertEquals(portNumber, new PortNumber(PORT));
     }
 
     @Test
-    public void getSwitchFeatures() throws Exception {
+    public void getSwitchFeatures() {
         final SwitchFeatures switchFeatures = DeviceInitializationUtil.getSwitchFeatures(connectionContext);
         assertEquals(TABLES, switchFeatures.getMaxTables().shortValue());
     }
index 47c6b3bd26e80580e59e8a147e9f53f1260e9fb5..545066a0b6775e153426e15c85cdc1811d9f2e53 100644 (file)
@@ -57,7 +57,7 @@ public class FlatBatchUtilTest {
     private static final Logger LOG = LoggerFactory.getLogger(FlatBatchUtilTest.class);
 
     @Test
-    public void testMarkBarriersWhereNeeded_noBarrier() throws Exception {
+    public void testMarkBarriersWhereNeeded_noBarrier() {
         final List<Batch> batches = Lists.newArrayList(
                 //general part - no flush required
                 createBatch(BatchStepType.GROUP_REMOVE),
@@ -87,7 +87,7 @@ public class FlatBatchUtilTest {
     }
 
     @Test
-    public void testMarkBarriersWhereNeeded_allBarriers() throws Exception {
+    public void testMarkBarriersWhereNeeded_allBarriers() {
         // need to flush G+/F+
         checkBarriersBetween(BatchStepType.GROUP_ADD, BatchStepType.FLOW_ADD);
         // need to flush G+/F*
@@ -129,7 +129,7 @@ public class FlatBatchUtilTest {
     }
 
     @Test
-    public void testMarkBarriersWhereNeeded_single() throws Exception {
+    public void testMarkBarriersWhereNeeded_single() {
         final List<Batch> batches = Lists.newArrayList(
                 //general part - no flush required
                 createBatch(BatchStepType.GROUP_REMOVE)
@@ -143,7 +143,7 @@ public class FlatBatchUtilTest {
     }
 
     @Test
-    public void testDecideBarrier() throws Exception {
+    public void testDecideBarrier() {
         Assert.assertTrue(FlatBatchUtil.decideBarrier(EnumSet.of(BatchStepType.GROUP_ADD), BatchStepType.FLOW_ADD));
         Assert.assertTrue(FlatBatchUtil.decideBarrier(EnumSet.of(BatchStepType.GROUP_ADD), BatchStepType.FLOW_UPDATE));
 
@@ -162,7 +162,7 @@ public class FlatBatchUtilTest {
     }
 
     @Test
-    public void testAssembleBatchPlan() throws Exception {
+    public void testAssembleBatchPlan() {
         final List<Batch> batches = Lists.newArrayList(
                 createBatch(BatchStepType.GROUP_ADD),
                 createBatch(BatchStepType.GROUP_REMOVE, 2),
@@ -188,7 +188,7 @@ public class FlatBatchUtilTest {
     }
 
     @Test
-    public void testDetectBatchStepType() throws Exception {
+    public void testDetectBatchStepType() {
         for (BatchStepType stepType : BatchStepType.values()) {
             LOG.debug("checking detection of: {}", stepType);
             final Batch batch = createBatch(stepType);
@@ -268,7 +268,7 @@ public class FlatBatchUtilTest {
     }
 
     @Test
-    public void testMergeJobsResultsFutures() throws Exception {
+    public void testMergeJobsResultsFutures() {
         final BatchFailure batchFailure = new BatchFailureBuilder()
                 .setBatchOrder(9)
                 .setBatchItemIdChoice(new FlatBatchFailureFlowIdCaseBuilder()
index 261d05f96e2c4164bcff757647b9e4011816fe9a..dc5034b5f3f876d5636c5a5fbd88f744cae632e5 100644 (file)
@@ -43,7 +43,7 @@ public class FlowUtilTest {
     public static final Short DUMMY_TABLE_ID = 1;
 
     @Test
-    public void testBuildFlowPath() throws Exception {
+    public void testBuildFlowPath() {
         final InstanceIdentifier<Node> nodePath = InstanceIdentifier
                 .create(Nodes.class)
                 .child(Node.class, new NodeKey(DUMMY_NODE_ID));
@@ -56,7 +56,7 @@ public class FlowUtilTest {
     }
 
     @Test
-    public void testCreateCumulatingFunction() throws Exception {
+    public void testCreateCumulatingFunction() {
         final Function<List<RpcResult<String>>, RpcResult<List<BatchFailedFlowsOutput>>> function =
                 FlowUtil.createCumulatingFunction(Lists.newArrayList(createBatchFlowIdGrouping(DUMMY_FLOW_ID),
                         createBatchFlowIdGrouping(DUMMY_FLOW_ID_2)));
@@ -81,37 +81,37 @@ public class FlowUtilTest {
     }
 
     @Test
-    public void testFlowAddTransformFailure() throws Exception {
+    public void testFlowAddTransformFailure() {
         final RpcResult<List<BatchFailedFlowsOutput>> input = createBatchOutcomeWithError();
         checkBatchErrorOutcomeTransformation(FlowUtil.FLOW_ADD_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testFlowAddTransformSuccess() throws Exception {
+    public void testFlowAddTransformSuccess() {
         final RpcResult<List<BatchFailedFlowsOutput>> input = createEmptyBatchOutcome();
         checkBatchSuccessOutcomeTransformation(FlowUtil.FLOW_ADD_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testFlowRemoveTransformFailure() throws Exception {
+    public void testFlowRemoveTransformFailure() {
         final RpcResult<List<BatchFailedFlowsOutput>> input = createBatchOutcomeWithError();
         checkBatchErrorOutcomeTransformation(FlowUtil.FLOW_REMOVE_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testFlowRemoveTransformSuccess() throws Exception {
+    public void testFlowRemoveTransformSuccess() {
         final RpcResult<List<BatchFailedFlowsOutput>> input = createEmptyBatchOutcome();
         checkBatchSuccessOutcomeTransformation(FlowUtil.FLOW_REMOVE_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testFlowUpdateTransformFailure() throws Exception {
+    public void testFlowUpdateTransformFailure() {
         final RpcResult<List<BatchFailedFlowsOutput>> input = createBatchOutcomeWithError();
         checkBatchErrorOutcomeTransformation(FlowUtil.FLOW_UPDATE_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testFlowUpdateTransformSuccess() throws Exception {
+    public void testFlowUpdateTransformSuccess() {
         final RpcResult<List<BatchFailedFlowsOutput>> input = createEmptyBatchOutcome();
         checkBatchSuccessOutcomeTransformation(FlowUtil.FLOW_UPDATE_TRANSFORM.apply(input));
     }
@@ -148,7 +148,7 @@ public class FlowUtilTest {
     }
 
     @Test
-    public void testCreateComposingFunction_success_success() throws Exception {
+    public void testCreateComposingFunction_success_success() {
         final Function<Pair<RpcResult<AddFlowsBatchOutput>, RpcResult<SendBarrierOutput>>,
                 RpcResult<AddFlowsBatchOutput>> compositeFunction = FlowUtil.createComposingFunction();
 
@@ -164,7 +164,7 @@ public class FlowUtilTest {
     }
 
     @Test
-    public void testCreateComposingFunction_failure_success() throws Exception {
+    public void testCreateComposingFunction_failure_success() {
         final Function<Pair<RpcResult<AddFlowsBatchOutput>, RpcResult<SendBarrierOutput>>,
                 RpcResult<AddFlowsBatchOutput>> compositeFunction = FlowUtil.createComposingFunction();
 
@@ -180,7 +180,7 @@ public class FlowUtilTest {
     }
 
     @Test
-    public void testCreateComposingFunction_success_failure() throws Exception {
+    public void testCreateComposingFunction_success_failure() {
         final Function<Pair<RpcResult<AddFlowsBatchOutput>, RpcResult<SendBarrierOutput>>,
                 RpcResult<AddFlowsBatchOutput>> compositeFunction = FlowUtil.createComposingFunction();
 
@@ -196,7 +196,7 @@ public class FlowUtilTest {
     }
 
     @Test
-    public void testCreateComposingFunction_failure_failure() throws Exception {
+    public void testCreateComposingFunction_failure_failure() {
         final Function<Pair<RpcResult<AddFlowsBatchOutput>, RpcResult<SendBarrierOutput>>,
                 RpcResult<AddFlowsBatchOutput>> compositeFunction = FlowUtil.createComposingFunction();
 
index ccdf2e861b4bef0e63cee9535578eefdec90f58e..7fde0603270de7e9ccf73931f164a519dfb000f4 100644 (file)
@@ -49,7 +49,7 @@ public class GroupUtilTest {
             0b00000000000000000000000000000000000001111111111111001100000000001L;
 
     @Test
-    public void testBuildGroupPath() throws Exception {
+    public void testBuildGroupPath() {
         final InstanceIdentifier<Node> nodePath = InstanceIdentifier
                 .create(Nodes.class)
                 .child(Node.class, new NodeKey(DUMMY_NODE_ID));
@@ -61,7 +61,7 @@ public class GroupUtilTest {
     }
 
     @Test
-    public void testCreateCumulatingFunction() throws Exception {
+    public void testCreateCumulatingFunction() {
         final Function<List<RpcResult<String>>, RpcResult<List<BatchFailedGroupsOutput>>> function =
                 GroupUtil.createCumulatingFunction(Lists.newArrayList(createBatchGroup(DUMMY_GROUP_ID),
                         createBatchGroup(DUMMY_GROUP_ID_2)));
@@ -84,37 +84,37 @@ public class GroupUtilTest {
     }
 
     @Test
-    public void testGroupAddTransformFailure() throws Exception {
+    public void testGroupAddTransformFailure() {
         final RpcResult<List<BatchFailedGroupsOutput>> input = createBatchOutcomeWithError();
         checkBatchErrorOutcomeTransformation(GroupUtil.GROUP_ADD_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testGroupAddTransformFailureSuccess() throws Exception {
+    public void testGroupAddTransformFailureSuccess() {
         final RpcResult<List<BatchFailedGroupsOutput>> input = createEmptyBatchOutcome();
         checkBatchSuccessOutcomeTransformation(GroupUtil.GROUP_ADD_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testGroupRemoveTransformFailure() throws Exception {
+    public void testGroupRemoveTransformFailure() {
         final RpcResult<List<BatchFailedGroupsOutput>> input = createBatchOutcomeWithError();
         checkBatchErrorOutcomeTransformation(GroupUtil.GROUP_REMOVE_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testFlowRemoveTransformSuccess() throws Exception {
+    public void testFlowRemoveTransformSuccess() {
         final RpcResult<List<BatchFailedGroupsOutput>> input = createEmptyBatchOutcome();
         checkBatchSuccessOutcomeTransformation(GroupUtil.GROUP_REMOVE_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testFlowUpdateTransformFailure() throws Exception {
+    public void testFlowUpdateTransformFailure() {
         final RpcResult<List<BatchFailedGroupsOutput>> input = createBatchOutcomeWithError();
         checkBatchErrorOutcomeTransformation(GroupUtil.GROUP_UPDATE_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testFlowUpdateTransformSuccess() throws Exception {
+    public void testFlowUpdateTransformSuccess() {
         final RpcResult<List<BatchFailedGroupsOutput>> input = createEmptyBatchOutcome();
         checkBatchSuccessOutcomeTransformation(GroupUtil.GROUP_UPDATE_TRANSFORM.apply(input));
     }
@@ -151,7 +151,7 @@ public class GroupUtilTest {
     }
 
     @Test
-    public void testCreateComposingFunction_success_success() throws Exception {
+    public void testCreateComposingFunction_success_success() {
         final Function<Pair<RpcResult<AddGroupsBatchOutput>, RpcResult<SendBarrierOutput>>,
                 RpcResult<AddGroupsBatchOutput>> compositeFunction = GroupUtil.createComposingFunction();
 
@@ -167,7 +167,7 @@ public class GroupUtilTest {
     }
 
     @Test
-    public void testCreateComposingFunction_failure_success() throws Exception {
+    public void testCreateComposingFunction_failure_success() {
         final Function<Pair<RpcResult<AddGroupsBatchOutput>, RpcResult<SendBarrierOutput>>,
                 RpcResult<AddGroupsBatchOutput>> compositeFunction = GroupUtil.createComposingFunction();
 
@@ -183,7 +183,7 @@ public class GroupUtilTest {
     }
 
     @Test
-    public void testCreateComposingFunction_success_failure() throws Exception {
+    public void testCreateComposingFunction_success_failure() {
         final Function<Pair<RpcResult<AddGroupsBatchOutput>, RpcResult<SendBarrierOutput>>,
                 RpcResult<AddGroupsBatchOutput>> compositeFunction = GroupUtil.createComposingFunction();
 
@@ -199,7 +199,7 @@ public class GroupUtilTest {
     }
 
     @Test
-    public void testCreateComposingFunction_failure_failure() throws Exception {
+    public void testCreateComposingFunction_failure_failure() {
         final Function<Pair<RpcResult<AddGroupsBatchOutput>, RpcResult<SendBarrierOutput>>,
                 RpcResult<AddGroupsBatchOutput>> compositeFunction = GroupUtil.createComposingFunction();
 
index bdf0a2a918d52e1132fbfacb068285c75da40dba..c1a619c5e1a4e260e1f36a4a6853c86a6330a440 100644 (file)
@@ -65,7 +65,7 @@ public class MdSalRegistrationUtilsTest {
     private ConvertorManager convertorManager;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         convertorManager = ConvertorManagerFactory.createDefaultManager();
         when(mockedDeviceContext.getDeviceInfo()).thenReturn(mockedDeviceInfo);
         when(mockedConnectionContext.getFeatures()).thenReturn(mockedFeatures);
@@ -84,7 +84,7 @@ public class MdSalRegistrationUtilsTest {
     }
 
     @Test
-    public void registerStatCompatibilityServices() throws Exception {
+    public void registerStatCompatibilityServices() {
         final OpendaylightFlowStatisticsService flowStatService = OpendaylightFlowStatisticsServiceImpl
                 .createWithOook(mockedRpcContext, mockedDeviceContext, convertorManager);
 
index 74ee0b8b59ed7832f9a08b49c701ceddbdcc5107..7fa7ebcb02fae15ef3bc12af822d8cd866a999a2 100644 (file)
@@ -44,7 +44,7 @@ public class MeterUtilTest {
     private static final MeterId DUMMY_METER_ID_2 = new MeterId(43L);
 
     @Test
-    public void testBuildGroupPath() throws Exception {
+    public void testBuildGroupPath() {
         final InstanceIdentifier<Node> nodePath = InstanceIdentifier
                 .create(Nodes.class)
                 .child(Node.class, new NodeKey(DUMMY_NODE_ID));
@@ -56,7 +56,7 @@ public class MeterUtilTest {
     }
 
     @Test
-    public void testCreateCumulatingFunction() throws Exception {
+    public void testCreateCumulatingFunction() {
         final Function<List<RpcResult<String>>, RpcResult<List<BatchFailedMetersOutput>>> function =
                 MeterUtil.createCumulativeFunction(Lists.newArrayList(
                         createBatchMeter(DUMMY_METER_ID),
@@ -82,37 +82,37 @@ public class MeterUtilTest {
     }
 
     @Test
-    public void testMeterAddTransformFailure() throws Exception {
+    public void testMeterAddTransformFailure() {
         final RpcResult<List<BatchFailedMetersOutput>> input = createBatchOutcomeWithError();
         checkBatchErrorOutcomeTransformation(MeterUtil.METER_ADD_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testMeterAddTransformSuccess() throws Exception {
+    public void testMeterAddTransformSuccess() {
         final RpcResult<List<BatchFailedMetersOutput>> input = createEmptyBatchOutcome();
         checkBatchSuccessOutcomeTransformation(MeterUtil.METER_ADD_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testMeterRemoveTransformFailure() throws Exception {
+    public void testMeterRemoveTransformFailure() {
         final RpcResult<List<BatchFailedMetersOutput>> input = createBatchOutcomeWithError();
         checkBatchErrorOutcomeTransformation(MeterUtil.METER_REMOVE_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testFlowRemoveTransformSuccess() throws Exception {
+    public void testFlowRemoveTransformSuccess() {
         final RpcResult<List<BatchFailedMetersOutput>> input = createEmptyBatchOutcome();
         checkBatchSuccessOutcomeTransformation(MeterUtil.METER_REMOVE_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testFlowUpdateTransformFailure() throws Exception {
+    public void testFlowUpdateTransformFailure() {
         final RpcResult<List<BatchFailedMetersOutput>> input = createBatchOutcomeWithError();
         checkBatchErrorOutcomeTransformation(MeterUtil.METER_UPDATE_TRANSFORM.apply(input));
     }
 
     @Test
-    public void testFlowUpdateTransformSuccess() throws Exception {
+    public void testFlowUpdateTransformSuccess() {
         final RpcResult<List<BatchFailedMetersOutput>> input = createEmptyBatchOutcome();
         checkBatchSuccessOutcomeTransformation(MeterUtil.METER_UPDATE_TRANSFORM.apply(input));
     }
@@ -149,7 +149,7 @@ public class MeterUtilTest {
     }
 
     @Test
-    public void testCreateComposingFunction_success_success() throws Exception {
+    public void testCreateComposingFunction_success_success() {
         final Function<Pair<RpcResult<AddMetersBatchOutput>, RpcResult<SendBarrierOutput>>,
                 RpcResult<AddMetersBatchOutput>> compositeFunction = MeterUtil.createComposingFunction();
 
@@ -165,7 +165,7 @@ public class MeterUtilTest {
     }
 
     @Test
-    public void testCreateComposingFunction_failure_success() throws Exception {
+    public void testCreateComposingFunction_failure_success() {
         final Function<Pair<RpcResult<AddMetersBatchOutput>, RpcResult<SendBarrierOutput>>,
                 RpcResult<AddMetersBatchOutput>> compositeFunction = MeterUtil.createComposingFunction();
 
@@ -181,7 +181,7 @@ public class MeterUtilTest {
     }
 
     @Test
-    public void testCreateComposingFunction_success_failure() throws Exception {
+    public void testCreateComposingFunction_success_failure() {
         final Function<Pair<RpcResult<AddMetersBatchOutput>, RpcResult<SendBarrierOutput>>,
                 RpcResult<AddMetersBatchOutput>> compositeFunction = MeterUtil.createComposingFunction();
 
@@ -197,7 +197,7 @@ public class MeterUtilTest {
     }
 
     @Test
-    public void testCreateComposingFunction_failure_failure() throws Exception {
+    public void testCreateComposingFunction_failure_failure() {
         final Function<Pair<RpcResult<AddMetersBatchOutput>, RpcResult<SendBarrierOutput>>,
                 RpcResult<AddMetersBatchOutput>> compositeFunction = MeterUtil.createComposingFunction();
 
index 75b499dd5404e5d1a8dfcaea699ff96739b385ce..cd7920d2b7d323530ab1cf7a65d549b475af2f47 100644 (file)
@@ -64,14 +64,14 @@ public class NodeConnectorRefToPortTranslatorTest extends TestCase {
     }
 
     @Test
-    public void testGetPortNoFromPacketIn() throws Exception {
+    public void testGetPortNoFromPacketIn() {
         PacketIn packetIn = createPacketIn(PORT_NO);
         Long portNo = NodeConnectorRefToPortTranslator.getPortNoFromPacketIn(packetIn);
         assertEquals(portNo, PORT_NO);
     }
 
     @Test
-    public void testNodeConnectorConversion() throws Exception {
+    public void testNodeConnectorConversion() {
         // Mock the packet in message
         PacketIn packetIn = createPacketIn(PORT_NO);
 
index fc943e8ee0090dd4ebd1ed340e99f42a19637192..39ae0f246ffdab51fdfbd08ad4b17ca302887f90 100644 (file)
@@ -29,12 +29,12 @@ public class PathUtilTest {
     private static final NodeRef NODE_REF = new NodeRef(NODE_II);
 
     @Test
-    public void testExtractNodeId() throws Exception {
+    public void testExtractNodeId() {
         Assert.assertEquals(NODE_ID, PathUtil.extractNodeId(NODE_REF));
     }
 
     @Test
-    public void testExtractNodeId2() throws Exception {
+    public void testExtractNodeId2() {
         Assert.assertEquals(NODE_ID, PathUtil.extractNodeId(NODE_II));
     }
 }
\ No newline at end of file
index 27dc780976ddf15510e01d72cbc4ea553a6c2cea..955878bf391eeabf20e8439e7c35de7b7c37291d 100644 (file)
@@ -31,7 +31,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.acti
 @RunWith(MockitoJUnitRunner.class)
 public class ConvertorManagerTest {
     @Test
-    public void testRegisterConvertor() throws Exception {
+    public void testRegisterConvertor() {
         final ConvertorManager convertorManager = new ConvertorManager(OFConstants.OFP_VERSION_1_3)
                 .registerConvertor(OFConstants.OFP_VERSION_1_3, new Convertor<Action, String, VersionConvertorData>() {
                     @Override
@@ -50,7 +50,7 @@ public class ConvertorManagerTest {
     }
 
     @Test
-    public void testConvert() throws Exception {
+    public void testConvert() {
         final ConvertorManager convertorManager = new ConvertorManager(OFConstants.OFP_VERSION_1_3)
                 .registerConvertor(OFConstants.OFP_VERSION_1_3, new Convertor<Action, String, VersionConvertorData>() {
                     @Override
@@ -77,7 +77,7 @@ public class ConvertorManagerTest {
      * Test for {@link ConvertorManager#convert(Collection, ConvertorData)}.
      */
     @Test
-    public void testConvert1() throws Exception {
+    public void testConvert1() {
         final ConvertorManager convertorManager = new ConvertorManager(OFConstants.OFP_VERSION_1_3)
             .registerConvertor(OFConstants.OFP_VERSION_1_3,
                 new Convertor<List<Action>, String, VersionConvertorData>() {
index 203bf3b84183caa18975dafef5119b5251c5030a..bb9f2dcdbb70c0d261f1eb845e6ebedb8601952f 100644 (file)
@@ -373,7 +373,7 @@ public class TableFeaturesConvertorTest {
     }
 
     @Test
-    public void testToTableFeaturesRequest() throws Exception {
+    public void testToTableFeaturesRequest() {
         List<org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.features.TableFeatures>
             tableFeaturesList = new ArrayList<>();
         org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.features.TableFeaturesBuilder
index c6a32918ac41f521ec38b1c8dee914e4f1d2f1db..de11d54db72fd52d88a38d80f4ca62fb07451d91 100644 (file)
@@ -57,7 +57,7 @@ public class IpConversionUtilTest {
     }
 
     @Test
-    public void testCountBitsAsCIDRReplacement() throws Exception {
+    public void testCountBitsAsCIDRReplacement() {
         BigInteger maskSeed = new BigInteger("1ffffffffffffffffffffffffffffffff", 16);
         byte[] maskArray = new byte[16];
         LOG.debug("maskSeed= {}", ByteBufUtils.bytesToHexString(maskSeed.toByteArray()));
index dbf479c701f25d2a7dc05ba004653f15db999fd7..27c165de9e0a490a7d57a9d7b9b88a406e647446 100644 (file)
@@ -36,13 +36,13 @@ public class SimpleClientFramer extends ByteToMessageDecoder {
     }
 
     @Override
-    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
+    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
         LOG.warn("Unexpected exception from downstream.", cause);
         ctx.close();
     }
 
     @Override
-    protected void decode(ChannelHandlerContext chc, ByteBuf bb, List<Object> list) throws Exception {
+    protected void decode(ChannelHandlerContext chc, ByteBuf bb, List<Object> list) {
         if (bb.readableBytes() < LENGTH_OF_HEADER) {
             LOG.debug("skipping bb - too few data for header: {}", bb.readableBytes());
             return;
index f4ff4298593108af170fd95e612ca4128c51fd27..cbff4822f351059c82c6d4e2690a7f77ebefd5b7 100644 (file)
@@ -41,7 +41,7 @@ public class SimpleClientHandler extends ChannelInboundHandlerAdapter {
     }
 
     @Override
-    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
+    public void channelRead(ChannelHandlerContext ctx, Object msg) {
         ByteBuf bb = (ByteBuf) msg;
         if (LOG.isDebugEnabled()) {
             LOG.debug("Message {}", ByteBufUtils.byteBufToHexString(bb));
@@ -55,7 +55,7 @@ public class SimpleClientHandler extends ChannelInboundHandlerAdapter {
     }
 
     @Override
-    public void channelActive(ChannelHandlerContext ctx) throws Exception {
+    public void channelActive(ChannelHandlerContext ctx) {
         LOG.debug("Client is active");
         if (isOnlineFuture != null) {
             isOnlineFuture.set(true);
index fd3821e8c35fb9ba81d229c103ab45e9425c79c4..a94a1a5d59c59bedeede0be7bcb0b0b909436ca5 100644 (file)
@@ -39,7 +39,7 @@ public class SimpleClientInitializer extends ChannelInitializer<SocketChannel> {
     }
 
     @Override
-    public void initChannel(SocketChannel ch) throws Exception {
+    public void initChannel(SocketChannel ch) {
         ChannelPipeline pipeline = ch.pipeline();
         if (secured) {
             SSLEngine engine = ClientSslContextFactory.getClientContext()
index 287276fe9b600f8ce46459b4bda8173e415a5852..457927ab912d0f3e5aef2e24c022d21a400360d5 100644 (file)
@@ -37,13 +37,13 @@ public class UdpSimpleClientFramer extends MessageToMessageDecoder<DatagramPacke
     }
 
     @Override
-    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
+    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
         LOG.warn("Unexpected exception from downstream.", cause);
         ctx.close();
     }
 
     @Override
-    protected void decode(ChannelHandlerContext chc, DatagramPacket msg, List<Object> list) throws Exception {
+    protected void decode(ChannelHandlerContext chc, DatagramPacket msg, List<Object> list) {
         ByteBuf bb = msg.content();
         if (bb.readableBytes() < LENGTH_OF_HEADER) {
             LOG.debug("skipping bb - too few data for header: {}", bb.readableBytes());
index 4504eac413e067515b1b7cf036bf7446fec8f756..04e4030b644862f21802d1a118e763b827a0cf66 100644 (file)
@@ -34,7 +34,7 @@ public class UdpSimpleClientInitializer extends ChannelInitializer<DatagramChann
     }
 
     @Override
-    public void initChannel(DatagramChannel ch) throws Exception {
+    public void initChannel(DatagramChannel ch) {
         ChannelPipeline pipeline = ch.pipeline();
         SimpleClientHandler simpleClientHandler = new SimpleClientHandler(isOnlineFuture, scenarioHandler);
         simpleClientHandler.setScenario(scenarioHandler);
index 7f12e32b604c5416cfac4235e688962f3a3be508..9a570176259a34785e16282a37aa4f117d52eab4 100644 (file)
@@ -80,7 +80,7 @@ public class OpenflowpluginGroupTestServiceProvider implements AutoCloseable,
      * @see java.lang.AutoCloseable#close()
      */
     @Override
-    public void close() throws Exception {
+    public void close() {
         OpenflowpluginGroupTestServiceProvider.LOG
                 .info("SalGroupServiceProvide stopped.");
         groupRegistration.close();
index 92593bf1bef3b083e003f4966cae8a0493d01f3f..851ae24ad0d01fa85d184daf845351adebe56550 100644 (file)
@@ -76,7 +76,7 @@ public class OpenflowpluginTableFeaturesTestServiceProvider implements
      * @see java.lang.AutoCloseable#close()
      */
     @Override
-    public void close() throws Exception {
+    public void close() {
         OpenflowpluginTableFeaturesTestServiceProvider.LOG
                 .info("SalTableServiceProvider stopped.");
         tableRegistration.close();
index 41855a95ce04372589b41396193f7bce308213ab..ba4033d316c755c46ef8433ef4d093f9ce0da255 100644 (file)
@@ -86,7 +86,7 @@ public class OpenflowpluginTestServiceProvider implements AutoCloseable,
      * @see java.lang.AutoCloseable#close()
      */
     @Override
-    public void close() throws Exception {
+    public void close() {
         OpenflowpluginTestServiceProvider.LOG
                 .info("SalFlowServiceProvide stopped.");
         flowRegistration.close();