Enable verification of unused and redundant imports via checkstyle.
Rename checkstyle configuration file because it no longer checks only
for tabs.
Change-Id: Id94a92fbc8a79aba01a4177aec3d80a2b3394508
Signed-off-by: Alissa Bonas <abonas@redhat.com>
import java.net.InetAddress;
-import org.opendaylight.controller.arphandler.ARPEvent;
import org.opendaylight.controller.hosttracker.hostAware.HostNodeConnector;
import org.opendaylight.controller.switchmanager.Subnet;
/*
import java.util.HashSet;\r
import java.util.Hashtable;\r
import java.util.Set;\r
-import java.util.List;\r
import java.util.concurrent.ConcurrentMap;\r
\r
import javax.inject.Inject;\r
import org.ops4j.pax.exam.util.PathUtils;\r
import org.osgi.framework.Bundle;\r
import org.osgi.framework.BundleContext;\r
-import org.osgi.framework.ServiceReference;\r
import org.osgi.framework.ServiceRegistration;\r
import org.slf4j.Logger;\r
import org.slf4j.LoggerFactory;\r
import javax.transaction.RollbackException;
import javax.transaction.SystemException;
import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
import org.apache.felix.dm.Component;
import org.opendaylight.controller.clustering.services.CacheConfigException;
import org.opendaylight.controller.clustering.services.CacheExistException;
package org.opendaylight.controller.clustering.services_implementation.internal;
import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
import java.net.InetAddress;
-import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Properties;
-import java.util.concurrent.ConcurrentHashMap;
-import java.util.concurrent.ConcurrentMap;
import org.infinispan.CacheImpl;
import org.junit.Assert;
import org.opendaylight.controller.sal.core.ComponentActivatorAbstractBase;
-import org.opendaylight.controller.clustering.services.ICacheUpdateAware;
import org.opendaylight.controller.clustering.services.IClusterContainerServices;
import org.opendaylight.controller.clustering.services.IClusterGlobalServices;
-import org.opendaylight.controller.clustering.services.IClusterServices;
-import org.opendaylight.controller.clustering.services.ICoordinatorChangeAware;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.felix.dm.Component;
import javax.transaction.RollbackException;
import javax.transaction.SystemException;
import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
import org.opendaylight.controller.clustering.services.CacheConfigException;
import org.opendaylight.controller.clustering.services.CacheExistException;
-import org.opendaylight.controller.clustering.services.CacheListenerAddException;
-import org.opendaylight.controller.clustering.services.ICacheUpdateAware;
import org.opendaylight.controller.clustering.services.IClusterServices;
import org.opendaylight.controller.clustering.services.IClusterServicesCommon;
-import org.opendaylight.controller.clustering.services.ICoordinatorChangeAware;
-import org.opendaylight.controller.clustering.services.IListenRoleChange;
-import org.opendaylight.controller.clustering.services.ListenRoleChangeAddException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Dictionary;
-import java.util.Collections;
-import java.util.HashSet;
import org.apache.felix.dm.Component;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
public abstract class ClusterManagerCommon implements IClusterServicesCommon {
protected String containerName = "";
import org.opendaylight.controller.clustering.services.CacheConfigException;
import org.opendaylight.controller.clustering.services.CacheExistException;
import org.opendaylight.controller.clustering.services.IClusterGlobalServices;
-import org.opendaylight.controller.clustering.stub.internal.ClusterGlobalManager;
public class TestClusteringStub {
@Test
<property name="format" value="\s+$"/>\r
<property name="message" value="Line has trailing spaces."/>\r
</module>\r
+ <module name="TreeWalker">\r
+ <module name="RedundantImport"/>\r
+ <module name="UnusedImports"/>\r
+ </module>\r
\r
</module>\r
</dependencies>
<configuration>
<failsOnError>true</failsOnError>
- <configLocation>controller/space_and_tabs_checks.xml</configLocation>
+ <configLocation>controller/checkstyle.xml</configLocation>
</configuration>
</plugin>
</plugins>
</dependencies>\r
<configuration>\r
<failsOnError>true</failsOnError>\r
- <configLocation>controller/space_and_tabs_checks.xml</configLocation>\r
+ <configLocation>controller/checkstyle.xml</configLocation>\r
</configuration>\r
</plugin>\r
</plugins>\r
</dependencies>
<configuration>
<failsOnError>true</failsOnError>
- <configLocation>controller/space_and_tabs_checks.xml</configLocation>
+ <configLocation>controller/checkstyle.xml</configLocation>
</configuration>
</plugin>
<plugin>
</executions>
<configuration>
<failsOnError>true</failsOnError>
- <configLocation>controller/space_and_tabs_checks.xml</configLocation>
+ <configLocation>controller/checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<sourceDirectory>${project.basedir}</sourceDirectory>
import javax.management.ObjectName;
import org.opendaylight.controller.config.api.jmx.CommitStatus;
-import org.opendaylight.controller.config.api.jmx.ConfigTransactionControllerMXBean;
import org.opendaylight.controller.config.api.jmx.constants.ConfigRegistryConstants;
/**
*/
package org.opendaylight.controller.config.api;
-import java.io.Closeable;
-
import org.opendaylight.controller.config.api.runtime.RootRuntimeBeanRegistrator;
import org.opendaylight.controller.config.spi.Module;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
-import javax.management.ObjectName;
-
/**
* Indicates what service interface is expected to be obtained as a dependency
* of a module. This annotation must be present for each dependency setter in
import javax.annotation.concurrent.NotThreadSafe;
import org.opendaylight.controller.config.api.ModuleIdentifier;
-import org.opendaylight.controller.config.api.annotations.RequireInterface;
import org.opendaylight.yangtools.concepts.Identifiable;
import org.opendaylight.controller.config.api.annotations.AbstractServiceInterface;
import org.osgi.framework.BundleContext;
-import javax.management.DynamicMBean;
import java.util.Set;
/**
import org.opendaylight.controller.config.api.RuntimeBeanRegistratorAwareModule;
import org.opendaylight.controller.config.api.ValidationException;
import org.opendaylight.controller.config.api.jmx.CommitStatus;
-import org.opendaylight.controller.config.api.jmx.ConfigRegistryMXBean;
import org.opendaylight.controller.config.api.jmx.ObjectNameUtil;
import org.opendaylight.controller.config.manager.impl.dynamicmbean.DynamicReadableWrapper;
import org.opendaylight.controller.config.manager.impl.factoriesresolver.HierarchicalConfigMBeanFactoriesHolder;
import java.util.Collection;
import java.util.List;
-import java.util.Set;
-import javax.management.InstanceAlreadyExistsException;
import javax.management.ObjectName;
import org.opendaylight.controller.config.api.ModuleIdentifier;
import org.opendaylight.controller.config.api.ModuleIdentifier;
import org.opendaylight.controller.config.manager.impl.dynamicmbean.DynamicReadableWrapper;
-import org.opendaylight.controller.config.manager.impl.jmx.TransactionModuleJMXRegistrator;
import org.opendaylight.controller.config.manager.impl.jmx.TransactionModuleJMXRegistrator
.TransactionModuleJMXRegistration;
import org.opendaylight.controller.config.spi.Module;
import javax.management.Attribute;
import javax.management.AttributeList;
import javax.management.AttributeNotFoundException;
-import javax.management.DynamicMBean;
import javax.management.InstanceNotFoundException;
import javax.management.InvalidAttributeValueException;
import javax.management.MBeanException;
import org.opendaylight.controller.config.api.ModuleIdentifier;
import org.opendaylight.controller.config.api.ValidationException;
-import org.opendaylight.controller.config.api.annotations.RequireInterface;
import org.opendaylight.controller.config.api.jmx.ObjectNameUtil;
import org.opendaylight.controller.config.manager.impl.TransactionIdentifier;
import org.opendaylight.controller.config.spi.Module;
import org.opendaylight.controller.config.api.jmx.CommitStatus;
import org.opendaylight.controller.config.manager.impl.ConfigRegistryImpl;
import org.opendaylight.controller.config.spi.ModuleFactory;
-import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.osgi.util.tracker.ServiceTrackerCustomizer;
import org.slf4j.Logger;
import java.util.List;
import org.apache.commons.io.IOUtils;
-import org.opendaylight.controller.config.api.jmx.CommitStatus;
-import org.opendaylight.controller.config.manager.impl.ConfigRegistryImpl;
import org.opendaylight.controller.config.spi.ModuleFactory;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleEvent;
-import org.osgi.framework.BundleException;
import org.osgi.framework.ServiceRegistration;
import org.osgi.util.tracker.BundleTracker;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import javax.management.ObjectName;
/**
* OSGi extender that listens for bundle activation events. Reads file
import org.opendaylight.controller.config.manager.testingservices.threadpool.TestingFixedThreadPool;
import org.opendaylight.controller.config.manager.testingservices.threadpool.TestingFixedThreadPoolConfigMXBean;
import org.opendaylight.controller.config.manager.testingservices.threadpool.TestingFixedThreadPoolModuleFactory;
-import org.opendaylight.controller.config.manager.testingservices.threadpool.TestingThreadPoolIfc;
import org.opendaylight.controller.config.util.ConfigTransactionClient;
import org.opendaylight.controller.config.util.ConfigTransactionJMXClient;
import org.opendaylight.controller.config.util.jolokia.ConfigTransactionJolokiaClient;
*/
package org.opendaylight.controller.config.util;
-import java.io.IOException;
-
import org.jolokia.jvmagent.JolokiaServer;
import org.jolokia.jvmagent.JvmAgentConfig;
import org.opendaylight.controller.config.api.JmxAttribute;
import org.opendaylight.controller.config.api.JmxAttributeValidationException;
-import org.opendaylight.controller.config.api.ModuleIdentifier;
import com.google.common.collect.Sets;
import java.util.Collections;
import java.util.List;
-import ch.qos.logback.core.status.Status;
import org.slf4j.LoggerFactory;
import ch.qos.logback.classic.LoggerContext;
import java.io.File;
import java.io.IOException;
import java.lang.management.ManagementFactory;
-import java.util.ArrayList;
import java.util.List;
import javax.management.InstanceAlreadyExistsException;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
-import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator;
import org.opendaylight.controller.config.yang.store.api.YangStoreException;
import org.opendaylight.controller.config.yang.store.api.YangStoreSnapshot;
import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleContext;
import com.google.common.collect.Lists;
*/
package org.opendaylight.controller.config.yang.test.impl;
-import org.opendaylight.controller.config.api.ModuleIdentifier;
/**
*
*/
package org.opendaylight.controller.config.yang.test.impl;
-import org.opendaylight.controller.config.api.ModuleIdentifier;
/**
*
package org.opendaylight.controller.forwarding.staticrouting.internal;
-import java.util.Dictionary;
-import java.util.HashSet;
-import java.util.Hashtable;
-import java.util.Set;
-
import org.apache.felix.dm.Component;
import org.opendaylight.controller.forwarding.staticrouting.IForwardingStaticRouting;
import org.opendaylight.controller.forwarding.staticrouting.IStaticRoutingAware;
import org.opendaylight.controller.sal.flowprogrammer.Flow;
import org.opendaylight.controller.sal.match.Match;
import org.opendaylight.controller.sal.match.MatchType;
-import org.opendaylight.controller.sal.utils.NodeCreator;
import org.opendaylight.controller.sal.utils.Status;
import org.opendaylight.controller.sal.utils.StatusCode;
import org.ops4j.pax.exam.Option;
import java.util.Set;
import org.opendaylight.controller.sal.core.NodeConnector;
-import org.osgi.service.device.Device;
/**
* Device manager allows interacting with devices on the network. Note that
import java.util.EnumSet;
import org.opendaylight.controller.hosttracker.IDeviceService.DeviceField;
-import org.osgi.service.device.Device;
/**
* Entities within an entity class are grouped into {@link Device} objects based
import org.junit.Assert;\r
import org.junit.Test;\r
\r
-import org.opendaylight.controller.hosttracker.hostAware.HostNodeConnector;\r
import org.opendaylight.controller.sal.core.ConstructionException;\r
import org.opendaylight.controller.sal.core.Node;\r
\r
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleException;
import org.osgi.framework.BundleActivator;
-import org.osgi.framework.ServiceRegistration;
import org.osgi.framework.ServiceReference;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.opendaylight.controller.netconf.confignetconfconnector.mapping.config.Config;
import org.opendaylight.controller.netconf.confignetconfconnector.mapping.config.InstanceConfigElementResolved;
import org.opendaylight.controller.netconf.confignetconfconnector.mapping.config.ModuleElementResolved;
-import org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig.EditConfig;
-import org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig.EditConfigStrategy;
-import org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig.EditConfigXmlParser;
import org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig.EditConfigXmlParser.EditConfigExecution;
import org.opendaylight.controller.netconf.confignetconfconnector.transactions.TransactionProvider;
import org.opendaylight.controller.netconf.confignetconfconnector.operations.ValidateTest;
import org.opendaylight.controller.netconf.confignetconfconnector.mapping.attributes.fromxml.AttributeConfigElement;
import com.google.common.collect.Sets;
-import org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig.EditConfigTest;
-import org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig.ReplaceEditConfigStrategy;
public class ReplaceEditConfigStrategyTest {
import javax.net.ssl.SSLContext;
import org.junit.Test;
-import org.opendaylight.controller.netconf.impl.*;
import org.opendaylight.controller.netconf.impl.osgi.NetconfOperationServiceFactoryListener;
import org.opendaylight.controller.netconf.impl.osgi.NetconfOperationServiceFactoryListenerImpl;
import org.opendaylight.controller.networkconfig.neutron.INeutronPortCRUD;\r
import org.opendaylight.controller.networkconfig.neutron.INeutronRouterCRUD;\r
import org.opendaylight.controller.networkconfig.neutron.INeutronSubnetCRUD;\r
-import org.opendaylight.controller.networkconfig.neutron.implementation.NeutronFloatingIPInterface;\r
-import org.opendaylight.controller.networkconfig.neutron.implementation.NeutronNetworkInterface;\r
-import org.opendaylight.controller.networkconfig.neutron.implementation.NeutronPortInterface;\r
-import org.opendaylight.controller.networkconfig.neutron.implementation.NeutronRouterInterface;\r
-import org.opendaylight.controller.networkconfig.neutron.implementation.NeutronSubnetInterface;\r
import org.opendaylight.controller.sal.core.ComponentActivatorAbstractBase;\r
\r
public class Activator extends ComponentActivatorAbstractBase {\r
package bundle_base;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlSeeAlso;
+
@XmlRootElement
public class BasePerson { }
\ No newline at end of file
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.Collections;
import java.util.Dictionary;
import java.util.Enumeration;
import java.util.List;
import java.util.regex.Pattern;
-import javax.xml.bind.JAXBException;
-
-import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestName;
-import org.opendaylight.controller.northbound.bundlescanner.IBundleScanService;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleEvent;
import org.osgi.framework.Constants;
import org.springframework.osgi.mock.MockBundle;
import org.springframework.osgi.mock.MockBundleContext;
-import org.springframework.osgi.mock.MockFrameworkUtil;
public class BundleScannerTest {
import java.util.Map;
import javax.ws.rs.POST;
-import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
-import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
-import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;
import org.codehaus.enunciate.jaxrs.ResponseCode;
import org.codehaus.enunciate.jaxrs.StatusCodes;
-import org.codehaus.enunciate.jaxrs.TypeHint;
import org.opendaylight.controller.connectionmanager.IConnectionManager;
import org.opendaylight.controller.northbound.commons.exception.NotAcceptableException;
import org.opendaylight.controller.northbound.commons.exception.ResourceNotFoundException;
import org.opendaylight.controller.northbound.commons.exception.ServiceUnavailableException;
-import org.opendaylight.controller.sal.connection.ConnectionConstants;
import org.opendaylight.controller.sal.core.Node;
import org.opendaylight.controller.sal.networkconfig.bridgedomain.ConfigConstants;
import org.opendaylight.controller.sal.networkconfig.bridgedomain.IBridgeDomainConfigService;
-import org.opendaylight.controller.sal.utils.NetUtils;
import org.opendaylight.controller.sal.utils.ServiceHelper;
import org.opendaylight.controller.sal.utils.Status;
import org.opendaylight.controller.sal.utils.StatusCode;
import java.util.Set;\r
import javax.ws.rs.core.Application;\r
import org.eclipse.persistence.jaxb.rs.MOXyJsonProvider;\r
-import org.opendaylight.controller.networkconfig.neutron.northbound.NeutronFloatingIPsNorthbound;\r
-import org.opendaylight.controller.networkconfig.neutron.northbound.NeutronNetworksNorthbound;\r
-import org.opendaylight.controller.networkconfig.neutron.northbound.NeutronPortsNorthbound;\r
-import org.opendaylight.controller.networkconfig.neutron.northbound.NeutronRoutersNorthbound;\r
-import org.opendaylight.controller.networkconfig.neutron.northbound.NeutronSubnetsNorthbound;\r
\r
\r
/**\r
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
-import org.opendaylight.controller.forwardingrulesmanager.FlowConfig;
/**
* This class represents a list of static routes.
package org.opendaylight.controller.protocol_plugin.openflow;
import java.util.List;
-import java.util.Set;
import org.opendaylight.controller.sal.core.Edge;
-import org.opendaylight.controller.sal.core.Property;
-import org.opendaylight.controller.sal.core.UpdateType;
import org.opendaylight.controller.sal.topology.TopoEdgeUpdate;
/**
package org.opendaylight.controller.protocol_plugin.openflow.core.internal;
-import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.AsynchronousCloseException;
import java.nio.channels.ClosedChannelException;
import org.junit.Assert;
import org.junit.Test;
-import org.opendaylight.controller.protocol_plugin.openflow.internal.FlowConverter;
import org.opendaylight.controller.protocol_plugin.openflow.vendorextension.v6extension.V6Match;
import org.openflow.protocol.OFMatch;
import org.openflow.protocol.action.OFAction;
package org.opendaylight.controller.protocol_plugins.stub.internal;
-import java.net.InetAddress;
-import java.net.UnknownHostException;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.Dictionary;
import java.util.HashMap;
import java.util.HashSet;
-import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.CopyOnWriteArraySet;
-import org.apache.felix.dm.Component;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.opendaylight.controller.sal.core.Actions;
import org.opendaylight.controller.sal.core.UpdateType;
import org.opendaylight.controller.sal.inventory.IPluginInInventoryService;
import org.opendaylight.controller.sal.inventory.IPluginOutInventoryService;
-import org.opendaylight.controller.sal.utils.NodeCreator;
-import org.opendaylight.controller.sal.utils.NodeConnectorCreator;
/**
* Stub Implementation for IPluginInReadService used by SAL
package org.opendaylight.controller.routing.dijkstra_implementation.internal;
import java.util.Dictionary;
-import java.util.HashSet;
import java.util.Hashtable;
-import java.util.Set;
import org.apache.felix.dm.Component;
import org.slf4j.Logger;
*/
package org.opendaylight.controller.sal.core;
-import org.opendaylight.controller.sal.core.IContainerListener;
/**
* The interface describes methods used to publish the changes to a given
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlSeeAlso;
/**
* @file Property.java
import org.junit.Test;
import org.junit.Assert;
-import org.opendaylight.controller.sal.action.Action;
-import org.opendaylight.controller.sal.action.Controller;
-import org.opendaylight.controller.sal.action.Output;
-import org.opendaylight.controller.sal.action.PopVlan;
-import org.opendaylight.controller.sal.action.PushVlan;
-import org.opendaylight.controller.sal.action.SetDlSrc;
-import org.opendaylight.controller.sal.action.SetNwDst;
-import org.opendaylight.controller.sal.action.SetNwSrc;
-import org.opendaylight.controller.sal.action.SetNwTos;
-import org.opendaylight.controller.sal.action.SetTpDst;
-import org.opendaylight.controller.sal.action.SetTpSrc;
-import org.opendaylight.controller.sal.action.SetVlanCfi;
-import org.opendaylight.controller.sal.action.SetVlanId;
-import org.opendaylight.controller.sal.action.SetVlanPcp;
import org.opendaylight.controller.sal.core.Node;
import org.opendaylight.controller.sal.core.NodeConnector;
import org.opendaylight.controller.sal.utils.EtherTypes;
import org.junit.Assert;
import org.junit.Test;
-import org.opendaylight.controller.sal.core.ConstructionException;
-import org.opendaylight.controller.sal.core.Edge;
-import org.opendaylight.controller.sal.core.Node;
-import org.opendaylight.controller.sal.core.NodeConnector;
public class EdgeTest {
@Test
import org.junit.Assert;
import org.junit.Test;
-import org.opendaylight.controller.sal.core.ConstructionException;
-import org.opendaylight.controller.sal.core.Node;
-import org.opendaylight.controller.sal.core.NodeConnector;
public class NodeConnectorTest {
@Test
import java.util.UUID;
import org.junit.Assert;
import org.junit.Test;
-import org.opendaylight.controller.sal.core.ConstructionException;
-import org.opendaylight.controller.sal.core.Node;
public class NodeTest {
@Test
import java.util.Arrays;
import org.junit.Assert;
import org.junit.Test;
-import org.opendaylight.controller.sal.core.ConstructionException;
-import org.opendaylight.controller.sal.core.Edge;
-import org.opendaylight.controller.sal.core.Node;
-import org.opendaylight.controller.sal.core.NodeConnector;
-import org.opendaylight.controller.sal.core.Path;
public class PathTest {
@Test
import org.junit.Assert;
import org.junit.Test;
-import org.opendaylight.controller.sal.core.Bandwidth;
-import org.opendaylight.controller.sal.core.Latency;
-import org.opendaylight.controller.sal.core.Property;
public class PropertyTest {
@Test
import org.opendaylight.controller.sal.action.SetVlanId;
import org.opendaylight.controller.sal.core.Node;
import org.opendaylight.controller.sal.core.NodeConnector;
-import org.opendaylight.controller.sal.flowprogrammer.Flow;
import org.opendaylight.controller.sal.match.Match;
import org.opendaylight.controller.sal.match.MatchType;
import org.opendaylight.controller.sal.utils.EtherTypes;
import org.junit.Test;
import org.opendaylight.controller.sal.core.Node;
import org.opendaylight.controller.sal.core.NodeConnector;
-import org.opendaylight.controller.sal.match.Match;
-import org.opendaylight.controller.sal.match.MatchField;
-import org.opendaylight.controller.sal.match.MatchType;
import org.opendaylight.controller.sal.utils.EtherTypes;
import org.opendaylight.controller.sal.utils.IPProtocols;
import org.opendaylight.controller.sal.utils.NodeConnectorCreator;
package org.opendaylight.controller.sal.packet;
import org.junit.Test;
-import org.opendaylight.controller.sal.packet.ARP;
import junit.framework.Assert;
import junit.framework.Assert;
import org.junit.Test;
-import org.opendaylight.controller.sal.packet.BitBufferHelper;
public class BitBufferHelperTest {
import junit.framework.Assert;
import org.junit.Test;
-import org.opendaylight.controller.sal.packet.Ethernet;
public class EthernetTest {
import junit.framework.Assert;
import org.junit.Test;
-import org.opendaylight.controller.sal.packet.Ethernet;
public class PacketTest {
import junit.framework.Assert;
import org.junit.Test;
-import org.opendaylight.controller.sal.packet.UDP;
public class UDPTest {
import org.junit.Assert;
import org.junit.Test;
import org.opendaylight.controller.sal.core.ConstructionException;
-import org.opendaylight.controller.sal.packet.address.EthernetAddress;
public class EthernetAddressTest {
@Test
import org.opendaylight.controller.sal.flowprogrammer.Flow;
import org.opendaylight.controller.sal.match.Match;
import org.opendaylight.controller.sal.match.MatchType;
-import org.opendaylight.controller.sal.reader.FlowOnNode;
import org.opendaylight.controller.sal.utils.EtherTypes;
import org.opendaylight.controller.sal.utils.NodeConnectorCreator;
import org.opendaylight.controller.sal.utils.NodeCreator;
import org.junit.Test;
import org.opendaylight.controller.sal.core.NodeConnector;
-import org.opendaylight.controller.sal.reader.NodeConnectorStatistics;
import org.opendaylight.controller.sal.utils.NodeConnectorCreator;
import org.opendaylight.controller.sal.utils.NodeCreator;
import org.junit.Assert;
import org.junit.Assert;
import org.junit.Test;
-import org.opendaylight.controller.sal.reader.NodeDescription;
public class NodeDescriptionTest {
package org.opendaylight.controller.sal.connection.implementation.internal;
-import java.util.HashSet;
import java.util.Map;
-import java.util.Set;
-import java.util.Collections;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
-import javax.xml.bind.JAXBElement;
import org.codehaus.enunciate.jaxrs.ResponseCode;
import org.codehaus.enunciate.jaxrs.StatusCodes;
package org.opendaylight.controller.samples.simpleforwarding;
-import org.opendaylight.controller.sal.core.NodeConnector;
import org.opendaylight.controller.sal.packet.RawPacket;
-import org.opendaylight.controller.topologymanager.ITopologyManager;
+
/**
* Provides support for flooding/broadcasting of packets.
package org.opendaylight.controller.statisticsmanager.internal;
import org.junit.Test;
-import org.opendaylight.controller.statisticsmanager.internal.StatisticsManager;
public class StatisticsManagerTest {
import org.opendaylight.controller.sal.core.Node;
-import org.opendaylight.controller.switchmanager.Subnet;
/**
* The interface provides methods to notify listeners about subnet and mode
package org.opendaylight.controller.topologymanager;
-import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.opendaylight.controller.protocol_plugins.stub.internal.TopologyServices;
import java.util.HashSet;
import java.util.Set;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
import static org.ops4j.pax.exam.CoreOptions.*;
@RunWith(PaxExam.class)
import org.opendaylight.controller.sal.authorization.AuthResultEnum;
import org.opendaylight.controller.sal.authorization.UserLevel;
import org.opendaylight.controller.sal.utils.Status;
-import org.opendaylight.controller.usermanager.AuthorizationConfig;
-import org.opendaylight.controller.usermanager.ServerConfig;
-import org.opendaylight.controller.usermanager.UserConfig;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.web.context.SecurityContextRepository;
import org.junit.Test;
import org.opendaylight.controller.sal.authorization.AuthResultEnum;
import org.opendaylight.controller.sal.authorization.UserLevel;
-import org.opendaylight.controller.usermanager.AuthResponse;
-import org.opendaylight.controller.usermanager.AuthorizationConfig;
-import org.opendaylight.controller.usermanager.UserConfig;
-
/*
* This test case includes tests for UserConfig and the extending class AuthorizationConfig
*/
import org.junit.Test;
import org.opendaylight.controller.sal.core.Node;
import org.opendaylight.controller.sal.utils.NodeCreator;
-import org.opendaylight.controller.switchmanager.SwitchConfig;
import org.opendaylight.controller.topology.web.Topology.NodeBean;
public class TopologyTest {