Skip to content
Snippets Groups Projects
Commit 1bf172b0 authored by Alex Reimers's avatar Alex Reimers
Browse files

Fix build issues caused by the introduction of PacketFactory. Now the...

Fix build issues caused by the introduction of PacketFactory. Now the net.floodlightcontroller.core.test.* files will not try to be run as jUnit tests.
parent 18d3bba4
No related branches found
No related tags found
No related merge requests found
......@@ -170,6 +170,7 @@
<fileset dir="${source-test}">
<exclude name="**/storage/tests/StorageTest.java"/>
<exclude name="**/test/Mock*"/>
<exclude name="**/core/test/**"/>
</fileset>
</batchtest>
</junit>
......
package net.floodlightcontroller.test.util;
package net.floodlightcontroller.core.test;
import java.util.ArrayList;
import java.util.List;
......@@ -22,7 +22,7 @@ import org.openflow.protocol.factory.BasicFactory;
* @author alexreimers
*
*/
public class Packets {
public class PacketFactory {
public static String broadcastMac = "ff:ff:ff:ff:ff:ff";
public static String broadcastIp = "255.255.255.255";
protected static BasicFactory OFMessageFactory = new BasicFactory();
......
......@@ -17,6 +17,7 @@ import net.floodlightcontroller.core.IOFMessageListener;
import net.floodlightcontroller.core.IListener.Command;
import net.floodlightcontroller.core.IOFSwitch;
import net.floodlightcontroller.core.module.FloodlightModuleContext;
import net.floodlightcontroller.core.test.PacketFactory;
import net.floodlightcontroller.packet.Data;
import net.floodlightcontroller.packet.Ethernet;
import net.floodlightcontroller.packet.IPacket;
......@@ -25,7 +26,6 @@ import net.floodlightcontroller.packet.UDP;
import net.floodlightcontroller.restserver.IRestApiService;
import net.floodlightcontroller.restserver.RestApiServer;
import net.floodlightcontroller.test.FloodlightTestCase;
import net.floodlightcontroller.test.util.Packets;
import net.floodlightcontroller.util.MACAddress;
public class VirtualNetworkFilterTest extends FloodlightTestCase {
......@@ -296,8 +296,8 @@ public class VirtualNetworkFilterTest extends FloodlightTestCase {
public void testDhcp() {
IOFMessageListener listener = mockFloodlightProvider.getListeners().
get(OFType.PACKET_IN).get(0);
Ethernet dhcpPacket = Packets.DhcpDiscoveryRequestEthernet(mac1);
OFPacketIn dhcpPacketOf = Packets.DhcpDiscoveryRequestOFPacketIn(mac1);
Ethernet dhcpPacket = PacketFactory.DhcpDiscoveryRequestEthernet(mac1);
OFPacketIn dhcpPacketOf = PacketFactory.DhcpDiscoveryRequestOFPacketIn(mac1);
cntx = new FloodlightContext();
IFloodlightProviderService.bcStore.put(cntx,
IFloodlightProviderService.CONTEXT_PI_PAYLOAD,
......
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