Summary

TestsErrors FailuresSkippedSuccess RateTime
174000100%0.776

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

Package List

PackageTestsErrors FailuresSkippedSuccess RateTime
nl.knaw.dans.common.dbflib174000100%0.776

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

nl.knaw.dans.common.dbflib

ClassTestsErrors FailuresSkippedSuccess RateTime
TestBoolean10000100%0.161
TestBugPack1000100%0.014
TestCharacter10000100%0.052
TestCharacterExceptions20000100%0.062
TestCharacterFormatValidator9000100%0.005
TestDate10000100%0.033
TestDateFormatValidator10000100%0.005
TestDelete1000100%0.014
TestFloat8000100%0.034
TestFloatExceptions6000100%0.016
TestInvalidFieldType1000100%0.001
TestLogicalFormatValidator7000100%0.003
TestMemo10000100%0.137
TestNumber8000100%0.034
TestNumberExceptions15000100%0.031
TestNumberFormatValidator11000100%0.008
TestNumberValue1000100%0.003
TestPack2000100%0.014
TestReadingDataTypesSimpleCase6000100%0.014
TestRoundTrip10000100%0.078
TestRoundTripFoxProExtra2000100%0.016
TestRussianCharset1000100%0.002
TestTableExceptions8000100%0.006
TestUsageExamples1000100%0.011
TestUtil6000100%0.022

Test Cases

TestBoolean

readBoolean[0]0.022
writeBoolean[0]0.026
readBoolean[1]0.004
writeBoolean[1]0.035
readBoolean[2]0.002
writeBoolean[2]0.01
readBoolean[3]0.001
writeBoolean[3]0.005
readBoolean[4]0.001
writeBoolean[4]0.003

TestBugPack

deleteAndPack0.012

TestCharacter

readCharacter[0]0.005
writeCharacter[0]0.007
readCharacter[1]0.002
writeCharacter[1]0.006
readCharacter[2]0.002
writeCharacter[2]0.005
readCharacter[3]0.002
writeCharacter[3]0.004
readCharacter[4]0.002
writeCharacter[4]0.004

TestCharacterExceptions

fitsComfortably[0]0.002
fitsExactly[0]0.001
firstFieldDoesNotFit[0]0.002
secondFieldDoesNotFit[0]0.001
fitsComfortably[1]0.001
fitsExactly[1]0.001
firstFieldDoesNotFit[1]0.001
secondFieldDoesNotFit[1]0.001
fitsComfortably[2]0.002
fitsExactly[2]0.002
firstFieldDoesNotFit[2]0.001
secondFieldDoesNotFit[2]0.001
fitsComfortably[3]0.001
fitsExactly[3]0.001
firstFieldDoesNotFit[3]0.001
secondFieldDoesNotFit[3]0.003
fitsComfortably[4]0.001
fitsExactly[4]0.001
firstFieldDoesNotFit[4]0.001
secondFieldDoesNotFit[4]0.001

TestCharacterFormatValidator

shouldAcceptShortString0
shouldRejectTooLargeString0
shouldAcceptBoolean0
shouldAcceptShortNumber0
shouldRejectLongInteger0
shouldRejectLongDouble0
shouldRejectDateFor7CharField0
shouldAcceptDateFor8CharField0
shouldRejectByteArray0

TestDate

readDate[0]0.006
writeDate[0]0.003
readDate[1]0.001
writeDate[1]0.002
readDate[2]0
writeDate[2]0.002
readDate[3]0.001
writeDate[3]0.003
readDate[4]0.001
writeDate[4]0.003

TestDateFormatValidator

shouldRejectByteArray0
shouldAcceptEightDigitString0
shouldRejectEightDigitStringWithLeadingSpaces0
shouldRejectEightDigitStringWithTrailingSpaces0.001
shouldRejectSevenDigitString0
shouldRejectNineDigitString0
shouldRejectNotAllDigitString0
shouldRejectBoolean0
shouldRejectNumber0
shouldAcceptDate0.001

TestDelete

testDelete0.014

