Surefire Report

Summary


Tests Errors Failures Skipped Success Rate Time
238 0 0 0 100% 1.708

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

Package List


Package Tests Errors Failures Skipped Success Rate Time
org.apache.jsieve.parser 8 0 0 0 100% 0.017
org.apache.jsieve.comparators 11 0 0 0 100% 0.059
org.apache.jsieve 196 0 0 0 100% 1.611
org.apache.jsieve.commands.optional 1 0 0 0 100% 0.002
org.apache.jsieve.parser.address 3 0 0 0 100% 0.003
org.apache.jsieve.util.check 17 0 0 0 100% 0.013
org.apache.jsieve.comparator 2 0 0 0 100% 0.003

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

org.apache.jsieve.parser

Class Tests Errors Failures Skipped Success Rate Time
SieveNodeCommentTest 8 0 0 0 100% 0.017

org.apache.jsieve.comparators

Class Tests Errors Failures Skipped Success Rate Time
AsciiNumericTest 8 0 0 0 100% 0.007
RequireComparatorTest 3 0 0 0 100% 0.052

org.apache.jsieve

Class Tests Errors Failures Skipped Success Rate Time
MultipleRequireTest 2 0 0 0 100% 0.004
NotTest 2 0 0 0 100% 0.006
TrueTest 2 0 0 0 100% 0.006
HeaderTest 17 0 0 0 100% 0.073
AnyOfTest 5 0 0 0 100% 0.031
MultilineTextTest 7 0 0 0 100% 0.017
LogTest 7 0 0 0 100% 0.013
RejectTest 8 0 0 0 100% 0.046
KeepTest 3 0 0 0 100% 0.006
MultipleToTest 2 0 0 0 100% 0.173
BodyTest 3 0 0 0 100% 0.02
AllOfTest 5 0 0 0 100% 0.045
DiscardTest 3 0 0 0 100% 0.017
RequireMissingTest 5 0 0 0 100% 0.488
StopTest 3 0 0 0 100% 0.015
ConditionTest 17 0 0 0 100% 0.057
SizeTest 5 0 0 0 100% 0.12
FalseTest 2 0 0 0 100% 0.005
SieveParserVisitorImplQuoteTest 6 0 0 0 100% 0.013
QuotingTest 1 0 0 0 100% 0.009
EnvelopeTest 29 0 0 0 100% 0.146
ConfigurationManagerTest 3 0 0 0 100% 0.004
FileIntoTest 5 0 0 0 100% 0.014
WierdAddressTest 1 0 0 0 100% 0.022
AddressParseTest 2 0 0 0 100% 0.005
RequireTest 13 0 0 0 100% 0.068
ExistsTest 8 0 0 0 100% 0.056
AddressTest 30 0 0 0 100% 0.132

org.apache.jsieve.commands.optional

Class Tests Errors Failures Skipped Success Rate Time
FileIntoTest 1 0 0 0 100% 0.002

org.apache.jsieve.parser.address

Class Tests Errors Failures Skipped Success Rate Time
SieveAddressBuilderTest 3 0 0 0 100% 0.003

org.apache.jsieve.util.check

Class Tests Errors Failures Skipped Success Rate Time
ScriptCheckMailAdapterActionsTest 5 0 0 0 100% 0.004
ScriptCheckMailAdapterHeadersTest 4 0 0 0 100% 0.004
ScriptCheckerTestActionsTest 4 0 0 0 100% 0.002
ScriptCheckMailAdapterNoMessageSetTest 3 0 0 0 100% 0.002
ScriptCheckMailAdapterMailTest 1 0 0 0 100% 0.001

org.apache.jsieve.comparator

Class Tests Errors Failures Skipped Success Rate Time
ComparatorUtilsTest 2 0 0 0 100% 0.003

Test Cases

ScriptCheckMailAdapterActionsTest

testReset 0
testAddAction 0
testExecuteActions 0
testGetActions 0.001
testGetExecutedActions 0.001

MultipleRequireTest

testMinimalScriptMultipleRequiredParsing 0.002
testScriptMultipleRequiredParsing 0.001

NotTest

testInvalidArgument 0.003
testIfNotFalse 0.003

TrueTest

testInvalidArgument 0.002
testIfTrue 0.003

HeaderTest

testHeaderIsTrue 0.002
testHeaderCaseInsensitivity 0.003
testHeaderIsTrueMulti1 0.003
testHeaderIsFalseMulti1 0.001
testHeaderIsTrueMulti2 0.002
testHeaderIsTrueMulti3 0.002
testHeaderIsFalseValue 0.027
testHeaderIsFalseHeader 0.001
testHeaderContainsTrue 0.002
testHeaderContainsFalse 0.002
testHeaderContainsNullTrue 0.002
testHeaderIsNullFalse 0.002
testHeaderMatchesTrue 0.002
testHeaderMatchesFalse 0.002
testSquareBracketsInMatch 0.002
testSpecialCharsEscapingInMatch 0.011
testSpecialCharsEscapingInMatchFalse 0.002

