Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
90 0 0 0 100% 24.13 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% 2.458 s
org.bremersee.comparator.model 19 0 0 0 100% 0.854 s
org.bremersee.comparator 53 0 0 0 100% 13.75 s
org.bremersee.comparator.spring.converter 6 0 0 0 100% 7.065 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% 2.458 s

org.bremersee.comparator.model

- Class Tests Errors Failures Skipped Success Rate Time
SortOrdersTest 9 0 0 0 100% 0.077 s
XmlSchemaTest 1 0 0 0 100% 0.039 s
SortOrderTest 7 0 0 0 100% 0.732 s
ObjectFactoryTest 2 0 0 0 100% 0.006 s

org.bremersee.comparator

- Class Tests Errors Failures Skipped Success Rate Time
ComparatorExceptionTest 2 0 0 0 100% 0.017 s
ComparatorBuilderTest 10 0 0 0 100% 5.122 s
DelegatingComparatorTest 3 0 0 0 100% 0.146 s
ValueExtractorTest 2 0 0 0 100% 0.637 s
ValueExtractorExceptionTest 2 0 0 0 100% 0.018 s
ComparatorJaxbContextDataProviderTest 2 0 0 0 100% 2.600 s
ValueComparatorTest 21 0 0 0 100% 5.153 s
DefaultValueExtractorTest 5 0 0 0 100% 0.028 s
ComparatorChainTest 6 0 0 0 100% 0.028 s

org.bremersee.comparator.spring.converter

- Class Tests Errors Failures Skipped Success Rate Time
SortOrderConverterTest 2 0 0 0 100% 0.007 s
SortOrdersConverterTest 2 0 0 0 100% 0.025 s
SortOrderConverterIntegrationTest 2 0 0 0 100% 7.033 s

Test Cases

[Summary] [Package List] [Test Cases]

ComparatorExceptionTest

testWithOneArgument 0.011 s
testWithTwoArguments 0.002 s

SortOrdersTest

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

ComparatorBuilderTest

testSimpleGetObjectWithSortOrders(SoftAssertions) 2.465 s
testPrimitiveType 0.002 s
testSimpleGetObject 0.008 s
testSimpleObject 0.003 s
testSimpleIsObject 0.003 s
testComplexObject 0.005 s
testObjectsAndExpectComparatorException 0.006 s
testObjectsWithSameValues 0.048 s
testComparingOfComplexObjects(SoftAssertions) 2.510 s
testStrings 0.005 s

SortOrderConverterTest

convertWithProperties(SoftAssertions) 0.002 s
convert 0.002 s

DelegatingComparatorTest

testToString 0.129 s
testDelegatingComparatorAndExpectIllegalArgumentException 0.003 s
testDelegatingComparator 0.003 s

XmlSchemaTest

testXmlSchema 0.021 s

SortOrderTest

testJsonSortOrder 0.205 s
testXmlSortOrder 0.112 s
testBuilder(SoftAssertions) 0.010 s
testFromSortOrderTextWithProperties(SoftAssertions) 0.001 s
testFromSortOrderText(SoftAssertions) 0.002 s
testEqualsAndHashCode(SoftAssertions) 0.002 s
testGetSortOrderText(SoftAssertions) 0.002 s

ValueExtractorTest

findFieldWithClassAndName 0.005 s
getPossibleMethodNames(SoftAssertions) 0.625 s

SortMapperTest

toSortWithSortOrdersNull 0.063 s
toSortWithEmptySortOrders 0.003 s
fromSort 0.017 s
toSortWithListNull 0.002 s
toSort(SoftAssertions) 2.287 s
toSortWithEmptyList 0.001 s
toSortWithSortOrders(SoftAssertions) 0.006 s
toSortOrder(SoftAssertions) 0.002 s
applyDefaults(SoftAssertions) 0.012 s
fromSortWithNull 0.002 s
applyDefaultsToPageable(SoftAssertions) 0.013 s
fromSortOrder 0.001 s

ValueExtractorExceptionTest

testWithOneArgument 0.008 s
testWithTwoArguments 0.002 s

ComparatorJaxbContextDataProviderTest

getJaxbContextData(SoftAssertions) 2.275 s
getNamespace 0.312 s

SortOrdersConverterTest

convertWithProperties 0.015 s
convert 0.004 s

ValueComparatorTest

testWith_A_And_B_And_Asc_And_IgnoreCase 4.532 s
testWithFirstIsNullValueAndAscAndNullIsFirst 0.040 s
testWith_B_And_A_And_Asc_And_IgnoreCase 0.023 s
testWith_1_And_2_And_Asc 0.031 s
testWithSecondIsNullValueAndAscAndNullIsLast 0.029 s
testWithSecondIsNullValueAndDescAndNullIsLast 0.031 s
testToString 0.096 s
testWithFirstIsNullValueAndDescAndNullIsLast 0.008 s
testWith_A_And_B_And_Desc_And_IgnoreCase 0.011 s
testWith_2_And_1_And_Desc 0.015 s
testWith_1_And_2_And_Desc 0.012 s
testWith_1_And_1 0.012 s
testWithFirstIsNullValueAndDescAndNullIsFirst 0.012 s
testWithNonComparableValuesAndExpectComparatorException 0.054 s
testWithFirstIsNullValueAndAscAndNullIsLast 0.011 s
testWithTwoNullValues 0.003 s
testWithSecondIsNullValueAndAscAndNullIsFirst 0.005 s
testWith_2_And_1_And_Asc 0.014 s
testWith_A_And_A 0.004 s
testWithSecondIsNullValueAndDescAndNullIsFirst 0.005 s
testWith_B_And_A_And_Desc_And_IgnoreCase 0.004 s

ObjectFactoryTest

createSortOrder 0 s
createSortOrders 0.001 s

DefaultValueExtractorTest

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

SortOrderConverterIntegrationTest

testConvertSortParameter(SoftAssertions) 0.893 s
testConvertPageableParameters(SoftAssertions) 0.038 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