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.144s | passed |
| testHasRateControl() | 2m6.70s | passed |
| testProgramTerminateTimestamp() | 0.261s | passed |
| testQuoteAndPropositionWithContractNumber() | 0.064s | passed |
| testSuspendedForTooLong() | 0.025s | failed |
| testSuspendedTooEarly() | 0.052s | failed |
| testWarnedForTooLong() | 0.089s | passed |
Standard output
06:25:22.768 [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:25:22.771 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testSuspendedTooEarly() / Verification Time : 0.051s
06:25:22.847 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testQuoteAndPropositionWithContractNumber() / Verification Time : 0.063s
06:25:22.991 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - test1() / Verification Time : 0.143s
06:25:23.015 [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:25:23.016 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testSuspendedForTooLong() / Verification Time : 0.023s
06:27:29.717 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testHasRateControl() / Verification Time : 126.700s
06:27:29.807 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testWarnedForTooLong() / Verification Time : 0.088s
06:27:30.069 [Test worker] INFO - {} - com.smalltox.test.AbstractIntegrationTest - com.smalltox.business.model.persistent.impl.contract.ContractImplTest - testProgramTerminateTimestamp() / Verification Time : 0.260s