FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.communication.tcp.QueueInputPipeTCPTest Class Reference

A JUnit test class for QueueInputPipeTCP. More...

Inheritance diagram for frodo2.communication.tcp.QueueInputPipeTCPTest:

Classes

class  Sender
 A client that connects to the queue and to send serialized messages through TCP. More...

Public Member Functions

 QueueInputPipeTCPTest ()
 Constructor that instantiates a test corresponding to the input test method.
void setUp () throws Exception
void tearDown ()
void testReceiveMultiple ()
 Several senders connect to the pipe, and each sends several messages.

Static Public Member Functions

static TestSuite suite ()

Static Public Attributes

static int port = 4444
 Port number used.
static String address = "localhost"
 IP address of the queue.

Private Attributes

Queue queue
 The queue to which messages are passed.
QueueOutputPipeTrivial output
 The output pipe used for the tests.

Detailed Description

A JUnit test class for QueueInputPipeTCP.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ QueueInputPipeTCPTest()

frodo2.communication.tcp.QueueInputPipeTCPTest.QueueInputPipeTCPTest ( )

Constructor that instantiates a test corresponding to the input test method.

Referenced by frodo2.communication.tcp.QueueInputPipeTCPTest.Sender.run(), and suite().

Member Function Documentation

◆ setUp()

void frodo2.communication.tcp.QueueInputPipeTCPTest.setUp ( ) throws Exception
See also
junit.framework.TestCase#setUp()

References output, port, and queue.

◆ suite()

TestSuite frodo2.communication.tcp.QueueInputPipeTCPTest.suite ( )
static
Returns
the suite of tests to be performed

References QueueInputPipeTCPTest().

Referenced by frodo2.communication.AllTests.suite().

Here is the call graph for this function:

◆ tearDown()

void frodo2.communication.tcp.QueueInputPipeTCPTest.tearDown ( )
See also
junit.framework.TestCase#tearDown()

References output, and queue.

◆ testReceiveMultiple()

void frodo2.communication.tcp.QueueInputPipeTCPTest.testReceiveMultiple ( )

Several senders connect to the pipe, and each sends several messages.

References output.

Member Data Documentation

◆ address

String frodo2.communication.tcp.QueueInputPipeTCPTest.address = "localhost"
static

IP address of the queue.

Referenced by frodo2.communication.tcp.QueueOutputPipeTCPTest.setUp().

◆ output

QueueOutputPipeTrivial frodo2.communication.tcp.QueueInputPipeTCPTest.output
private

The output pipe used for the tests.

Referenced by setUp(), tearDown(), and testReceiveMultiple().

◆ port

int frodo2.communication.tcp.QueueInputPipeTCPTest.port = 4444
static

◆ queue

Queue frodo2.communication.tcp.QueueInputPipeTCPTest.queue
private

The queue to which messages are passed.

Referenced by setUp(), and tearDown().


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