Summary

Tests Errors Failures Skipped Success Rate Time
115 0 0 0 100% 1.968

Note: failures are anticipated and checked for with assertions while errors are unanticipated.

Package List

Package Tests Errors Failures Skipped Success Rate Time
net.sf.jpkgmk 9 0 0 0 100% 0.249
net.sf.jpkgmk.prototype 34 0 0 0 100% 0.438
net.sf.jpkgmk.util 56 0 0 0 100% 0.578
net.sf.jpkgmk.ant 3 0 0 0 100% 0.296
net.sf.jpkgmk.pkgmap 13 0 0 0 100% 0.407

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

net.sf.jpkgmk

Class Tests Errors Failures Skipped Success Rate Time
PkgInfoParserTest 1 0 0 0 100% 0.016
PkgInfoTest 3 0 0 0 100% 0.015
PkgMkTest 3 0 0 0 100% 0.172
RequestCreatorTest 2 0 0 0 100% 0.046

net.sf.jpkgmk.prototype

Class Tests Errors Failures Skipped Success Rate Time
CommandTypeTest 9 0 0 0 100% 0.016
PrototypeBuilderTest 5 0 0 0 100% 0.234
PrototypeEntryCommandIncludeTest 1 0 0 0 100% 0.015
PrototypeEntryCommandSearchTest 3 0 0 0 100% 0.094
PrototypeEntryCommandTest 4 0 0 0 100% 0.016
PrototypeEntryDirectoryTest 2 0 0 0 100% 0
PrototypeEntryFileTest 1 0 0 0 100% 0
PrototypeParserTest 6 0 0 0 100% 0.047
PrototypeTest 3 0 0 0 100% 0.016

net.sf.jpkgmk.util

Class Tests Errors Failures Skipped Success Rate Time
ArrayUtilTest 3 0 0 0 100% 0.016
ChecksumUtilsTest 1 0 0 0 100% 0.016
FileUtilTest 12 0 0 0 100% 0.093
StringUtilTest 21 0 0 0 100% 0.016
UnixChecksumTest 1 0 0 0 100% 0
VariableMapTest 18 0 0 0 100% 0.437

net.sf.jpkgmk.ant

Class Tests Errors Failures Skipped Success Rate Time
JPkgMkTaskTest 3 0 0 0 100% 0.296

net.sf.jpkgmk.pkgmap

Class Tests Errors Failures Skipped Success Rate Time
PkgMapBuilderTest 3 0 0 0 100% 0.375
PkgMapEntryCommentTest 2 0 0 0 100% 0.016
PkgMapEntryInfoTest 1 0 0 0 100% 0
PkgMapEntryTest 1 0 0 0 100% 0
PkgMapParserTest 1 0 0 0 100% 0
PkgMapTest 5 0 0 0 100% 0.016

Test Cases

JPkgMkTaskTest

testCreatePkg 0.234
testInvalidSourceDir 0
testTargetDirAlreadyExists 0.062

PkgInfoParserTest

testCreatePkgInfo_HappyPath 0.016

PkgInfoTest

testCreatePackageInfoMinimumArgs_HappyPath 0
testValidatePkgInfoMinimumArgs_HappyPath 0
testValidatePkgInfoMinimumArgs_OneIsNull_HappyPath 0

PkgMapBuilderTest

testAddFile_HappyPath 0.094
testAddEditableFile 0.031
testCreatePackageMapFromPrototypeSampleFile 0.25

PkgMapEntryCommentTest

testEquals_HappyPath 0
testEquals_NotEqual 0

PkgMapEntryInfoTest

testGetLine_HappyPath 0

PkgMapEntryTest

testEquals_HappyPath 0

PkgMapParserTest

testParsePkgMap_HappyPath 0

PkgMapTest

testEquals_HappyPath 0.016
testAddEntryThatAlreadyExists 0
testSort_HappyPath 0
testGetNumberOfParts_EmptyMap 0
testGetNumberOfParts_HappyPath 0

PkgMkTest

testAddEditableFile 0.047
testCreatePackageMinimumArgs_HappyPath 0.078
testAddLinkedFile 0.047

CommandTypeTest

testCommandType_findByName_SearchCmd 0
testCommandType_findByName_DefaultCmd 0
testCommandType_findByName_IncludeCmd 0
testCommandType_findByName_ArbitraryString 0
testCommandType_findByName_Null 0
testCommandTypeSearchParser_HappyPath 0
testCommandTypeIncludeParser_HappyPath 0
testCommandTypeDefaultParser_HappyPath 0
testCommandTypeParamValueParser_HappyPath 0

