Apache Commons logo Commons Text

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
459 0 0 0 100% 1.594

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


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.apache.commons.text.similarity 105 0 0 0 100% 0.057
org.apache.commons.text.diff 5 0 0 0 100% 0.02
org.apache.commons.text.translate 33 0 0 0 100% 0.01
org.apache.commons.text 316 0 0 0 100% 1.507

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

org.apache.commons.text.similarity

Class Tests Errors Failures Skipped Success Rate Time
CosineDistanceTest 1 0 0 0 100% 0.006
FuzzyScoreTest 5 0 0 0 100% 0.002
HammingDistanceTest 3 0 0 0 100% 0.001
JaccardDistanceTest 4 0 0 0 100% 0.003
JaccardSimilarityTest 4 0 0 0 100% 0.001
JaroWinklerDistanceTest 4 0 0 0 100% 0.003
LevenshteinDetailedDistanceTest 10 0 0 0 100% 0.007
LevenshteinDistanceTest 7 0 0 0 100% 0.004
LongestCommonSubsequenceDistanceTest 4 0 0 0 100% 0.002
LongestCommonSubsequenceTest 8 0 0 0 100% 0.005
ParameterizedEditDistanceFromTest 10 0 0 0 100% 0.006
ParameterizedLevenshteinDistanceTest 38 0 0 0 100% 0.017
ParameterizedSimilarityScoreFromTest 4 0 0 0 100% 0
StringMetricFromTest 3 0 0 0 100% 0

org.apache.commons.text.diff

Class Tests Errors Failures Skipped Success Rate Time
ReplacementsFinderTest 2 0 0 0 100% 0.013
StringsComparatorTest 3 0 0 0 100% 0.007

org.apache.commons.text.translate

Class Tests Errors Failures Skipped Success Rate Time
AggregateTranslatorTest 3 0 0 0 100% 0
EntityArraysTest 8 0 0 0 100% 0.003
JavaUnicodeEscaperTest 4 0 0 0 100% 0.001
LookupTranslatorTest 2 0 0 0 100% 0
NumericEntityEscaperTest 4 0 0 0 100% 0.001
NumericEntityUnescaperTest 3 0 0 0 100% 0.001
OctalUnescaperTest 1 0 0 0 100% 0
UnicodeEscaperTest 3 0 0 0 100% 0.001
UnicodeUnescaperTest 3 0 0 0 100% 0.002
UnicodeUnpairedSurrogateRemoverTest 2 0 0 0 100% 0.001

org.apache.commons.text

Class Tests Errors Failures Skipped Success Rate Time
AlphabetConverterTest 12 0 0 0 100% 0.095
CompositeFormatTest 2 0 0 0 100% 0.011
ExtendedMessageFormatTest 10 0 0 0 100% 0.945
FormattableUtilsTest 5 0 0 0 100% 0.002
StrBuilderAppendInsertTest 51 0 0 0 100% 0.021
StrBuilderTest 91 0 0 0 100% 0.037
StringEscapeUtilsTest 29 0 0 0 100% 0.361
StrLookupTest 6 0 0 0 100% 0.001
StrMatcherTest 14 0 0 0 100% 0.001
StrSubstitutorTest 41 0 0 0 100% 0.021
StrTokenizerTest 55 0 0 0 100% 0.012

Test Cases

[Summary] [Package List] [Test Cases]

AlphabetConverterTest

encodeFailureTest 0.019
unexpectedEndwhileDecodingTest 0.001
javadocExampleTest 0
noEncodingLettersTest 0
unicodeTest 0
missingDoNotEncodeLettersFromOriginalTest 0.001
hebrewTest 0.003
binaryTest 0.001
doNotEncodeTest 0.001
onlyOneEncodingLettersTest 0.001
missingDoNotEncodeLettersFromEncodingTest 0
unexpectedStringWhileDecodingTest 0.001

CompositeFormatTest

testUsage 0.01
testCompositeFormat 0

ReplacementsFinderTest

