HttpDownloadAcceptance Class Reference

Inherits TestFixture.

Inheritance diagram for HttpDownloadAcceptance:

Inheritance graph
[legend]
Collaboration diagram for HttpDownloadAcceptance:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 179 of file main-acceptance.cpp.

Public Member Functions

void setUp ()
void tearDown ()
void testDownloadHttpResourceAtOnce ()

Private Member Functions

 CPPUNIT_TEST_SUITE (HttpDownloadAcceptance)
 CPPUNIT_TEST (testDownloadHttpResourceAtOnce)
 CPPUNIT_TEST_SUITE_END ()

Private Attributes

auto_ptr< AcceptanceEnvironmentenvironment
auto_ptr< CalitkoApplicationcalitko


Member Function Documentation

HttpDownloadAcceptance::CPPUNIT_TEST testDownloadHttpResourceAtOnce   )  [private]
 

HttpDownloadAcceptance::CPPUNIT_TEST_SUITE HttpDownloadAcceptance   )  [private]
 

HttpDownloadAcceptance::CPPUNIT_TEST_SUITE_END  )  [private]
 

void HttpDownloadAcceptance::setUp  )  [inline]
 

Definition at line 189 of file main-acceptance.cpp.

void HttpDownloadAcceptance::tearDown  )  [inline]
 

Definition at line 195 of file main-acceptance.cpp.

void HttpDownloadAcceptance::testDownloadHttpResourceAtOnce  )  [inline]
 

SocketScript ideas:

delay, command: DATA

execution starts after connectToHost() is called. execution is terminated when disconnectFromHost() is called.

0 establish 0-1000 wait-read:---end-of-data--- GET /developers/peter/ HTTP/1.1
Host: bzr.calitko.org

---end-of-data--- 0-1000 write:---end-of-data--- HTTP/1.1 200 OK
Content-Length:
---end-of-data--- 0-1000 writefile:bzr.calitko.org/developers/peter/index.html 0-1000, wait-close

Another option would be to have two separate read and write scripts. We could run the acceptance tester once in recording mode and then simulate the exact same data flow. The recorded data should be manually examined for correctness...

Definition at line 231 of file main-acceptance.cpp.


Member Data Documentation

auto_ptr<CalitkoApplication> HttpDownloadAcceptance::calitko [private]
 

Definition at line 186 of file main-acceptance.cpp.

auto_ptr<AcceptanceEnvironment> HttpDownloadAcceptance::environment [private]
 

Definition at line 185 of file main-acceptance.cpp.


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