ContractImplTest

7

tests

2

failures

0

ignored

2m3.31s

duration

71%

successful

Failed tests

testSuspendedForTooLong()

org.opentest4j.AssertionFailedError: expected: <> but was: <82 Errors for testSuspendedForTooLong() :
Contract number 02ODC228447/10023683 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10024520 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10027047 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10027346 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10028893 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10030425 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10030438 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10030443 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10030505 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10030519 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10031282 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10031413 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10031710 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033103 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033198 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033216 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033405 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033521 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033564 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033619 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033962 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034044 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034184 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034217 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034234 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034266 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034429 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034461 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034585 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034747 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034876 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034885 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035080 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035260 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035300 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035439 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035455 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035848 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035876 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035880 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035904 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035933 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035965 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035986 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10036457 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10036459 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10036697 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10016350 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10016377 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10017086 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10018220 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10018769 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10021689 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10038863 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10040273 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10040542 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10040586 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10045363 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10051278 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10053919 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10061516 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10087962 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10090763 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10092287 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10092332 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10094997 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10098440 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10099642 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10101303 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10103144 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10104587 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10104659 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10105550 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10105941 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10106153 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10106609 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10106737 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10031021 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10032637 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035921 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10106594 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10106691 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
	at com.smalltox.business.model.persistent.impl.contract.ContractImplTest.testSuspendedForTooLong(ContractImplTest.java:199)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at java.util.ArrayList.forEach(ArrayList.java:1259)
	at java.util.ArrayList.forEach(ArrayList.java:1259)

testSuspendedTooEarly()

java.lang.NullPointerException
	at java.util.Calendar.setTime(Calendar.java:1770)
	at com.smalltox.foundation.utils.Timestamps.addDays(Timestamps.java:571)
	at com.smalltox.business.model.persistent.impl.contract.ContractImpl.retrieveSuspendedDateAfterWarned(ContractImpl.java:5638)
	at com.smalltox.business.model.persistent.impl.contract.ContractImplTest.testSuspendedTooEarly(ContractImplTest.java:212)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at java.util.ArrayList.forEach(ArrayList.java:1259)
	at java.util.ArrayList.forEach(ArrayList.java:1259)

Tests

Test Duration Result
test1() 0.242s passed
testHasRateControl() 2m2.52s passed
testProgramTerminateTimestamp() 0.266s passed
testQuoteAndPropositionWithContractNumber() 0.085s passed
testSuspendedForTooLong() 0.039s failed
testSuspendedTooEarly() 0.073s failed
testWarnedForTooLong() 0.089s passed

Standard output

06:14:49.730 [Test worker] INFO  - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testSuspendedTooEarly() / Verification Time : 0.072s
06:14:49.816 [Test worker] INFO  - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testQuoteAndPropositionWithContractNumber() / Verification Time : 0.084s
06:14:50.059 [Test worker] INFO  - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - test1() / Verification Time : 0.241s
06:14:50.092 [Test worker] ERROR - {} - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - 82 Errors for testSuspendedForTooLong() :
Contract number 02ODC228447/10023683 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10024520 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10027047 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10027346 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10028893 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10030425 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10030438 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10030443 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10030505 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10030519 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10031282 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10031413 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10031710 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033103 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033198 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033216 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033405 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033521 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033564 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033619 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10033962 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034044 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034184 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034217 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034234 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034266 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034429 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034461 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034585 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034747 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034876 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10034885 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035080 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035260 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035300 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035439 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035455 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035848 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035876 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035880 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035904 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035933 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035965 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035986 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10036457 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10036459 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10036697 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10016350 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10016377 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10017086 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10018220 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10018769 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10021689 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10038863 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10040273 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10040542 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10040586 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10045363 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10051278 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10053919 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10061516 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10087962 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10090763 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10092287 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10092332 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10094997 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10098440 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10099642 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10101303 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10103144 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10104587 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10104659 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10105550 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10105941 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10106153 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10106609 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10106737 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10031021 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10032637 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10035921 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10106594 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0
Contract number 02ODC228447/10106691 has suspended date over 11 days in the past: 2025-01-31 00:00:00.0

06:14:50.097 [Test worker] INFO  - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testSuspendedForTooLong() / Verification Time : 0.037s
06:16:52.613 [Test worker] INFO  - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testHasRateControl() / Verification Time : 122.514s
06:16:52.703 [Test worker] INFO  - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testWarnedForTooLong() / Verification Time : 0.088s
06:16:52.969 [Test worker] INFO  - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testProgramTerminateTimestamp() / Verification Time : 0.265s