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.156s | passed |
| testHasRateControl() | 2m6.36s | passed |
| testProgramTerminateTimestamp() | 0.275s | passed |
| testQuoteAndPropositionWithContractNumber() | 0.086s | passed |
| testSuspendedForTooLong() | 0.023s | failed |
| testSuspendedTooEarly() | 0.077s | failed |
| testWarnedForTooLong() | 0.095s | passed |
Standard output
06:23:25.609 [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:23:25.614 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testSuspendedTooEarly() / Verification Time : 0.075s
06:23:25.700 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testQuoteAndPropositionWithContractNumber() / Verification Time : 0.084s
06:23:25.857 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - test1() / Verification Time : 0.155s
06:23:25.879 [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:23:25.880 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testSuspendedForTooLong() / Verification Time : 0.022s
06:25:32.241 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testHasRateControl() / Verification Time : 126.359s
06:25:32.336 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testWarnedForTooLong() / Verification Time : 0.094s
06:25:32.611 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testProgramTerminateTimestamp() / Verification Time : 0.273s