testReplacementsHandler[0] 0.01
testReplacementsHandler[1] 0.001

StringsComparatorTest

testExecution 0.004
testLongestCommonSubsequence 0.001
testLength 0

ExtendedMessageFormatTest

testEscapedBraces_LANG_948 0.009
testBuiltInDateTimeFormat 0.684
testEqualsHashcode 0.001
testOverriddenBuiltinFormat 0.065
testBuiltInChoiceFormat 0.133
testEscapedQuote_LANG_477 0.001
testEmbeddedPatternInChoice 0
testExtendedFormats 0
testExtendedAndBuiltInFormats 0.019
testBuiltInNumberFormat 0.029

FormattableUtilsTest

testDefaultAppend 0.001
testAlternatePadCharacter 0
testAlternatePadCharAndEllipsis 0
testIllegalEllipsis 0
testEllipsis 0

CosineDistanceTest

testCosineDistance 0.003

FuzzyScoreTest

testGetFuzzyScore_StringNullLocale 0
testGetFuzzyScore_NullNullLocale 0
testGetFuzzyScore_NullStringLocale 0
testGetFuzzyScore 0
testMissingLocale 0

HammingDistanceTest

testHammingDistance 0
testHammingDistance_nullLeftValue 0
testHammingDistance_nullRightValue 0

JaccardDistanceTest

testGettingJaccardDistanceNullString 0
testGettingJaccardDistanceStringNull 0
testGettingJaccardDistanceNullNull 0
testGettingJaccardDistance 0.001

JaccardSimilarityTest

testGettingJaccardSimilarityNullString 0
testGettingJaccardSimilarityNullNull 0
testGettingJaccardSimilarityStringNull 0.001
testGettingJaccardSimilarity 0

JaroWinklerDistanceTest

testGetJaroWinklerDistance_NullNull 0
testGetJaroWinklerDistance_StringString 0
testGetJaroWinklerDistance_NullString 0
testGetJaroWinklerDistance_StringNull 0

LevenshteinDetailedDistanceTest

testGetLevenshteinDetailedDistance_StringString 0.001
testToString 0
testGetLevenshteinDetailedDistance_NullString 0
testGetLevenshteinDetailedDistance_NullStringInt 0
testConstructorWithNegativeThreshold 0
testHashCode 0
testGetLevenshteinDetailedDistance_StringNull 0.001
testEquals 0
testGetLevenshteinDetailedDistance_StringStringInt 0.001
testGetLevenshteinDetailedDistance_StringNullInt 0

LevenshteinDistanceTest

testGetLevenshteinDistance_NullStringInt 0
testGetLevenshteinDistance_StringNullInt 0
testGetLevenshteinDistance_StringStringInt 0.002
testGetLevenshteinDistance_NullString 0
testConstructorWithNegativeThreshold 0
testGetLevenshteinDistance_StringString 0.001
testGetLevenshteinDistance_StringNull 0

LongestCommonSubsequenceDistanceTest

testGettingLongestCommonSubsequenceDistanceNullString 0
testGettingLongestCommonSubsequenceDistanceNullNull 0
testGettingLongestCommonSubsequenceDistanceStringNull 0
testGettingLogestCommonSubsequenceDistacne 0.001

LongestCommonSubsequenceTest

testLongestCommonSubsequenceApply 0
testGettingLongestCommonSubsequenceNullString 0.001
testGettingLongestCommonSubsequenceApplyNullNull 0.001
testGettingLongestCommonSubsequenceStringNull 0
testGettingLongestCommonSubsequenceApplyNullString 0
testLongestCommonSubsequence 0.001
testGettingLongestCommonSubsequenceApplyStringNull 0
testGettingLongestCommonSubsequenceNullNull 0

ParameterizedEditDistanceFromTest

test[0] 0.001
test[1] 0
test[2] 0
test[3] 0
test[4] 0
test[5] 0
test[6] 0
test[7] 0
test[8] 0
test[9] 0

ParameterizedLevenshteinDistanceTest