TestFloat

writeFloat[0]0.005
readFloat[0]0.003
writeFloat[1]0.004
readFloat[1]0.001
writeFloat[2]0.003
readFloat[2]0.005
writeFloat[3]0.005
readFloat[3]0.002

TestFloatExceptions

tooBigIntegerValue[0]0.002
tooBigDecimalValue[0]0.004
tooBigIntegerValue[1]0.002
tooBigDecimalValue[1]0.001
tooBigIntegerValue[2]0.001
tooBigDecimalValue[2]0.001

TestInvalidFieldType

floatTypeNotValid0.001

TestLogicalFormatValidator

shouldAcceptBoolean0.001
shouldRejectByteArray0
shouldRejectNumber0
shouldAcceptStringWithYNTF_or_Space0
shouldRejectStringWithA0
shouldRejectTooLargeValue0
shouldRejectDate0

TestMemo

readMemo[0]0.009
writeMemo[0]0.017
readMemo[1]0.008
writeMemo[1]0.022
readMemo[2]0.007
writeMemo[2]0.019
readMemo[3]0.005
writeMemo[3]0.019
readMemo[4]0.005
writeMemo[4]0.019

TestNumber

reading_maximal_and_minimal_values[0]0.003
writing_maximal_and_minimal_values[0]0.004
reading_maximal_and_minimal_values[1]0.002
writing_maximal_and_minimal_values[1]0.005
reading_maximal_and_minimal_values[2]0.003
writing_maximal_and_minimal_values[2]0.005
reading_maximal_and_minimal_values[3]0.002
writing_maximal_and_minimal_values[3]0.006

TestNumberExceptions

firstValueTooLarge[0]0.001
secondValueTooLarge[0]0.001
tooLongNumberField[0]0.002
firstValueTooLarge[1]0.002
secondValueTooLarge[1]0.001
tooLongNumberField[1]0.001
firstValueTooLarge[2]0.001
secondValueTooLarge[2]0.002
tooLongNumberField[2]0.001
firstValueTooLarge[3]0.001
secondValueTooLarge[3]0.001
tooLongNumberField[3]0.002
firstValueTooLarge[4]0.001
secondValueTooLarge[4]0.002
tooLongNumberField[4]0.001

TestNumberFormatValidator

shouldRejectByteArray0.001
shouldRejectBoolean0
shouldRejectDate0
shouldAcceptNumberStringOfCorrectFormat0.001
shouldRejectNumberStringOfTooManyDecimals0.001
shouldRejectNumberStringOfDecimalsWhereNoneExpected0
shouldRejectNegativeNumberStringOfDecimalsWhereNoneExpected0.001
shouldRejectNumberStringOfTooFewDecimals0
shouldAcceptNumberThatFits0
shouldRejectNumberWithTooManyIntDigits0
shouldRejectNumberWithTooManyIntDigitsWithSign0

TestNumberValue

formatsAnyNumberWithEqualsFieldSpecification0.002

TestPack

testPack0.007
testPack20.006

TestReadingDataTypesSimpleCase

character0.002
number0.002
date0.003
definitions0.002
logical0.001
memo0.002

TestRoundTrip

reading[0]0.005
writing[0]0.011
reading[1]0.003
writing[1]0.009
reading[2]0.003
writing[2]0.012
reading[3]0.003
writing[3]0.013
reading[4]0.003
writing[4]0.011

TestRoundTripFoxProExtra

reading0.003
writing0.013

TestRussianCharset

shouldReadRussianDbf0.002

TestTableExceptions

nonExistingFile0
emptyFile0
memoFileMissing0.001
emptyMemoFile0.001
corruptedMemoFilePointer0.001
directoryIsFile0
writeTooLongField0
addRecordTest0.002

TestUsageExamples

test0.01

TestUtil

changeEndianness_integer0
changeEndianness_short0
getDbtFile_simple_case0
getDbtFile_returns_null_if_dbt_non_existent0
getDbtFile_returns_null_if_dbf_non_existent0
getNumberOfDigits0