ContractImplTest
|
71%
successful |
Failed tests
testSuspendedForTooLong()
org.opentest4j.AssertionFailedError: expected: <> but was: <1 Errors for testSuspendedForTooLong() : Contract number AGEOCSANC348 has suspended date over 11 days in the past: 2019-02-02 08:00:10.261 > 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()
org.opentest4j.AssertionFailedError: expected: <> but was: <1 Errors for testSuspendedTooEarly() : Contract number AGEOCSANC348 has been suspended too early: 2019-02-02 08:00:10.261 instead of 2025-04-02 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.testSuspendedTooEarly(ContractImplTest.java:226) 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.194s | passed |
| testHasRateControl() | 2m5.71s | passed |
| testProgramTerminateTimestamp() | 0.257s | passed |
| testQuoteAndPropositionWithContractNumber() | 0.058s | passed |
| testSuspendedForTooLong() | 0.031s | failed |
| testSuspendedTooEarly() | 0.112s | failed |
| testWarnedForTooLong() | 0.115s | passed |
Standard output
06:28:48.521 [Test worker] ERROR - {} - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - 1 Errors for testSuspendedTooEarly() :
Contract number AGEOCSANC348 has been suspended too early: 2019-02-02 08:00:10.261 instead of 2025-04-02 00:00:00.0
06:28:48.524 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testSuspendedTooEarly() / Verification Time : 0.111s
06:28:48.583 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testQuoteAndPropositionWithContractNumber() / Verification Time : 0.057s
06:28:48.777 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - test1() / Verification Time : 0.193s
06:28:48.807 [Test worker] ERROR - {} - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - 1 Errors for testSuspendedForTooLong() :
Contract number AGEOCSANC348 has suspended date over 11 days in the past: 2019-02-02 08:00:10.261
06:28:48.808 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testSuspendedForTooLong() / Verification Time : 0.029s
06:30:54.519 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testHasRateControl() / Verification Time : 125.709s
06:30:54.634 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testWarnedForTooLong() / Verification Time : 0.114s
06:30:54.891 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testProgramTerminateTimestamp() / Verification Time : 0.255s