lUnit Test Report

Tests run: 87, Tests passed: 85 (98%), Tests failed: 2

ConfigTests

Configuration Object

Tests

#NameStatusMessage
 1/12ConfigTests.settingOKNo exception thrown
 2/12ConfigTests.getoneOKGot the proper value in return
 3/12ConfigTests.getmultipleOK3 values returned
 4/12ConfigTests.getunknownOKGot empty string
 5/12ConfigTests.getwithdefaultOKGot the default value in return
 6/12ConfigTests.hasoneOKhas returned true for existing item
 7/12ConfigTests.hastwoOKhas returned false for nonexisting item
 8/12ConfigTests.defoneOKUpdated empty setting
 9/12ConfigTests.deftwoOKLeft existing setting in place
 10/12ConfigTests.booleantrueOKtrue setting returned true
 11/12ConfigTests.booleanfalseOKfalse setting returned false
 12/12ConfigTests.falsewithdefaultOKfalse setting returned false with default value true

Report

Tests run: 12, Tests passed: 12 (100%), Tests failed: 0

CryptoTests

Cryptographic wrappers

Tests

#NameStatusMessage
 1/3Hashing: Check CRC32 and MD5OKTested algorithms OK
 2/3Cipher: Check BLOWFISH and TWOFISHOKTested algorithms OK
 3/3Testing randomness from getRandom()OKRandomness looks OK

Report

Tests run: 3, Tests passed: 3 (100%), Tests failed: 0

FilesysTests

Filesystem functions

Tests

#NameStatusMessage
 1/7FilesysTests.getdirectoryOKReturns an object
 2/7FilesysTests.getglobbeddirectoryOKProperly throws an exception
 3/7FilesysTests.getbaddirectoryOKProperly throws an exception
 4/7FilesysTests.permissions_xFFFOKGot urwsrwsrwt
 5/7FilesysTests.permissions_x00FOKGot u-----xrwx
 6/7FilesysTests.permissions_x0F0OKGot u-wxrw----
 7/7FilesysTests.permissions_xF00OKGot ur-S--S--T

Report

Tests run: 7, Tests passed: 7 (100%), Tests failed: 0

FsTests

Filesystem functions

Tests

#NameStatusMessage
 1/10FsTests.applyModeFAILED'63' != '770'
 2/10FsTests.bytesToHumanOK
 3/10FsTests.humanToBytesOK
 4/10Join pathsOK
 5/10Get a directory listingOK
 6/10Creating an empty fileOK
 7/10Get the absolute pathOK
 8/10Writing to itOK
 9/10Checking the size of itOK
 10/10Deleting the fileOK

Report

Tests run: 10, Tests passed: 9 (90%), Tests failed: 1

GraphicsTests

Graphics tests

Tests

#NameStatusMessage
 1/6Creating an image from scratchOKSuccessfully created image
 2/6Drawing on the imageOKTODO: Write tests
 3/6Saving image to /tmpOKSaved image ok
 4/6Saving image to bogus fileOKException thrown (6)
 5/6Reading image from /tmpOKImage loaded
 6/6Reading image from bogus fileOKException thrown (1)

Report

Tests run: 6, Tests passed: 6 (100%), Tests failed: 0

MarkupTests

Markup tests

Tests

#NameStatusMessage
 1/3wiki: headings (h1,h2,h3)OKPassed OK
 2/3wiki: bold and italicOKPassed OK
 3/3wiki: bulletsFAILEDresult did not match

Report

Tests run: 3, Tests passed: 2 (67%), Tests failed: 1

NetworkTests

Testing of the network support functions

Tests

#NameStatusMessage
 1/4NetworkTests.iptolongOKGot expected result
 2/4NetworkTests.longtoipOKGot expected result
 3/4NetworkTests.gethostbynameOKNon null result
 4/4NetworkTests.gethostmxOKNon null result

Report