test[0] 0
test[1] 0
test[2] 0
test[3] 0.001
test[4] 0
test[5] 0
test[6] 0
test[7] 0
test[8] 0.001
test[9] 0
test[10] 0
test[11] 0
test[12] 0
test[13] 0
test[14] 0
test[15] 0.001
test[16] 0
test[17] 0
test[18] 0
test[19] 0
test[20] 0
test[21] 0
test[22] 0
test[23] 0.001
test[24] 0
test[25] 0
test[26] 0
test[27] 0
test[28] 0
test[29] 0
test[30] 0
test[31] 0
test[32] 0
test[33] 0
test[34] 0
test[35] 0
test[36] 0
test[37] 0

ParameterizedSimilarityScoreFromTest

test[0] 0
test[1] 0
test[2] 0
test[3] 0

StringMetricFromTest

testJavadocExample 0
testEquivalence 0
testMissingMetric 0

StrBuilderAppendInsertTest

testAppendWithSeparators_Collection 0.004
testInsertWithNullText 0
testAppendFixedWidthPadRight_int 0.001
testAppendln_PrimitiveNumber 0
testAppend_Boolean 0
testAppendln_Boolean 0
testAppend_StrBuilder_int_int 0
testAppendln_CharArray_int_int 0.001
testAppendFixedWidthPadLeft 0
testAppendln_String_int_int 0
testAppendFixedWidthPadLeft_int 0
testAppendAll_Collection 0.001
testAppendln_StringBuilder 0
testAppendNewLine 0
testAppend_CharArray_int_int 0
testAppendln_StringBuffer 0.001
testAppendAll_Iterator 0
testAppendSeparator_char_char 0
testLang299 0
testAppendWithSeparators_Iterator 0
testAppendWithNullText 0
testAppendln_StrBuilder 0
testAppendln_Object 0
testAppend_StrBuilder 0
testAppendSeparator_String 0.001
testAppendln_String 0
testAppendSeparator_char_int 0
testAppendSeparator_String_String 0
testAppendAll_Array 0.001
testAppend_StringBuilder_int_int 0
testAppendSeparator_char 0
testAppend_StringBuffer 0
testAppendWithSeparatorsWithNullText 0
testAppendSeparator_String_int 0
testAppendln_StringBuffer_int_int 0.001
testAppend_FormattedString 0
testAppend_Object 0
testAppend_StringBuffer_int_int 0
testAppendPadding 0
testAppend_String 0
testAppend_String_int_int 0
testAppend_PrimitiveNumber 0
testAppend_StringBuilder 0
testInsert 0.001
testAppendFixedWidthPadRight 0
testAppendln_StrBuilder_int_int 0
testAppend_CharArray 0
testAppendln_FormattedString 0.001
testAppendln_CharArray 0
testAppendln_StringBuilder_int_int 0
testAppendWithSeparators_Array 0

StrBuilderTest

testAsTokenizer 0.001
testDeleteFirst_StrMatcher 0.001
testReplaceFirst_StrMatcher_String 0.001
testDeleteAll_String 0
testEndsWith 0.001
testGetSetNullText 0
testReadFromReaderAppendsToEnd 0
testIndexOfLang294 0
testSubSequenceIntInt 0
testGetChars 0
testLastIndexOf_String 0
testDeleteAll_char 0.001
testReplace_StrMatcher_String_int_int_int_VaryEndIndex 0
testLastIndexOf_char_int 0
testReadFromReadable 0.005
testAppendToStringBuffer 0
testClear 0
testSize 0
testTrim 0
testRightString 0
testToString 0.001
testConstructors 0
testReadFromCharBuffer 0.001
testMinimizeCapacity 0
testSubstringIntInt 0
testLang412Left 0
testContains_String 0
testEqualsIgnoreCase 0
testCapacityAndLength 0
testReadFromReadableAppendsToEnd 0
testAsReader 0.001
testToStringBuilder 0
testReplaceAll_String_String 0
testAsWriter 0
testLang294 0
testLang295 0
testReplaceAll_char_char 0
testLastIndexOf_String_int 0
testDeleteCharAt 0
testReplaceFirst_String_String 0
testContains_char 0
testDeleteIntInt 0
testReplace_StrMatcher_String_int_int_int_VaryCount 0
testReplaceFirst_char_char 0
testIndexOf_char 0
testReplace_int_int_String 0
testToCharArray 0
testLastIndexOf_StrMatcher 0
testIndexOf_StrMatcher_int 0.001
testEnsureCapacity 0
testLang412Right 0
testDeleteFirst_String 0
testAppendToStringBuilder 0
testMidString 0
testReplaceAll_StrMatcher_String 0.002
testCapacity 0
testReadFromCharBufferAppendsToEnd 0.001
testReverse 0
testSetCharAt 0
testReplace_StrMatcher_String_int_int_int_VaryStartIndex 0
testHashCode 0
testSubstringInt 0
test_LANG_1131_EqualsWithNullStrBuilder 0
testSetLength 0.001
testAppendToWriter 0
testCharAt 0
testReplace_StrMatcher_String_int_int_int_VaryMatcher 0
testEquals 0
testLastIndexOf_char 0
testLeftString 0
testIndexOf_String_int 0
testContains_StrMatcher 0
testLength 0
testReplace_StrMatcher_String_int_int_int_VaryReplace 0
testDeleteFirst_char 0
testAppendToCharBuffer 0
testDeleteAll_StrMatcher 0
testIsEmpty 0
testToCharArrayIntInt 0
testGetSetNewLineText 0
testToStringBuffer 0
testReadFromReader 0.001
testAsBuilder 0
testIndexOf_String 0
testIndexOf_char_int 0
testGetCharsIntIntCharArrayInt 0
testStartsWith 0
testIndexOf_StrMatcher 0
testAppendCharBuffer 0.001
testLastIndexOf_StrMatcher_int 0
testChaining 0

StringEscapeUtilsTest

testEscapeHtml3Once 0.027
testEscapeHtml4Once 0.01
testUnescapeJava 0.001
testStandaloneAmphersand 0
testUnescapeHtml4 0.002
testEscapeHtml 0
testEscapeJava 0
testEscapeJson 0
testEscapeJavaWithSlash 0
testEscapeXml10 0
testEscapeXml11 0
testLang313 0.001
testLang708 0.018
testLang911 0
testBuilder 0.001
testEscapeEcmaScript 0
testEscapeCsvString 0.016
testUnscapeXSI 0
testEscapeCsvWriter 0
testEscapeHtmlHighUnicode 0
testUnescapeHexCharsHtml 0.266
testUnescapeXmlSupplementaryCharacters 0
testUnescapeCsvString 0.014
testUnescapeCsvWriter 0
testEscapeHtmlVersions 0
testUnescapeUnknownEntity 0
testEscapeHiragana 0
testEscapeXSI 0
testConstructor 0

StrLookupTest

testSystemProperiesLookup 0
testNoneLookup 0
testSystemPropertiesLookupReplacedProperties 0
testSystemPropertiesLookupUpdatedProperty 0
testMapLookup_nullMap 0
testMapLookup 0

StrMatcherTest

testSingleQuoteMatcher 0
testTrimMatcher 0
testCommaMatcher 0
testCharMatcher_char 0
testCharSetMatcher_String 0
testNoneMatcher 0
testTabMatcher 0
testMatcherIndices 0
testStringMatcher_String 0.001
testSpaceMatcher 0
testQuoteMatcher 0
testSplitMatcher 0
testDoubleQuoteMatcher 0
testCharSetMatcher_charArray 0

StrSubstitutorTest

