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.148s | passed |
| testHasRateControl() | 2m7.69s | passed |
| testProgramTerminateTimestamp() | 0.257s | passed |
| testQuoteAndPropositionWithContractNumber() | 0.059s | passed |
| testSuspendedForTooLong() | 0.025s | failed |
| testSuspendedTooEarly() | 0.089s | failed |
| testWarnedForTooLong() | 0.089s | passed |
Standard output
06:24:59.382 [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:24:59.388 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testSuspendedTooEarly() / Verification Time : 0.087s
06:24:59.448 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testQuoteAndPropositionWithContractNumber() / Verification Time : 0.058s
06:24:59.597 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - test1() / Verification Time : 0.148s
06:24:59.622 [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:24:59.622 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testSuspendedForTooLong() / Verification Time : 0.024s
06:27:07.310 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testHasRateControl() / Verification Time : 127.686s
06:27:07.399 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testWarnedForTooLong() / Verification Time : 0.088s
06:27:07.658 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testProgramTerminateTimestamp() / Verification Time : 0.257s