Skip to content
Snippets Groups Projects
Commit dea8848e authored by Rob Adams's avatar Rob Adams
Browse files

Move test modules which were erroneously included in main module resources file

parent 443ccdfb
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
<property name="coverage-output" location="${target}/coverage"/> <property name="coverage-output" location="${target}/coverage"/>
<property name="source" location="src/main/java"/> <property name="source" location="src/main/java"/>
<property name="resources" location="src/main/resources/"/> <property name="resources" location="src/main/resources/"/>
<property name="testresources" location="src/test/resources/"/>
<property name="source-test" location="src/test/java"/> <property name="source-test" location="src/test/java"/>
<property name="python-src" location="src/main/python"/> <property name="python-src" location="src/main/python"/>
<property name="docs" location="${target}/docs"/> <property name="docs" location="${target}/docs"/>
...@@ -137,7 +138,7 @@ ...@@ -137,7 +138,7 @@
<target name="compile-tests" depends="compile-test"/> <target name="compile-tests" depends="compile-test"/>
<target name="compile-test" depends="compile"> <target name="compile-test" depends="compile">
<fileset dir="${resources}"/> <fileset dir="${testresources}"/>
<javac includeAntRuntime="false" debug="true" <javac includeAntRuntime="false" debug="true"
srcdir="${source-test}" srcdir="${source-test}"
classpath="${build}" classpath="${build}"
...@@ -190,8 +191,9 @@ ...@@ -190,8 +191,9 @@
<classpath> <classpath>
<pathelement location="${build-coverage}"/> <pathelement location="${build-coverage}"/>
<pathelement location="${build}"/> <pathelement location="${build}"/>
<pathelement location="${resources}"/>
<pathelement location="${test-resources}"/>
<pathelement location="${build-test}"/> <pathelement location="${build-test}"/>
<pathelement location="${floodlight-jar}"/>
<path refid="classpath-test"/> <path refid="classpath-test"/>
</classpath> </classpath>
<formatter type="brief" usefile="true" /> <formatter type="brief" usefile="true" />
...@@ -253,7 +255,7 @@ ...@@ -253,7 +255,7 @@
<attribute name="Class-Path" value="."/> <attribute name="Class-Path" value="."/>
</manifest> </manifest>
<fileset dir="${build-test}"/> <fileset dir="${build-test}"/>
<fileset dir="${resources}"/> <fileset dir="${testresources}"/>
<zipgroupfileset dir="${lib}"> <zipgroupfileset dir="${lib}">
<patternset refid="lib-test"/> <patternset refid="lib-test"/>
<patternset refid="lib-cobertura"/> <patternset refid="lib-cobertura"/>
......
...@@ -78,6 +78,7 @@ cat >"$d/.classpath" <<EOF ...@@ -78,6 +78,7 @@ cat >"$d/.classpath" <<EOF
<classpathentry kind="src" path="src/main/java" output="target/bin"/> <classpathentry kind="src" path="src/main/java" output="target/bin"/>
<classpathentry kind="src" path="src/main/resources"/> <classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="src" path="src/test/java" output="target/bin-test"/> <classpathentry kind="src" path="src/test/java" output="target/bin-test"/>
<classpathentry kind="src" path="src/test/resources"/>
<classpathentry kind="src" path="lib/gen-java" output="target/bin"/> <classpathentry kind="src" path="lib/gen-java" output="target/bin"/>
EOF EOF
( (
......
...@@ -106,8 +106,7 @@ public class FloodlightModuleLoader implements IModuleService { ...@@ -106,8 +106,7 @@ public class FloodlightModuleLoader implements IModuleService {
try { try {
m = moduleIter.next(); m = moduleIter.next();
} catch (ServiceConfigurationError sce) { } catch (ServiceConfigurationError sce) {
logger.debug("Could not find module"); logger.error("Could not find module: {}", sce.getMessage());
//moduleIter.remove();
continue; continue;
} }
//} //}
......
...@@ -23,12 +23,8 @@ net.floodlightcontroller.debugevent.NullDebugEvent ...@@ -23,12 +23,8 @@ net.floodlightcontroller.debugevent.NullDebugEvent
net.floodlightcontroller.threadpool.ThreadPool net.floodlightcontroller.threadpool.ThreadPool
net.floodlightcontroller.ui.web.StaticWebRoutable net.floodlightcontroller.ui.web.StaticWebRoutable
net.floodlightcontroller.virtualnetwork.VirtualNetworkFilter net.floodlightcontroller.virtualnetwork.VirtualNetworkFilter
net.floodlightcontroller.devicemanager.internal.DefaultEntityClassifier
net.floodlightcontroller.devicemanager.test.MockDeviceManager
net.floodlightcontroller.core.test.MockFloodlightProvider
net.floodlightcontroller.core.test.MockThreadPoolService
net.floodlightcontroller.firewall.Firewall net.floodlightcontroller.firewall.Firewall
net.floodlightcontroller.loadbalancer.LoadBalancer net.floodlightcontroller.loadbalancer.LoadBalancer
org.sdnplatform.sync.internal.SyncManager org.sdnplatform.sync.internal.SyncManager
org.sdnplatform.sync.internal.SyncTorture org.sdnplatform.sync.internal.SyncTorture
org.sdnplatform.sync.test.MockSyncService net.floodlightcontroller.devicemanager.internal.DefaultEntityClassifier
...@@ -151,18 +151,14 @@ public class FloodlightTestModuleLoader extends FloodlightModuleLoader { ...@@ -151,18 +151,14 @@ public class FloodlightTestModuleLoader extends FloodlightModuleLoader {
* module that provides this service will not be loaded. * module that provides this service will not be loaded.
*/ */
public void setupModules(Collection<Class<? extends IFloodlightModule>> modules, public void setupModules(Collection<Class<? extends IFloodlightModule>> modules,
Collection<IFloodlightService> mockedServices) { Collection<IFloodlightService> mockedServices) throws FloodlightModuleException {
addDefaultModules(modules); addDefaultModules(modules);
Collection<String> modulesAsString = new ArrayList<String>(); Collection<String> modulesAsString = new ArrayList<String>();
for (Class<? extends IFloodlightModule> m : modules) { for (Class<? extends IFloodlightModule> m : modules) {
modulesAsString.add(m.getCanonicalName()); modulesAsString.add(m.getCanonicalName());
} }
try { fmc = loadModulesFromList(modulesAsString, null, mockedServices);
fmc = loadModulesFromList(modulesAsString, null, mockedServices);
} catch (FloodlightModuleException e) {
log.error(e.getMessage());
}
} }
/** /**
......
net.floodlightcontroller.devicemanager.test.MockDeviceManager
net.floodlightcontroller.core.test.MockFloodlightProvider
net.floodlightcontroller.core.test.MockThreadPoolService
org.sdnplatform.sync.test.MockSyncService
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment