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

A JUnit test class for QueueOutputPipeTCP, that uses QueueInputPipeTCP. More...

Inheritance diagram for frodo2.communication.tcp.QueueOutputPipeTCPTest:

Public Member Functions

 QueueOutputPipeTCPTest (String string)
 Generates a test case for the given method name.
void setUp () throws Exception
void tearDown ()
void testNonSerialized ()
 Pushes multiple non-serialized messages.
void testSerialized () throws IOException
 Pushes multiple messages with associated raw data.

Static Public Member Functions

static TestSuite suite ()

Private Attributes

QueueOutputPipeTCP out
 The QueueOutputPipeTCP under test.
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 QueueOutputPipeTCP, that uses QueueInputPipeTCP.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ QueueOutputPipeTCPTest()

frodo2.communication.tcp.QueueOutputPipeTCPTest.QueueOutputPipeTCPTest ( String string)

Generates a test case for the given method name.

Parameters
stringname of the method

Referenced by suite().

Member Function Documentation

◆ setUp()

void frodo2.communication.tcp.QueueOutputPipeTCPTest.setUp ( ) throws Exception
Exceptions
IOExceptionthrown if an I/O error occurs
See also
junit.framework.TestCase#setUp()

References frodo2.communication.tcp.QueueInputPipeTCPTest.address, out, output, frodo2.communication.tcp.QueueInputPipeTCPTest.port, and queue.

◆ suite()

TestSuite frodo2.communication.tcp.QueueOutputPipeTCPTest.suite ( )
static
Returns
the test suite

References QueueOutputPipeTCPTest(), and suite().

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

Here is the call graph for this function:

◆ tearDown()

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

References out, output, and queue.

◆ testNonSerialized()

void frodo2.communication.tcp.QueueOutputPipeTCPTest.testNonSerialized ( )

Pushes multiple non-serialized messages.

References frodo2.communication.Message.getType(), out, and output.

Here is the call graph for this function:

◆ testSerialized()

void frodo2.communication.tcp.QueueOutputPipeTCPTest.testSerialized ( ) throws IOException

Pushes multiple messages with associated raw data.

Exceptions
IOExceptionthrown if an I/O error occurs

References frodo2.communication.MessageSerializedSimple< T extends Serializable >.deserializeRawData(), frodo2.communication.MessageSerializedSimple< T extends Serializable >.getData(), frodo2.communication.Message.getType(), out, output, and testSerialized().

Referenced by testSerialized().

Here is the call graph for this function:

Member Data Documentation

◆ out

QueueOutputPipeTCP frodo2.communication.tcp.QueueOutputPipeTCPTest.out
private

◆ output

QueueOutputPipeTrivial frodo2.communication.tcp.QueueOutputPipeTCPTest.output
private

The output pipe used for the tests.

Referenced by setUp(), tearDown(), testNonSerialized(), and testSerialized().

◆ queue

Queue frodo2.communication.tcp.QueueOutputPipeTCPTest.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: