Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.test.netio.slip
Class SlipFramingElementTest
All Implemented Interfaces:
       ConnectionListener, MessageListener

public class SlipFramingElementTest      
Implements:
ConnectionListener
MessageListener
 
Links:
Kernel Association Association Link
to Interface CommChannel
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Kernel Association Association Link
to Class ChannelEndpoint
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Kernel Association Association Link
to Class SlipAccessPoint
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Kernel Association Association Link
to Class SlipAccessPoint
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Kernel Association Association Link
to Class SlipAccessPointConfig
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Kernel Association Association Link
to Class SlipAccessPointConfig
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Kernel Association Association Link
to Class TcpStreamAccessPoint
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Kernel Association Association Link
to Class ChannelAccessPointConfig
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Implementation Implementation Link
to Interface MessageListener
 
Implementation Implementation Link
to Interface ConnectionListener
 
 

Nested Class Summary
class
Field Summary
private CommChannel
private byte[]
private static String
protected Semaphore
public ByteBuffer
public int
public Semaphore
Constructor Summary
public void
TestMessageListener(ByteBuffer abuff)
Method Summary
public void
messageReceived(Byte amessage)
public void
private int
readStream(StreamChannel in, ByteBuffer buff)
public void
private void
private void
public static Test
public void
public void
messageReceived(Byte message)
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
private void
unsignedWriteSignedRead(String message)
private boolean
waitForMessage(Integer timeout)
private void
private void
xtestReadNotifyMinHelper(LengthEncoding le)
private void
xtestReadNotifyOverMaxHelper(LengthEncoding le, Integer maxSize)
private void
xtestReadNotifyWithPaddingHelper(LengthEncoding le, Integer pad)
private void
xtestReadNotifyZeroHelper(LengthEncoding le)
private void
xtestUnsignedWriteSignedReadHelper(LengthEncoding le1, LengthEncoding le2)
private void
xtestWriteMaxHelper(LengthEncoding le)
private void
xtestWriteMoreThanSpecifiedHelper(LengthEncoding le, Integer specLength, ByteBuffer payload, Integer specLength2, ByteBuffer payload2)
private void
xtestWriteOverMaxHelper(LengthEncoding le)
private void
xtestWriteTooBigHelper(LengthEncoding le, Integer maxLength)
private void
xtestWriteZeroHelper(LengthEncoding le)
Field Detail
channel
private CommChannel channel
Multiplicity:
1
 

endPointsliplisten
private ChannelEndpoint endPointsliplisten
Multiplicity:
1
 

inmessage
private byte[] inmessage
Multiplicity:
1
 

massive
private static String massive
Multiplicity:
1
Static.
 

sem
protected Semaphore sem
Multiplicity:
1
 

slipAccessPoint
private SlipAccessPoint slipAccessPoint
Multiplicity:
1
 

slipAccessPoint2
private SlipAccessPoint slipAccessPoint2
Multiplicity:
1
 

slipConfig
private SlipAccessPointConfig slipConfig
Multiplicity:
1
 

slipConfig2
private SlipAccessPointConfig slipConfig2
Multiplicity:
1
 

tcpAccessPoint
private TcpStreamAccessPoint tcpAccessPoint
Multiplicity:
1
 

tcpConfig
private ChannelAccessPointConfig tcpConfig
Multiplicity:
1
 
Method Detail
messageReceived
public void messageReceived (Byte amessage)
 
 

newConnection
public void newConnection (CommChannel achannel)
 
 

readStream
private int readStream (StreamChannel in, ByteBuffer buff)
 
Throws:
IOException
 

setUp
public void setUp ()
 
Throws:
Exception
 

slipWriteToSlipChannelRead
private void slipWriteToSlipChannelRead (String message)
 
Throws:
IOException
 

slipWriteToTcpChannelRead
private void slipWriteToTcpChannelRead (String message)
 
Throws:
IOException
 

suite
public static Test suite ()
 
Static.
 

tearDown
public void tearDown ()
 
Throws:
Exception
 

testReadNotifyDefaultConfig
public void testReadNotifyDefaultConfig ()
 
 

testReadNotifyMaxByte
public void testReadNotifyMaxByte ()
 
 

testReadNotifyMaxShort
public void testReadNotifyMaxShort ()
 
 

testReadNotifyMaxUByte
public void testReadNotifyMaxUByte ()
 
 

testReadNotifyMaxUShort
public void testReadNotifyMaxUShort ()
 
 

testReadNotifyMegaMessage
public void testReadNotifyMegaMessage ()
 
 

testReadNotifyMinByte
public void testReadNotifyMinByte ()
 
 

testReadNotifyMinInt
public void testReadNotifyMinInt ()
 
 

testReadNotifyMinShort
public void testReadNotifyMinShort ()
 
 

testReadNotifyMinUByte
public void testReadNotifyMinUByte ()
 
 

testReadNotifyMinUShort
public void testReadNotifyMinUShort ()
 
 

testReadNotifyOverMaxByte
public void testReadNotifyOverMaxByte ()
 
 

testReadNotifyOverMaxInt
public void testReadNotifyOverMaxInt ()
 
 

testReadNotifyOverMaxShort
public void testReadNotifyOverMaxShort ()
 
 

