Class com.ustadmobile.meshrabiya.datagram.VirtualDatagramSocketImplTest
Tests
Test |
Duration |
Result |
givenDatagramSentFromOneSocket_whenReceivedByOtherSocket_thenShouldMatch |
0.028s |
passed |
givenOnIncomingPacketCalled_whenReceiveCalled_thenContentAndAddressShouldMatch |
0.017s |
passed |
givenVirtualSocket_whenOutgoingDatagramSent_thenShouldCallRouteWithValidVirtualPacket |
1.217s |
passed |
Standard output
V: t+0.04s : [VirtualDatagramSocketImpl] send packet size=1000 bytes to /0.0.0.43:6713
V: t+0.01s : [VirtualDatagramSocketImpl] incoming virtual packet=1020 bytes from 0.0.0.43:31825
V: t+0.0s : [VirtualDatagramSocketImpl] bind laddr=/0.0.0.42 lport=0
V: t+0.0s : [VirtualDatagramSocketImpl] bind laddr=/0.0.0.43 lport=0
V: t+0.0s : [VirtualDatagramSocketImpl] send packet size=1000 bytes to /0.0.0.43:41253
V: t+0.01s : [VirtualDatagramSocketImpl] incoming virtual packet=1020 bytes from 0.0.0.42:9364