testSubstitutePreserveEscape 0.001
testReplaceEscaping 0.003
testReplaceSoloEscaping 0
testSubstituteDefaultProperties 0
testReplaceNoPrefixSuffix 0.001
testCyclicReplacement 0
testReplaceToIdentical 0.001
testReplaceSimple 0
testStaticReplacePrefixSuffix 0.001
testReplaceRecursive 0.003
testConstructorMapPrefixSuffix 0
testSamePrefixAndSuffix 0
testStaticReplace 0
testReplaceUnknownKey 0.001
testReplaceNoPrefixNoSuffix 0
testStaticReplaceSystemProperties 0
testReplaceInVariableRecursive 0.001
testConstructorNoArgs 0
testReplaceAdjacentAtEnd 0
testReplaceNull 0
testReplaceSolo 0
testLANG1055 0
testReplaceChangedMap 0
testReplaceWeirdPattens 0
testReplaceEmptyKeys 0
testDefaultValueDelimiters 0
testReplaceNoVariables 0
testReplaceComplexEscaping 0
testReplaceInVariable 0.002
testReplacePrefixNoSuffix 0
testResolveVariable 0.001
testGetSetValueDelimiter 0
testReplaceInVariableDisabled 0
testReplaceIncompletePrefix 0
testGetSetEscape 0
testReplaceAdjacentAtStart 0
testReplaceEmpty 0.001
testGetSetPrefix 0
testConstructorMapFull 0
testGetSetSuffix 0
testReplacePartialString_noReplace 0

StrTokenizerTest

testCSVSimple 0.001
testBasicDelim1 0
testBasicDelim2 0
testBasicEmpty1 0
testBasicEmpty2 0
testConstructor_charArray_char 0
testTSV 0.001
testIteration 0
testConstructor_String_char_char 0
testReset 0
testReset_charArray 0
testToString 0.001
testTokenizeSubclassOutputChange 0
testListArray 0.001
testBasicQuoted1 0
testBasicQuoted2 0
testBasicQuoted3 0.001
testBasicQuoted4 0
testBasicQuoted5 0
testBasicQuoted6 0
testBasicQuoted7 0
testCloneNotSupportedException 0.001
testReset_String 0
testTSVEmpty 0
testConstructor_String 0
testCloneNull 0
test1 0.001
test2 0
test3 0
test4 0
test5 0.001
test6 0
test7 0
test8 0
testConstructor_String_char 0
testTokenizeSubclassInputChange 0.001
testCSVEmpty 0
testConstructor_charArray 0
testConstructor_charArray_char_char 0
testCSVSimpleNeedsTrim 0
testBasicIgnoreTrimmed1 0
testBasicIgnoreTrimmed2 0
testBasicIgnoreTrimmed3 0
testBasicIgnoreTrimmed4 0
testBasicQuotedTrimmed1 0
testBasic1 0
testBasic2 0
testBasic3 0
testBasic4 0.001
testBasic5 0
testGetContent 0
testCloneReset 0
testBasicTrimmed1 0
testBasicTrimmed2 0
testChaining 0

AggregateTranslatorTest

testNullConstructor 0
testNonNull 0
testNullVarargConstructor 0

EntityArraysTest

testAposArrays 0
testBasicArrays 0
testConstructorExists 0
testJavaCntrlCharsArrays 0
testISO8859_1_ESCAPE 0
testHtml40ExtendedArrays 0.001
testISO8859Arrays 0.001
testHTML40_EXTENDED_ESCAPE 0

JavaUnicodeEscaperTest

testToUtf16Escape 0
testAbove 0
testBelow 0
testBetween 0

LookupTranslatorTest

testBasicLookup 0
testLang882 0

NumericEntityEscaperTest

testAbove 0
testBelow 0
testBetween 0
testSupplementary 0

NumericEntityUnescaperTest

testSupplementaryUnescaping 0
testUnfinishedEntity 0
testOutOfBounds 0.001

OctalUnescaperTest

testBetween 0

UnicodeEscaperTest

testAbove 0
testBelow 0
testBetween 0

UnicodeUnescaperTest

testUPlus 0
testUuuuu 0
testLessThanFour 0

UnicodeUnpairedSurrogateRemoverTest

testValidCharacters 0.001
testInvalidCharacters 0