From 00a17074a9df8264ed6e38cca0e655b489d57fb8 Mon Sep 17 00:00:00 2001 From: ruromero Date: Wed, 25 Jan 2023 23:38:11 +0100 Subject: [PATCH] [#40] Rename missing packages Signed-off-by: ruromero --- .../cloudeventsplayer/model/Message.java | 2 +- .../cloudeventsplayer/model/PlayerMode.java | 2 +- .../resources/MessageReceiverResource.java | 5 ++--- .../resources/MessageResource.java | 8 +++++--- .../resources/MessagesSocket.java | 2 +- .../cloudeventsplayer/service/BrokerService.java | 2 +- .../service/MessageService.java | 10 +++++----- .../cloudeventsplayer/LocalModeProfile.java | 4 ++-- .../resources/MessageResourceTest.java | 16 ++++++++-------- .../resources/NativeMessageResourceIT.java | 5 +++-- 10 files changed, 29 insertions(+), 27 deletions(-) diff --git a/src/main/java/com/github/ruromero/cloudeventsplayer/model/Message.java b/src/main/java/com/github/ruromero/cloudeventsplayer/model/Message.java index fd69642..907d65d 100644 --- a/src/main/java/com/github/ruromero/cloudeventsplayer/model/Message.java +++ b/src/main/java/com/github/ruromero/cloudeventsplayer/model/Message.java @@ -1,4 +1,4 @@ -package com.redhat.syseng.tools.cloudevents.model; +package com.github.ruromero.cloudeventsplayer.model; import java.net.URI; import java.time.ZonedDateTime; diff --git a/src/main/java/com/github/ruromero/cloudeventsplayer/model/PlayerMode.java b/src/main/java/com/github/ruromero/cloudeventsplayer/model/PlayerMode.java index 3fabc95..d73f2b2 100644 --- a/src/main/java/com/github/ruromero/cloudeventsplayer/model/PlayerMode.java +++ b/src/main/java/com/github/ruromero/cloudeventsplayer/model/PlayerMode.java @@ -1,4 +1,4 @@ -package com.redhat.syseng.tools.cloudevents.model; +package com.github.ruromero.cloudeventsplayer.model; public enum PlayerMode { LOCAL, diff --git a/src/main/java/com/github/ruromero/cloudeventsplayer/resources/MessageReceiverResource.java b/src/main/java/com/github/ruromero/cloudeventsplayer/resources/MessageReceiverResource.java index 3096083..c04a550 100644 --- a/src/main/java/com/github/ruromero/cloudeventsplayer/resources/MessageReceiverResource.java +++ b/src/main/java/com/github/ruromero/cloudeventsplayer/resources/MessageReceiverResource.java @@ -1,8 +1,7 @@ -package com.redhat.syseng.tools.cloudevents.resources; +package com.github.ruromero.cloudeventsplayer.resources; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; import javax.validation.ConstraintViolation; import javax.validation.Validator; @@ -20,7 +19,7 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; -import com.redhat.syseng.tools.cloudevents.service.MessageService; +import com.github.ruromero.cloudeventsplayer.service.MessageService; import io.cloudevents.CloudEvent; import io.cloudevents.jackson.JsonFormat; diff --git a/src/main/java/com/github/ruromero/cloudeventsplayer/resources/MessageResource.java b/src/main/java/com/github/ruromero/cloudeventsplayer/resources/MessageResource.java index 4d1075e..2f79fc1 100644 --- a/src/main/java/com/github/ruromero/cloudeventsplayer/resources/MessageResource.java +++ b/src/main/java/com/github/ruromero/cloudeventsplayer/resources/MessageResource.java @@ -1,4 +1,4 @@ -package com.redhat.syseng.tools.cloudevents.resources; +package com.github.ruromero.cloudeventsplayer.resources; import java.util.List; import java.util.Set; @@ -25,15 +25,17 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; -import com.redhat.syseng.tools.cloudevents.model.Message; -import com.redhat.syseng.tools.cloudevents.service.MessageService; +import com.github.ruromero.cloudeventsplayer.model.Message; +import com.github.ruromero.cloudeventsplayer.service.MessageService; import io.cloudevents.CloudEvent; import io.cloudevents.jackson.JsonFormat; +import io.quarkus.runtime.annotations.RegisterForReflection; @Path("/messages") @Consumes({MediaType.APPLICATION_JSON, JsonFormat.CONTENT_TYPE}) @Produces(MediaType.APPLICATION_JSON) +@RegisterForReflection public class MessageResource { private static final Logger LOGGER = LoggerFactory.getLogger(MessageResource.class); diff --git a/src/main/java/com/github/ruromero/cloudeventsplayer/resources/MessagesSocket.java b/src/main/java/com/github/ruromero/cloudeventsplayer/resources/MessagesSocket.java index 7fa9644..629b2e1 100644 --- a/src/main/java/com/github/ruromero/cloudeventsplayer/resources/MessagesSocket.java +++ b/src/main/java/com/github/ruromero/cloudeventsplayer/resources/MessagesSocket.java @@ -1,4 +1,4 @@ -package com.redhat.syseng.tools.cloudevents.resources; +package com.github.ruromero.cloudeventsplayer.resources; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; diff --git a/src/main/java/com/github/ruromero/cloudeventsplayer/service/BrokerService.java b/src/main/java/com/github/ruromero/cloudeventsplayer/service/BrokerService.java index 403687f..967b24a 100644 --- a/src/main/java/com/github/ruromero/cloudeventsplayer/service/BrokerService.java +++ b/src/main/java/com/github/ruromero/cloudeventsplayer/service/BrokerService.java @@ -1,4 +1,4 @@ -package com.redhat.syseng.tools.cloudevents.service; +package com.github.ruromero.cloudeventsplayer.service; import javax.ws.rs.Consumes; import javax.ws.rs.POST; diff --git a/src/main/java/com/github/ruromero/cloudeventsplayer/service/MessageService.java b/src/main/java/com/github/ruromero/cloudeventsplayer/service/MessageService.java index b59ae5f..3954aff 100644 --- a/src/main/java/com/github/ruromero/cloudeventsplayer/service/MessageService.java +++ b/src/main/java/com/github/ruromero/cloudeventsplayer/service/MessageService.java @@ -1,4 +1,4 @@ -package com.redhat.syseng.tools.cloudevents.service; +package com.github.ruromero.cloudeventsplayer.service; import java.net.URI; import java.util.ArrayList; @@ -19,10 +19,10 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.redhat.syseng.tools.cloudevents.model.Message; -import com.redhat.syseng.tools.cloudevents.model.Message.MessageType; -import com.redhat.syseng.tools.cloudevents.model.PlayerMode; -import com.redhat.syseng.tools.cloudevents.resources.MessagesSocket; +import com.github.ruromero.cloudeventsplayer.model.Message; +import com.github.ruromero.cloudeventsplayer.model.Message.MessageType; +import com.github.ruromero.cloudeventsplayer.model.PlayerMode; +import com.github.ruromero.cloudeventsplayer.resources.MessagesSocket; import io.cloudevents.CloudEvent; import io.fabric8.kubernetes.client.KubernetesClient; diff --git a/src/test/java/com/github/ruromero/cloudeventsplayer/LocalModeProfile.java b/src/test/java/com/github/ruromero/cloudeventsplayer/LocalModeProfile.java index 9fead03..b4be177 100644 --- a/src/test/java/com/github/ruromero/cloudeventsplayer/LocalModeProfile.java +++ b/src/test/java/com/github/ruromero/cloudeventsplayer/LocalModeProfile.java @@ -1,8 +1,8 @@ -package com.redhat.syseng.tools.cloudevents; +package com.github.ruromero.cloudeventsplayer; import java.util.Map; -import com.redhat.syseng.tools.cloudevents.model.PlayerMode; +import com.github.ruromero.cloudeventsplayer.model.PlayerMode; import io.quarkus.test.junit.QuarkusTestProfile; diff --git a/src/test/java/com/github/ruromero/cloudeventsplayer/resources/MessageResourceTest.java b/src/test/java/com/github/ruromero/cloudeventsplayer/resources/MessageResourceTest.java index 9f68896..0f5e87d 100644 --- a/src/test/java/com/github/ruromero/cloudeventsplayer/resources/MessageResourceTest.java +++ b/src/test/java/com/github/ruromero/cloudeventsplayer/resources/MessageResourceTest.java @@ -1,4 +1,7 @@ -package com.redhat.syseng.tools.cloudevents.resources; +package com.github.ruromero.cloudeventsplayer.resources; + +import static io.restassured.RestAssured.given; +import static org.junit.jupiter.api.Assertions.assertEquals; import java.util.List; import java.util.UUID; @@ -7,17 +10,14 @@ import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; -import io.quarkus.test.junit.QuarkusTest; -import io.quarkus.test.junit.TestProfile; -import io.restassured.RestAssured; - import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.redhat.syseng.tools.cloudevents.LocalModeProfile; +import com.github.ruromero.cloudeventsplayer.LocalModeProfile; -import static io.restassured.RestAssured.given; -import static org.junit.jupiter.api.Assertions.assertEquals; +import io.quarkus.test.junit.QuarkusTest; +import io.quarkus.test.junit.TestProfile; +import io.restassured.RestAssured; @QuarkusTest @TestProfile(LocalModeProfile.class) diff --git a/src/test/java/com/github/ruromero/cloudeventsplayer/resources/NativeMessageResourceIT.java b/src/test/java/com/github/ruromero/cloudeventsplayer/resources/NativeMessageResourceIT.java index 28d9fd4..6df60fe 100644 --- a/src/test/java/com/github/ruromero/cloudeventsplayer/resources/NativeMessageResourceIT.java +++ b/src/test/java/com/github/ruromero/cloudeventsplayer/resources/NativeMessageResourceIT.java @@ -1,6 +1,7 @@ -package com.redhat.syseng.tools.cloudevents.resources; +package com.github.ruromero.cloudeventsplayer.resources; + +import com.github.ruromero.cloudeventsplayer.LocalModeProfile; -import com.redhat.syseng.tools.cloudevents.LocalModeProfile; import io.quarkus.test.junit.QuarkusIntegrationTest; import io.quarkus.test.junit.TestProfile;