Tests run: 4, Tests passed: 4 (100%), Tests failed: 0

OptionsetTests

Testing of the Optionset() class

Tests

#NameStatusMessage
 1/5OptionsetTests.creationOKReturned an object
 2/5OptionsetTests.gettestoneOKget('foo') returned 1.
 3/5OptionsetTests.gettesttwoOKget('bar') returned 'two'.
 4/5OptionsetTests.gettestdefaultoneOKget('baz') returned empty string.
 5/5OptionsetTests.gettestdefaulttwoOKget('baz','3') returned '3'.

Report

Tests run: 5, Tests passed: 5 (100%), Tests failed: 0

ShellTests

Tests the shell related functions

Tests

#NameStatusMessage
 1/7ShellTests.testEchoOKReturned 'hi'
 2/7ShellTests.testReturnOK
 3/7ShellTests.testReadLinesOK
 4/7ShellTests.testRunningOK0
 5/7ShellTests.testCheckProcessOK
 6/7ShellTests.escapeargOneOKReturned 'foo'
 7/7ShellTests.executeOKExecute returns output

Report

Tests run: 7, Tests passed: 7 (100%), Tests failed: 0

SingletonTests

Tests the singleton wrapper

Tests

#NameStatusMessage
 1/12Create an instance of FooOKReturned an object instance
 2/12Create instance of Foo (again)OKReturned an object instance
 3/12Assign 5 to Foo and check stateOKReturned the set value
 4/12Verify set value from FooOKReturned the set value
 5/12Change the value of Foo to 9OKReturned the set value
 6/12Create an instance of Foo(baz)OKReturned an empty object instance
 7/12Assign 7 to Foo(baz) and check stateOKReturned the set value
 8/12Verify set value from Foo(baz)OKReturned the set value
 9/12Check that Foo still returns assigned valueOKReturned the set value
 10/12Create instance of BarOKReturned an empty object instance
 11/12Assign 12 to BarOKReturned the set value
 12/12Verify value from BarOKReturned the set value

Report

Tests run: 12, Tests passed: 12 (100%), Tests failed: 0

StringTests

String manipulation (Strings class)

Tests

#NameStatusMessage
 1/8StringTests.testReverseOKGot "raboof"
 2/8StringTests.testSlugOK
 3/8StringTests.testUppercaseOKGot "FOOBAR"
 4/8StringTests.testLowercaseOKGot "foobar"
 5/8StringTests.testPropercaseOKGot "Foobar"
 6/8StringTests.testWordZeroOKGot nothing
 7/8StringTests.testWordOneOKGot "hello"
 8/8StringTests.testWordTwoOKGot "world"

Report

Tests run: 8, Tests passed: 8 (100%), Tests failed: 0

TemplateTests

Tests the template class

Tests

#NameStatusMessage
 1/3TemplateTests.defaultsOKNot getting expected string
 2/3TemplateTests.specialOKNot getting expected string
 3/3TemplateTests.cleanupOKNot getting expected string

Report

Tests run: 3, Tests passed: 3 (100%), Tests failed: 0

UrlTests

Tests the Url() class

Tests

#NameStatusMessage
 1/6UrlTests.constructOKConstruction successful and proper results returned
 2/6UrlTests.constructWithPortOKConstruction successful and proper results returned
 3/6UrlTests.reassembleOKReturned the proper URL
 4/6UrlTests.reassembleWithTypecastOKReturned the proper URL
 5/6UrlTests.reassembleWithModificationsOKReturned the proper URL
 6/6UrlTests.buildOKReturned the proper URL

Report

Tests run: 6, Tests passed: 6 (100%), Tests failed: 0

UuidTests

UUID Generation

Tests

#NameStatusMessage
 1/1UuidTests.u4OKReturned UUID 22111158-fb07-4958-954d-be364c4f7f25

Report

Tests run: 1, Tests passed: 1 (100%), Tests failed: 0