testReadNotifyOverMaxUByte
public void testReadNotifyOverMaxUByte ()
 
 

testReadNotifyOverMaxUShort
public void testReadNotifyOverMaxUShort ()
 
 

testReadNotifyWithPaddingByte
public void testReadNotifyWithPaddingByte ()
 
 

testReadNotifyWithPaddingInt
public void testReadNotifyWithPaddingInt ()
 
 

testReadNotifyWithPaddingShort
public void testReadNotifyWithPaddingShort ()
 
 

testReadNotifyWithPaddingUByte
public void testReadNotifyWithPaddingUByte ()
 
 

testReadNotifyWithPaddingUShort
public void testReadNotifyWithPaddingUShort ()
 
 

testReadNotifyZeroByte
public void testReadNotifyZeroByte ()
 
 

testReadNotifyZeroInt
public void testReadNotifyZeroInt ()
 
 

testReadNotifyZeroShort
public void testReadNotifyZeroShort ()
 
 

testReadNotifyZeroUByte
public void testReadNotifyZeroUByte ()
 
 

testReadNotifyZeroUShort
public void testReadNotifyZeroUShort ()
 
 

testUnsignedWriteSignedReadByte
public void testUnsignedWriteSignedReadByte ()
 
 

testUnsignedWriteSignedReadShort
public void testUnsignedWriteSignedReadShort ()
 
 

testWriteDefaultConfig
public void testWriteDefaultConfig ()
 
 

testWriteMaxByte
public void testWriteMaxByte ()
 
 

testWriteMaxShort
public void testWriteMaxShort ()
 
 

testWriteMaxUByte
public void testWriteMaxUByte ()
 
 

testWriteMaxUShort
public void testWriteMaxUShort ()
 
 

testWriteMegaMultiMessages
public void testWriteMegaMultiMessages ()
 
 

testWriteMoreThanSpecifiedByte
public void testWriteMoreThanSpecifiedByte ()
 
 

testWriteMoreThanSpecifiedInt
public void testWriteMoreThanSpecifiedInt ()
 
 

testWriteMoreThanSpecifiedShort
public void testWriteMoreThanSpecifiedShort ()
 
 

testWriteMoreThanSpecifiedUByte
public void testWriteMoreThanSpecifiedUByte ()
 
 

testWriteMultiMessagesUShort
public void testWriteMultiMessagesUShort ()
 
 

testWriteOverMaxByte
public void testWriteOverMaxByte ()
 
 

testWriteOverMaxShort
public void testWriteOverMaxShort ()
 
 

testWriteOverMaxUByte
public void testWriteOverMaxUByte ()
 
 

testWriteOverMaxUShort
public void testWriteOverMaxUShort ()
 
 

testWriteTooBigByte
public void testWriteTooBigByte ()
 
 

testWriteTooBigInteger
public void testWriteTooBigInteger ()
 
 

testWriteTooBigShort
public void testWriteTooBigShort ()
 
 

testWriteTooBigUByte
public void testWriteTooBigUByte ()
 
 

testWriteTooBigUShort
public void testWriteTooBigUShort ()
 
 

testWriteWithPadding
public void testWriteWithPadding ()
 
 

testWriteZeroByte
public void testWriteZeroByte ()
 
 

testWriteZeroInt
public void testWriteZeroInt ()
 
 

testWriteZeroShort
public void testWriteZeroShort ()
 
 

testWriteZeroUByte
public void testWriteZeroUByte ()
 
 

testWriteZeroUShort
public void testWriteZeroUShort ()
 
 

unsignedWriteSignedRead
private void unsignedWriteSignedRead (String message)
 
Throws:
IOException
 

waitForMessage
private boolean waitForMessage (Integer timeout)
 
 

xtestReadNotifyEncodingMaxHelper
private void xtestReadNotifyEncodingMaxHelper (LengthEncoding le)
 
 

xtestReadNotifyMinHelper
private void xtestReadNotifyMinHelper (LengthEncoding le)
 
 

xtestReadNotifyOverMaxHelper
private void xtestReadNotifyOverMaxHelper (LengthEncoding le, Integer maxSize)
 
 

xtestReadNotifyWithPaddingHelper
private void xtestReadNotifyWithPaddingHelper (LengthEncoding le, Integer pad)
 
 

xtestReadNotifyZeroHelper
private void xtestReadNotifyZeroHelper (LengthEncoding le)
 
 

xtestUnsignedWriteSignedReadHelper
private void xtestUnsignedWriteSignedReadHelper (LengthEncoding le1, LengthEncoding le2)
 
 

xtestWriteMaxHelper
private void xtestWriteMaxHelper (LengthEncoding le)
 
 

xtestWriteMoreThanSpecifiedHelper
private void xtestWriteMoreThanSpecifiedHelper (LengthEncoding le, Integer specLength, ByteBuffer payload, Integer specLength2, ByteBuffer payload2)
 
Throws:
IOException
 

xtestWriteOverMaxHelper
private void xtestWriteOverMaxHelper (LengthEncoding le)
 
 

xtestWriteTooBigHelper
private void xtestWriteTooBigHelper (LengthEncoding le, Integer maxLength)
 
 

xtestWriteZeroHelper
private void xtestWriteZeroHelper (LengthEncoding le)
 
 

Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD