Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
90 0 0 0 100% 16.65 s

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.bremersee.comparator.spring.mapper 12 0 0 0 100% 1.352 s
org.bremersee.comparator.model 19 0 0 0 100% 0.632 s
org.bremersee.comparator 53 0 0 0 100% 8.713 s
org.bremersee.comparator.spring.converter 6 0 0 0 100% 5.951 s

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

org.bremersee.comparator.spring.mapper

- Class Tests Errors Failures Skipped Success Rate Time
SortMapperTest 12 0 0 0 100% 1.352 s

org.bremersee.comparator.model

- Class Tests Errors Failures Skipped Success Rate Time
SortOrdersTest 9 0 0 0 100% 0.059 s
XmlSchemaTest 1 0 0 0 100% 0.026 s
SortOrderTest 7 0 0 0 100% 0.542 s
ObjectFactoryTest 2 0 0 0 100% 0.005 s

org.bremersee.comparator

- Class Tests Errors Failures Skipped Success Rate Time
ComparatorExceptionTest 2 0 0 0 100% 0.014 s
ComparatorBuilderTest 10 0 0 0 100% 3.203 s
DelegatingComparatorTest 3 0 0 0 100% 0.143 s
ValueExtractorTest 2 0 0 0 100% 0.445 s
ValueExtractorExceptionTest 2 0 0 0 100% 0.008 s
ComparatorJaxbContextDataProviderTest 2 0 0 0 100% 1.728 s
ValueComparatorTest 21 0 0 0 100% 3.128 s
DefaultValueExtractorTest 5 0 0 0 100% 0.018 s
ComparatorChainTest 6 0 0 0 100% 0.026 s

org.bremersee.comparator.spring.converter

- Class Tests Errors Failures Skipped Success Rate Time
SortOrderConverterTest 2 0 0 0 100% 0.006 s
SortOrdersConverterTest 2 0 0 0 100% 0.009 s
SortOrderConverterIntegrationTest 2 0 0 0 100% 5.936 s

Test Cases

[Summary] [Package List] [Test Cases]

ComparatorExceptionTest

testWithOneArgument 0.002 s
testWithTwoArguments 0.009 s

SortOrdersTest

testXmlSortOrders 0.006 s
testIsUnsorted 0.002 s
testGetSortOrdersText(SoftAssertions) 0.002 s
testJsonSortOrders 0.020 s
testFromSortOrdersText(SoftAssertions) 0.004 s
testIsSorted 0.002 s
testFromSortOrdersTextWithProperties 0.001 s
testEqualsAndHashCode(SoftAssertions) 0.002 s
testIsEmpty 0.002 s

ComparatorBuilderTest

testSimpleGetObjectWithSortOrders(SoftAssertions) 1.348 s
testPrimitiveType 0.002 s
testSimpleGetObject 0.002 s
testSimpleObject 0.004 s
testSimpleIsObject 0.004 s
testComplexObject 0.004 s
testObjectsAndExpectComparatorException 0.003 s
testObjectsWithSameValues 0.033 s
testComparingOfComplexObjects(SoftAssertions) 1.764 s
testStrings 0.005 s

SortOrderConverterTest

convertWithProperties(SoftAssertions) 0.001 s
convert 0.002 s

DelegatingComparatorTest

testToString 0.131 s
testDelegatingComparatorAndExpectIllegalArgumentException 0.002 s
testDelegatingComparator 0.005 s

XmlSchemaTest

testXmlSchema 0.019 s

SortOrderTest

testJsonSortOrder 0.150 s
testXmlSortOrder 0.078 s
testBuilder(SoftAssertions) 0.004 s
testFromSortOrderTextWithProperties(SoftAssertions) 0.001 s
testFromSortOrderText(SoftAssertions) 0.002 s
testEqualsAndHashCode(SoftAssertions) 0.002 s
testGetSortOrderText(SoftAssertions) 0.003 s

ValueExtractorTest

findFieldWithClassAndName 0.003 s
getPossibleMethodNames(SoftAssertions) 0.436 s

SortMapperTest

toSortWithSortOrdersNull 0.012 s
toSortWithEmptySortOrders 0.002 s
fromSort 0.006 s
toSortWithListNull 0.001 s
toSort(SoftAssertions) 1.283 s
toSortWithEmptyList 0.002 s
toSortWithSortOrders(SoftAssertions) 0.006 s
toSortOrder(SoftAssertions) 0.003 s
applyDefaults(SoftAssertions) 0.009 s
fromSortWithNull 0.002 s
applyDefaultsToPageable(SoftAssertions) 0.008 s
fromSortOrder 0.002 s

ValueExtractorExceptionTest

testWithOneArgument 0.002 s
testWithTwoArguments 0.002 s

ComparatorJaxbContextDataProviderTest

getJaxbContextData(SoftAssertions) 1.484 s
getNamespace 0.239 s

SortOrdersConverterTest

convertWithProperties 0.004 s
convert 0.002 s

ValueComparatorTest

testWith_A_And_B_And_Asc_And_IgnoreCase 2.827 s
testWithFirstIsNullValueAndAscAndNullIsFirst 0.026 s
testWith_B_And_A_And_Asc_And_IgnoreCase 0.008 s
testWith_1_And_2_And_Asc 0.007 s
testWithSecondIsNullValueAndAscAndNullIsLast 0.006 s
testWithSecondIsNullValueAndDescAndNullIsLast 0.005 s
testToString 0.046 s
testWithFirstIsNullValueAndDescAndNullIsLast 0.005 s
testWith_A_And_B_And_Desc_And_IgnoreCase 0.010 s
testWith_2_And_1_And_Desc 0.006 s
testWith_1_And_2_And_Desc 0.006 s
testWith_1_And_1 0.004 s
testWithFirstIsNullValueAndDescAndNullIsFirst 0.006 s
testWithNonComparableValuesAndExpectComparatorException 0.022 s
testWithFirstIsNullValueAndAscAndNullIsLast 0.005 s
testWithTwoNullValues 0.005 s
testWithSecondIsNullValueAndAscAndNullIsFirst 0.005 s
testWith_2_And_1_And_Asc 0.004 s
testWith_A_And_A 0.003 s
testWithSecondIsNullValueAndDescAndNullIsFirst 0.004 s
testWith_B_And_A_And_Desc_And_IgnoreCase 0.004 s

ObjectFactoryTest

createSortOrder 0.001 s
createSortOrders 0.001 s

DefaultValueExtractorTest

testObjects(SoftAssertions) 0.002 s
testIllegalFieldAndExpectException 0.004 s
testToString 0.001 s
testReturningOfGivenObject(SoftAssertions) 0.002 s
testEqualsAndHashCode(SoftAssertions) 0.002 s

SortOrderConverterIntegrationTest

testConvertSortParameter(SoftAssertions) 0.842 s
testConvertPageableParameters(SoftAssertions) 0.047 s

ComparatorChainTest

testToString 0.004 s
testTwoComparatorsAndUseOnlyFirst 0.004 s
testNullObjectsAndExpectComparatorException 0.002 s
testTwoComparatorsAndUseBoth 0.004 s
testNotComparableObjectsAndExpectComparatorException 0.002 s
testEmptyComparatorChain(SoftAssertions) 0.002 s