PrototypeBuilderTest

testAddFile_HappyPath 0.172
testAddInstallationFile_HappyPath 0.015
testAddFile_EntryPathAlreadyExists 0.016
testAddDirectory_HappyPath 0.015
testAddDirectoryWithDifferentTargetPath_HappyPath 0.016

PrototypeEntryCommandIncludeTest

testVariableExpansion_HappyPath 0.015

PrototypeEntryCommandSearchTest

testVariableExpansion_HappyPath 0.015
test_HappyPath 0.016
testCreatePkgMapEntry_HappyPath 0.031

PrototypeEntryCommandTest

testLineEqualsInput_WithWhitespace_ParamValue 0
testLineEqualsInput_WithoutWhitespace_ParamValue 0
testLineEqualsInput_WithWhitespace_Search 0.016
testLineEqualsInput_WithoutWhitespace_Search 0

PrototypeEntryDirectoryTest

testEntryCorrect_SimpleConstructor 0
testEntryCorrect_Constructor2 0

PrototypeEntryFileTest

testEquals_HappyPath 0

PrototypeParserTest

testParse_HappyPath 0
testParse_BrokenLine_TypeMissing 0
testParse_BrokenLine_ClassMissing 0
testParser_LineWithSeparatorAtEnd 0
testParser_LineWithoutSeparatorAtEnd 0
testParserSampleFile 0.047

PrototypeTest

testAddPrototypeEntry_Duplicate 0
testRemovePrototypeEntry_HappyPath 0
testSorter_HappyPath 0

RequestCreatorTest

testCreation_HappyPath 0.046
testRequestEntryParser_HappyPath 0

ArrayUtilTest

testIsArrayValueInt 0.016
testIsArrayValueInt_NoInt 0
testIsArrayValueInt_IndexOutOfBounds 0

ChecksumUtilsTest

testCksum_HappyPath 0.016

FileUtilTest

testGetFilePathInTar 0.015
testBuildPath 0
testCopyDir 0.047
testIsSubdirForFile_HappyPath 0
testIsRelocatable_HappyPath 0.016
testIsRelocatable_NonRelocatable 0
testIsRelocatable_NullParam 0
testCountFiles_HappyPath 0
testCountFiles_NoFilesOnlySubdirs 0
testCountFiles_GivenDirDoesNotExist 0
testGetSize_HappyPath 0.015
testGetBlockCount_HappyPath 0

StringUtilTest

testGetHex_HappyPath 0
testGetHex_OddNumberOfBytes 0
testResolveKeyValue_HappyPath 0
testResolveKeyValueWithoutValue_HappyPath 0
testResolveKeyValue_NullParam 0
testResolveKeyValue_EmptyStringParam 0
testResolveKeyValue_MultipleEqualChars_HappyPath 0
testCreateStringFromArray_HappyPath 0
testCreateStringFromArray_StartIndexLargerThanArraySize 0
testIsAlphanumeric_HappyPath 0
testIsAlphanumericFalse 0
testValidateMode_HappyPath 0
testValidateMode_ThreeDigits_HappyPath 0
testValidateModeQuestionmark_HappyPath 0
testValidateMode_InvalidMode_TooShort 0
testValidateMode_InvalidMode_NoOctalNumber 0
testValidateMode_NullMode 0
testTruncateUtf8StringAtStart_HappyPath 0
testTruncateUtf8StringAtEnd_HappyPath 0
testTruncateUtf8StringWithSpecialChars_HappyPath 0
testTruncateUtf8String_NullText 0

UnixChecksumTest

testCksum_HappyPath 0

VariableMapTest

testGetVariableValue_HappyPath 0
testGetVariableValue_NotFound 0
testGetVariableValue_Null 0
testAddSameVariableTwice 0.016
testUnregisterVariable 0
testResolveVariables_HappyPath 0
testResolveVariablesUppercase_HappyPath 0
testResolveVariablesWithBraces_HappyPath 0
testResolveVariables_DoubleDollarEscapes_HappyPath 0
testResolveVariables_DoubleDollarEscapesWithBraces_HappyPath 0
testResolveVariablesWithBraces_VariableNotFound 0
testResolveVariables_InstallVariable_HappyPath 0
testResolveVariables_InstallVariableResolvedByDefault_HappyPath 0
testResolveVariables_MultipleVarsInLine_HappyPath 0
testResolveVariables_SecondVarReferencesFirst_HappyPath 0
testResolveVariablesPaths_SecondVarReferencesFirst_HappyPath 0
testContainsVariable 0
testContainsNoVariable 0