This commit is contained in:
+3
-3
@@ -2,14 +2,14 @@ package com.drinkool.services;
|
||||
|
||||
import com.drinkool.Jwt;
|
||||
import com.drinkool.Url;
|
||||
import com.drinkool.entities.CustomerEntity;
|
||||
import com.drinkool.models.UserModel;
|
||||
import jakarta.transaction.Transactional;
|
||||
import jakarta.ws.rs.*;
|
||||
import jakarta.ws.rs.core.Response;
|
||||
import java.util.UUID;
|
||||
|
||||
@Path("")
|
||||
public class CustomerService {
|
||||
public class UserService {
|
||||
|
||||
@POST
|
||||
@Path(Url.Me)
|
||||
@@ -19,6 +19,6 @@ public class CustomerService {
|
||||
.entity("InvalidUserId")
|
||||
.build();
|
||||
|
||||
return Response.ok(CustomerEntity.find("id", id).firstResult()).build();
|
||||
return Response.ok(UserModel.find("id", id).firstResult()).build();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -12,7 +12,7 @@ import io.restassured.http.ContentType;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@QuarkusTest
|
||||
public class CustomberServiceTest {
|
||||
public class UserServiceTest {
|
||||
|
||||
@Test
|
||||
public void testMeEndpointWithHeader() {
|
||||
Reference in New Issue
Block a user