owned this note
owned this note
Published
Linked with GitHub
# ЫЙ
А.
```!=
[ERROR] com.icl_services.queue.dashboard.service.TileDataValueFactoryTest.lanePointTests_thenTileDataValueDto(TileDataType)[47] Time elapsed: 0.725 s <<< ERROR!
java.lang.RuntimeException:
org.postgresql.util.PSQLException: ERROR: syntax error at or near "\"
Position: 254
at com.icl_services.queue.jpa_shared_objects.jpa.dao.view.LanePointContinuousAggregateDaoImpl.getArrivedAtBetweenAndLanePointId(LanePointContinuousAggregateDaoImpl.java:209)
```
B.
```!=
Suppressed: java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR: column "required_tier1" is of type integer but expression is of type character varying
Hint: You will need to rewrite or cast the expression.
Position: 170
at com.icl_services.queue.jpa_shared_objects.jpa.dao.postgresql.DashboardCarDaoImpl.create(DashboardCarDaoImpl.java:207)
```
```!=
[ERROR] com.icl_services.queue.statistics.service.StatisticServiceTest.testLanePointDaypartCalculateStatistic Time elapsed: 0.155 s <<< ERROR!
java.lang.RuntimeException:
org.postgresql.util.PSQLException: ERROR: column "tier" is of type integer but expression is of type character varying
Hint: You will need to rewrite or cast the expression.
Position: 149
at com.icl_services.queue.jpa_shared_objects.jpa.dao.timescaledb.LanePointServiceTimeDaoImpl.create(LanePointServiceTimeDaoImpl.java:56)
```
```!=
[ERROR] com.icl_services.queue.statistics.service.ServiceTimeCalculatorServiceTest.processMessage_InductiveLine_Test Time elapsed: 0.457 s <<< FAILURE!
org.opentest4j.AssertionFailedError:
Unexpected exception thrown: java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR: column "tier" is of type integer but expression is of type character varying
Hint: You will need to rewrite or cast the expression.
Position: 149
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:152)
at org.junit.jupiter.api.AssertDoesNotThrow.createAssertionFailedError(AssertDoesNotThrow.java:84)
at org.junit.jupiter.api.AssertDoesNotThrow.assertDoesNotThrow(AssertDoesNotThrow.java:53)
at org.junit.jupiter.api.AssertDoesNotThrow.assertDoesNotThrow(AssertDoesNotThrow.java:36)
at org.junit.jupiter.api.Assertions.assertDoesNotThrow(Assertions.java:3136)
at com.icl_services.queue.statistics.service.ServiceTimeCalculatorServiceTest.processMessage_InductiveLine_Test(ServiceTimeCalculatorServiceTest.java:83)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
```
C.
```!=
Suppressed: java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because "requiredValue1" is null
at com.icl_services.queue.jpa_shared_objects.jpa.dao.postgresql.TileDataDaoImpl.create(TileDataDaoImpl.java:197)
at com.icl_services.queue.jpa_shared_objects.jpa.dao.postgresql.TileDataDaoImpl_Subclass.create$$superforward1(Unknown Source)
at com.icl_services.queue.jpa_shared_objects.jpa.dao.postgresql.TileDataDaoImpl_Subclass$$function$$4.apply(Unknown Source)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:54)
```
D.
Должно быть
```java
TierType.getByValue(Integer.valueOf(...))
```
```!=
Suppressed: java.lang.IllegalArgumentException: No enum constant com.icl_services.queue.jpa_shared_objects.enums.TierType.2
at java.base/java.lang.Enum.valueOf(Enum.java:273)
at com.icl_services.queue.jpa_shared_objects.enums.TierType.valueOf(TierType.java:8)
at com.icl_services.queue.jpa_shared_objects.jpa.dao.timescaledb.LanePointServiceTimeDaoImpl$2.apply(LanePointServiceTimeDaoImpl.java:167)
```
```!=
[ERROR] com.icl_services.queue.statistics.service.ServiceTimeCalculatorServiceTest.processMessage_CarAlreadyExists_Test Time elapsed: 0.014 s <<< ERROR!
java.lang.IllegalArgumentException: No enum constant com.icl_services.queue.jpa_shared_objects.enums.TierType.1
at java.base/java.lang.Enum.valueOf(Enum.java:273)
at com.icl_services.queue.jpa_shared_objects.enums.TierType.valueOf(TierType.java:8)
at com.icl_services.queue.statistics.daoTest.ServiceTimeDaoTimeImpl$2.apply(ServiceTimeDaoTimeImpl.java:84)
```
---
:::info
------------- adminpanelservice-api --------------
[INFO] Tests run: 153, Failures: 0, Errors: 0, Skipped: 0
[INFO] BUILD SUCCESS
------------ authorizationservice-api ------------
[INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0
[INFO] BUILD SUCCESS
--------------- dashboard-service ----------------
[ERROR] Tests run: 185, Failures: 9, Errors: 59, Skipped: 0
[INFO] BUILD FAILURE
--------------- reportservice-api ----------------
[ERROR] Tests run: 51, Failures: 9, Errors: 0, Skipped: 6
[INFO] BUILD FAILURE
----------- streamprocessorservice-api -----------
[INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0
[INFO] BUILD SUCCESS
-------------- commonsharedobjects ---------------
[WARNING] Tests run: 88, Failures: 0, Errors: 0, Skipped: 2
[INFO] BUILD SUCCESS
-------------- cloudsyncservice-api --------------
[INFO] Tests run: 19, Failures: 0, Errors: 0, Skipped: 0
[INFO] BUILD SUCCESS
------------- statisticsservice-api --------------
[ERROR] Tests run: 9, Failures: 2, Errors: 7, Skipped: 0
[INFO] BUILD FAILURE
:::