Open Kilda Java Documentation
org.openkilda.floodlight.FloodlightTestCase Class Reference
Inheritance diagram for org.openkilda.floodlight.FloodlightTestCase:
org.openkilda.floodlight.pathverification.PathVerificationPacketInTest org.openkilda.floodlight.pathverification.PathVerificationPacketOutTest org.openkilda.floodlight.pathverification.PathVerificationPacketSignTest

Public Member Functions

MockFloodlightProvider getMockFloodlightProvider ()
 
MockSwitchManager getMockSwitchService ()
 
void setMockFloodlightProvider (MockFloodlightProvider mockFloodlightProvider)
 
FloodlightContext parseAndAnnotate (OFMessage m)
 
void setUp () throws Exception
 
IOFSwitch buildMockIOFSwitch (Long id, OFPortDesc portDesc, OFFactory factory, OFDescStatsReply swDesc, InetSocketAddress inetAddr)
 

Static Public Member Functions

static FloodlightContext parseAndAnnotate (FloodlightContext bc, OFMessage m)
 
static OFPortDesc createOFPortDesc (IOFSwitch sw, String name, int number)
 

Protected Attributes

MockFloodlightProvider mockFloodlightProvider
 
MockSwitchManager mockSwitchManager
 
OFFeaturesReply swFeatures
 
OFFactory factory = OFFactories.getFactory(OFVersion.OF_13)
 

Detailed Description

This class gets a handle on the application context which is used to retrieve Spring beans from during tests

Author
David Erickson (david.nosp@m.eric.nosp@m.kson@.nosp@m.cs.s.nosp@m.tanfo.nosp@m.rd.e.nosp@m.du)

Definition at line 67 of file FloodlightTestCase.java.

Member Function Documentation

◆ buildMockIOFSwitch()

IOFSwitch org.openkilda.floodlight.FloodlightTestCase.buildMockIOFSwitch ( Long  id,
OFPortDesc  portDesc,
OFFactory  factory,
OFDescStatsReply  swDesc,
InetSocketAddress  inetAddr 
)

Definition at line 118 of file FloodlightTestCase.java.

◆ createOFPortDesc()

static OFPortDesc org.openkilda.floodlight.FloodlightTestCase.createOFPortDesc ( IOFSwitch  sw,
String  name,
int  number 
)
static

Definition at line 109 of file FloodlightTestCase.java.

◆ getMockFloodlightProvider()

MockFloodlightProvider org.openkilda.floodlight.FloodlightTestCase.getMockFloodlightProvider ( )

Definition at line 73 of file FloodlightTestCase.java.

◆ getMockSwitchService()

MockSwitchManager org.openkilda.floodlight.FloodlightTestCase.getMockSwitchService ( )

Definition at line 77 of file FloodlightTestCase.java.

◆ parseAndAnnotate() [1/2]

FloodlightContext org.openkilda.floodlight.FloodlightTestCase.parseAndAnnotate ( OFMessage  m)

Definition at line 85 of file FloodlightTestCase.java.

◆ parseAndAnnotate() [2/2]

static FloodlightContext org.openkilda.floodlight.FloodlightTestCase.parseAndAnnotate ( FloodlightContext  bc,
OFMessage  m 
)
static

Definition at line 90 of file FloodlightTestCase.java.

◆ setMockFloodlightProvider()

void org.openkilda.floodlight.FloodlightTestCase.setMockFloodlightProvider ( MockFloodlightProvider  mockFloodlightProvider)

Definition at line 81 of file FloodlightTestCase.java.

◆ setUp()

void org.openkilda.floodlight.FloodlightTestCase.setUp ( ) throws Exception

Definition at line 103 of file FloodlightTestCase.java.

Member Data Documentation

◆ factory

OFFactory org.openkilda.floodlight.FloodlightTestCase.factory = OFFactories.getFactory(OFVersion.OF_13)
protected

Definition at line 71 of file FloodlightTestCase.java.

◆ mockFloodlightProvider

MockFloodlightProvider org.openkilda.floodlight.FloodlightTestCase.mockFloodlightProvider
protected

Definition at line 68 of file FloodlightTestCase.java.

◆ mockSwitchManager

MockSwitchManager org.openkilda.floodlight.FloodlightTestCase.mockSwitchManager
protected

Definition at line 69 of file FloodlightTestCase.java.

◆ swFeatures

OFFeaturesReply org.openkilda.floodlight.FloodlightTestCase.swFeatures
protected

Definition at line 70 of file FloodlightTestCase.java.


The documentation for this class was generated from the following file: