The Trunk: NetworkTests-ar.22.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: NetworkTests-ar.22.mcz

commits-2
Andreas Raab uploaded a new version of NetworkTests to project The Trunk:
http://source.squeak.org/trunk/NetworkTests-ar.22.mcz

==================== Summary ====================

Name: NetworkTests-ar.22
Author: ar
Time: 26 November 2010, 11:09:31.754 am
UUID: ba14660e-b781-ba4f-ae5b-3f0f096bf4a8
Ancestors: NetworkTests-ar.21

Two more SocketTests.

=============== Diff against NetworkTests-ar.21 ===============

Item was added:
+ ----- Method: SocketTest>>testDataReceive (in category 'tests') -----
+ testDataReceive
+ "Test data transfer and related methods"
+
+ self testDataSending.
+ "It can take a tad for the status change to be visible"
+ (Delay forMilliseconds: 200) wait.
+ self assert: serverSocket dataAvailable.
+ self assert: (serverSocket receiveData = 'Hello World').
+ self deny: (serverSocket dataAvailable).
+ !

Item was added:
+ ----- Method: SocketTest>>testDataSending (in category 'tests') -----
+ testDataSending
+ "Test data transfer and related methods"
+
+ self testServerAccept.
+ clientSocket sendData: 'Hello World'.
+ clientSocket waitForSendDoneFor: 2.
+ self assert: clientSocket sendDone.
+
+ !