Skip to content

Commit

Permalink
fix: parent updated and fixed tests (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordenReuter authored Apr 18, 2024
1 parent eaa118e commit cda9330
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,38 @@ h| Version
| tkit-quarkus-jpa

| https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-jpa.html[Link]
| https://github.com/1000kit/tkit-quarkus/blob/2.21.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-jpa.adoc[Link]
| 2.21.0
| https://github.com/1000kit/tkit-quarkus/blob/2.22.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-jpa.adoc[Link]
| 2.22.0

| tkit-quarkus-log-cdi

| https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-log-cdi.html[Link]
| https://github.com/1000kit/tkit-quarkus/blob/2.21.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-cdi.adoc[Link]
| 2.21.0
| https://github.com/1000kit/tkit-quarkus/blob/2.22.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-cdi.adoc[Link]
| 2.22.0

| tkit-quarkus-log-rs

| https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-log-rs.html[Link]
| https://github.com/1000kit/tkit-quarkus/blob/2.21.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-rs.adoc[Link]
| 2.21.0
| https://github.com/1000kit/tkit-quarkus/blob/2.22.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-rs.adoc[Link]
| 2.22.0

| tkit-quarkus-log-json

| https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-log-json.html[Link]
| https://github.com/1000kit/tkit-quarkus/blob/2.21.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-json.adoc[Link]
| 2.21.0
| https://github.com/1000kit/tkit-quarkus/blob/2.22.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-log-json.adoc[Link]
| 2.22.0

| tkit-quarkus-rest

| https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-rest.html[Link]
| https://github.com/1000kit/tkit-quarkus/blob/2.21.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-rest.adoc[Link]
| 2.21.0
| https://github.com/1000kit/tkit-quarkus/blob/2.22.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-rest.adoc[Link]
| 2.22.0

| tkit-quarkus-rest-context

| https://1000kit.github.io/tkit-quarkus/current/tkit-quarkus/tkit-quarkus-rest-context.html[Link]
| https://github.com/1000kit/tkit-quarkus/blob/2.21.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-rest-context.adoc[Link]
| 2.21.0
| https://github.com/1000kit/tkit-quarkus/blob/2.22.0/docs/modules/tkit-quarkus/pages/includes/tkit-quarkus-rest-context.adoc[Link]
| 2.22.0

| quarkus-arc

Expand Down Expand Up @@ -114,7 +114,7 @@ h| Version
| https://onecx.github.io/docs/onecx-quarkus/current/onecx-quarkus/onecx-core.html[Link]
|
| 0.16.0
| 0.17.0
| quarkus-container-image-docker
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.tkit.onecx</groupId>
<artifactId>onecx-quarkus3-parent</artifactId>
<version>0.46.0</version>
<version>0.47.0</version>
</parent>

<artifactId>onecx-product-store-svc</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public PageResult<Microfrontend> loadByCriteria(ProductSearchCriteria criteria)
var cq = cb.createQuery(Microfrontend.class);
var root = cq.from(Microfrontend.class);

if (criteria.getProductNames() != null && !criteria.getProductNames().isEmpty()) {
if (!criteria.getProductNames().isEmpty()) {
cq.where(root.get(Microfrontend_.PRODUCT_NAME).in(criteria.getProductNames()));
}
return createPageQuery(cq, Page.of(criteria.getPageNumber(), criteria.getPageSize())).getPageResult();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public PageResult<Microservice> loadByCriteria(ProductSearchCriteria criteria) {
var cq = cb.createQuery(Microservice.class);
var root = cq.from(Microservice.class);

if (criteria.getProductNames() != null && !criteria.getProductNames().isEmpty()) {
if (!criteria.getProductNames().isEmpty()) {
cq.where(root.get(Microservice_.PRODUCT_NAME).in(criteria.getProductNames()));
}
return createPageQuery(cq, Page.of(criteria.getPageNumber(), criteria.getPageSize())).getPageResult();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void createMicrofrontend_shouldReturnBadRequest_whenRunningIntoValidationConstra
assertThat(response.getDetail()).isEqualTo("createMicrofrontend.createMicrofrontendRequestDTO.appId: must not be null");
assertThat(invalidParamConstraint.get().getMessage()).isEqualTo("must not be null");
assertThat(invalidParamConstraint.get().getName()).isEqualTo("createMicrofrontend.createMicrofrontendRequestDTO.appId");
assertThat(response.getParams()).isNull();
assertThat(response.getParams()).isEmpty();
}

/**
Expand Down Expand Up @@ -524,7 +524,7 @@ void searchMicrofrontends_shouldReturnBadRequest_whenRunningIntoValidationConstr
assertThat(response.getDetail()).isEqualTo("searchMicrofrontends.microfrontendSearchCriteriaDTO: must not be null");
assertThat(invalidParamConstraint.get().getMessage()).isEqualTo("must not be null");
assertThat(invalidParamConstraint.get().getName()).isEqualTo("searchMicrofrontends.microfrontendSearchCriteriaDTO");
assertThat(response.getParams()).isNull();
assertThat(response.getParams()).isEmpty();
}

/**
Expand Down Expand Up @@ -562,7 +562,7 @@ void updateMicrofrontend_shouldReturnBadRequest_whenRunningIntoValidationConstra
assertThat(response.getDetail()).isEqualTo("updateMicrofrontend.updateMicrofrontendRequestDTO.appId: must not be null");
assertThat(invalidParamConstraint.get().getMessage()).isEqualTo("must not be null");
assertThat(invalidParamConstraint.get().getName()).isEqualTo("updateMicrofrontend.updateMicrofrontendRequestDTO.appId");
assertThat(response.getParams()).isNull();
assertThat(response.getParams()).isEmpty();
}

/**
Expand Down Expand Up @@ -718,7 +718,7 @@ void updateMicrofrontend_shouldReturnBadRequest_whenRunningIntoUniquenessViolati
assertThat(paramConstraint.get().getKey()).isEqualTo("constraint");
assertThat(paramConstraintName.get().getValue()).isEqualTo("microfrontend_module_product_app");
assertThat(paramConstraintName.get().getKey()).isEqualTo("constraintName");
assertThat(response.getInvalidParams()).isNull();
assertThat(response.getInvalidParams()).isEmpty();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void createMicroservice_shouldReturnBadRequest_whenRunningIntoValidationConstrai
assertThat(response.getDetail()).isEqualTo("createMicroservice.createMicroserviceRequestDTO.appId: must not be null");
assertThat(invalidParamConstraint.get().getMessage()).isEqualTo("must not be null");
assertThat(invalidParamConstraint.get().getName()).isEqualTo("createMicroservice.createMicroserviceRequestDTO.appId");
assertThat(response.getParams()).isNull();
assertThat(response.getParams()).isEmpty();
}

/**
Expand Down Expand Up @@ -453,7 +453,7 @@ void searchMicroservices_shouldReturnBadRequest_whenRunningIntoValidationConstra
assertThat(response.getDetail()).isEqualTo("searchMicroservice.microserviceSearchCriteriaDTO: must not be null");
assertThat(invalidParamConstraint.get().getMessage()).isEqualTo("must not be null");
assertThat(invalidParamConstraint.get().getName()).isEqualTo("searchMicroservice.microserviceSearchCriteriaDTO");
assertThat(response.getParams()).isNull();
assertThat(response.getParams()).isEmpty();
}

/**
Expand Down Expand Up @@ -570,7 +570,7 @@ void updateMicroservice_shouldReturnBadRequest_whenRunningIntoUniquenessViolatio
assertThat(paramConstraint.get().getKey()).isEqualTo("constraint");
assertThat(paramConstraintName.get().getValue()).isEqualTo("microservice_app_id");
assertThat(paramConstraintName.get().getKey()).isEqualTo("constraintName");
assertThat(response.getInvalidParams()).isNull();
assertThat(response.getInvalidParams()).isEmpty();
}

/**
Expand Down

0 comments on commit cda9330

Please sign in to comment.