AnyOfTest

testInvalidArgument 0.004
testIfAnyOfFalseTrue 0.009
testIfAnyOfTrueTrue 0.004
testIfAnyOfFalseFalse 0.007
testIfAnyOfTrueFalse 0.004

MultilineTextTest

testRejectMultilineMessage 0.002
testRejectMultilineMessageWithWhitespace 0.001
testRejectMultilineMessageWithDotsMidline 0.007
testRejectMultilineMessageWithDotStuffing 0.001
testRejectMultilineMessageWithMissedDotStuffing 0.002
testNumberOfStuffedDotsInMultilineMessage 0.001
testConsecutiveDotStuffedLineInMultilineMessage 0.001

LogTest

testLogDebug 0.003
testLogError 0.001
testLogFatal 0.001
testLogInfo 0.002
testLogTrace 0.001
testLogWarn 0.001
testLogDefault 0.001

AsciiNumericTest

testVerificationFailsWhenAsciiNumericIsNotRequired 0.002
testVerificationPassesWhenAsciiNumericIsRequired 0.002
testBasicNumbericEquality 0
testEqualityShouldIgnoreTrailingCharacters 0
testEqualityShouldIgnoreLeadingZeros 0
testStingsThatDoNotStartWithADigitRepresentPositiveInfinityWhenUsedInEquality 0
testSubstringIsNotSupported 0
testMatchNotSupported 0

RejectTest

testInvalidArguments 0.003
testInvalidBlock 0.003
testReject 0.002
testRejectMessage 0.001
testRejectMissingMessage 0.002
testDuplicateReject 0.003
testRejectAndAPrecedingCommand 0.011
testRejectAndAFollowingCommand 0.009

KeepTest

testInvalidArguments 0.002
testInvalidBlock 0.002
testKeep 0.001

MultipleToTest

testSingleTo 0.133
testMultipleTo 0.039

BodyTest

testBasic 0.011
testBodyCaseInsensitivity 0.004
testBodyNoContains 0.003

AllOfTest

testIfAllOfFalseTrue 0.006
testIfAllOfTrueTrue 0.005
testIfAllOfFalseFalse 0.024
testIfAllOfTrueFalse 0.004
testInvalidArgument 0.005

SieveAddressBuilderTest

testNotAddress 0.001
testAddAddresses 0.001
testReset 0

DiscardTest

testInvalidArguments 0.004
testInvalidBlock 0.008
testDiscard 0.002

RequireMissingTest

testUnsupportedRequireNoBrackets 0.393
testUnsupportedRequireMultiple 0.007
testUnsupportedRequire 0.01
testMissingRequire 0.05
testRequireAfterOtherCommand 0.004

StopTest

testInvalidArguments 0.004
testInvalidBlock 0.003
testStop 0.002

ConditionTest

testIfFalse 0.002
testIfTrue 0.002
testElsifTrue 0.002
testElsifFalse 0.002
testElsifFalseElsifTrue 0.014
testElsifFalseElse 0.003
testElse 0.002
testOutOfSequenceElse 0.002
testOutOfSequenceElsif 0.002
testIfMissingBlock 0.002
testIfMissingTest 0.002
testElsifMissingTest 0.002
testElsifMissingBlock 0.007
testElseMissingBlock 0.002
testNestedIf 0.003
testNestedOutOfSequenceElse 0.002
testNestedOutOfSequenceElsif 0.002

SizeTest

testSizeIsOverTrue 0.108
testSizeIsOverFalse 0.002
testSizeIsUnderTrue 0.003
testSizeIsUnderFalse 0.003
testSizeIsWithQuantifier 0.002

FalseTest

testInvalidArgument 0.002
testIfFalse 0.002

ScriptCheckMailAdapterHeadersTest

testGetHeader 0.001
testGetHeaderNames 0.001
testGetMatchingHeader 0
testGetSize 0

ScriptCheckerTestActionsTest

testReject 0
testFileInto 0
testKeep 0
testRedirect 0

SieveParserVisitorImplQuoteTest

testVisitASTstringObjectQuoted 0.002
testVisitASTstringObjectQuoteInQuoted 0.002
testVisitASTstringObjectDoubleSlashQuoted 0.003
testVisitASTstringObjectSlashQuoted 0.002
testVisitASTstringEmptyQuoted 0.001
testVisitASTstringObjectMultiSlashQuoted 0.001

FileIntoTest

testFileIntoShouldNotAllowMultipleFileIntoActions 0.001

QuotingTest

testQuoteInQuotedString 0.007

EnvelopeTest

testIfEnvelopeAllIsTrue 0.006
testCaseInsensitiveEnvelopeName 0.005
testOctetComparatorTrue 0.003
testOctetComparatorFalse 0.002
testAsciiComparatorTrue 0.002
testAsciiComparatorFalse 0.006
testIfEnvelopeAllIsMultiTrue1 0.008
testIfEnvelopeAllIsMultiTrue2 0.003
testIfEnvelopeAllIsMultiTrue3 0.003
testIfEnvelopeAllIsMultiTrue4 0.002
testIfEnvelopeAllMatchesTrue 0.035
testIfEnvelopeAllContainsTrue 0.004
testIfEnvelopeLocalpartIsTrue 0.007
testIfEnvelopeLocalpartMatchesTrue 0.002
testIfEnvelopeLocalpartContainsTrue 0.003
testIfEnvelopeDomainIsTrue 0.012
testIfEnvelopeDomainMatchesTrue 0.002
testIfEnvelopeDomainContainsTrue 0.002
testIfEnvelopeAllIsFalse 0.002
testIfEnvelopeAllMatchesFalse 0.002
testIfEnvelopeAllContainsFalse 0.002
testIfEnvelopeLocalpartIsFalse 0.002
testIfEnvelopeLocalpartMatchesFalse 0.002
testIfEnvelopeLocalpartContainsFalse 0.002
testIfEnvelopeDomainIsFalse 0.002
testIfEnvelopeDomainMatchesFalse 0.002
testIfEnvelopeDomainContainsFalse 0.002
testIfEnvelopeAllIsMultiFalse1 0.002
testIfEnvelopeAllIsMultiFalse2 0.002

ScriptCheckMailAdapterNoMessageSetTest

testGetHeader 0
testGetHeaderNames 0
testGetMatchingHeader 0

ConfigurationManagerTest

testCommandMap 0.001
testTestMap 0.001
testComparatorMap 0.001

FileIntoTest

testInvalidBlock 0.002
testFileInto 0.003
testDuplicateFileInto 0.002
testInvalidArgumentType 0.002
testInvalidArgumentNumber 0.003

ComparatorUtilsTest

testMatchesStringString 0.001
testSieveToJavaRegex 0

WierdAddressTest

testShouldParseAddressWithLotsOfStars 0.022

ScriptCheckMailAdapterMailTest

testSetMail 0

SieveNodeCommentTest

testGetNoCommentsBefore 0.001
testGetBracketCommentsBefore 0.001
testGetHashCommentsBefore 0.001
testGetHashCommentsBeforeCRLF 0.001
testGetLastCommentNoneBefore 0.001
testGetBracketLastCommentBefore 0.006
testGetHashLastCommentBefore 0.001
testGetHashLastCommentBeforeCRLF 0.002

AddressParseTest

testSingleAddress 0.002
testMultipleAddresses 0.002

RequireTest

testSingleCommandSatisfied 0.002
testSingleTestSatisfied 0.002
testMultipleCommandSatisfied 0.008
testMultipleTestSatisfied 0.004
testSingleCommandUnsatisfied 0.017
testSingleTestUnsatisfied 0.003
testMissingArgument 0.013
testExtraArgument 0.003
testRejectBlock 0.004
testInterveningCommand 0.002
testRejectInvalidArgument 0.002
testMultipleCommandsUnsatisfied 0.002
testMultipleTestsUnsatisfied 0.003

RequireComparatorTest

testAsciiCasemapShouldBeImplicitlyDeclared 0.015
testOctetShouldBeImplicitlyDeclared 0.003
testBogusComparatorShouldFailAtParseTime 0.012

ExistsTest

testExistsTrue 0.009
testCaseInsensitivity 0.004
testExistsTrueTrue 0.004
testExistsTrueFalse 0.003
testExistsFalse 0.004
testExistsFalseFalse 0.003
testInvalidNumericArgument 0.017
testInvalidTestArgument 0.009

AddressTest

testOctetComparatorTrue 0.021
testOctetComparatorFalse 0.002
testAsciiComparatorTrue 0.003
testAsciiComparatorFalse 0.002
testIfAddressAllIsTrue 0.002
testCaseInsensitiveHeaderName 0.002
testTreatmentOfEmbededSpacesInHeaderName 0.002
testIfAddressAllIsMultiTrue1 0.013
testIfAddressAllIsMultiTrue2 0.022
testIfAddressAllIsMultiTrue3 0.002
testIfAddressAllIsMultiTrue4 0.003
testIfAddressAllMatchesTrue 0.002
testIfAddressAllContainsTrue 0.004
testIfAddressLocalpartIsTrue 0.002
testIfAddressLocalpartMatchesTrue 0.002
testIfAddressLocalpartContainsTrue 0.002
testIfAddressDomainIsTrue 0.003
testIfAddressDomainMatchesTrue 0.002
testIfAddressDomainContainsTrue 0.003
testIfAddressAllIsFalse 0.002
testIfAddressAllMatchesFalse 0.002
testIfAddressAllContainsFalse 0.002
testIfAddressLocalpartIsFalse 0.002
testIfAddressLocalpartMatchesFalse 0.009
testIfAddressLocalpartContainsFalse 0.002
testIfAddressDomainIsFalse 0.002
testIfAddressDomainMatchesFalse 0.002
testIfAddressDomainContainsFalse 0.002
testIfAddressAllIsMultiFalse1 0.003
testIfAddressAllIsMultiFalse2 0.002