Skip to content

Commit

Permalink
Replaced jakarta with javax
Browse files Browse the repository at this point in the history
  • Loading branch information
hbelmiro committed Aug 15, 2023
1 parent 8a26ccd commit 7f20c9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions deployment/src/main/resources/templates/api.qute
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public interface {classname} {
public io.smallrye.mutiny.Uni<javax.ws.rs.core.Response> {op.nickname}(
{#else}
{#if op.returnType == "void"}
public io.smallrye.mutiny.Uni<jakarta.ws.rs.core.Response> {op.nickname}(
public io.smallrye.mutiny.Uni<javax.ws.rs.core.Response> {op.nickname}(
{#else}
public {#if op.returnType}io.smallrye.mutiny.Uni<{op.returnType}>{#else}io.smallrye.mutiny.Uni<javax.ws.rs.core.Response>{/if} {op.nickname}(
{/if}
Expand All @@ -86,9 +86,9 @@ public interface {classname} {
public javax.ws.rs.core.Response {op.nickname}(
{#else}
{#if op.returnType == "void"}
public jakarta.ws.rs.core.Response {op.nickname}(
public javax.ws.rs.core.Response {op.nickname}(
{#else}
public {#if op.returnType}{op.returnType}{#else}jakarta.ws.rs.core.Response{/if} {op.nickname}(
public {#if op.returnType}{op.returnType}{#else}javax.ws.rs.core.Response{/if} {op.nickname}(
{/if}
{/if}
{/if}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,20 @@ void testMutinyReturnResponseFalseString() throws NoSuchMethodException {
void testMutinyReturnResponseTrueString() throws NoSuchMethodException {
var method = MutinyReturnResponseTrueStringApi.class.getMethod("hello");
assertThat(method.getGenericReturnType().getTypeName())
.isEqualTo("io.smallrye.mutiny.Uni<jakarta.ws.rs.core.Response>");
.isEqualTo("io.smallrye.mutiny.Uni<javax.ws.rs.core.Response>");
}

@Test
void testMutinyReturnResponseFalseVoid() throws NoSuchMethodException {
var method = MutinyReturnResponseFalseVoidApi.class.getMethod("hello");
assertThat(method.getGenericReturnType().getTypeName())
.isEqualTo("io.smallrye.mutiny.Uni<jakarta.ws.rs.core.Response>");
.isEqualTo("io.smallrye.mutiny.Uni<javax.ws.rs.core.Response>");
}

@Test
void testMutinyReturnResponseTrueVoid() throws NoSuchMethodException {
var method = MutinyReturnResponseTrueVoidApi.class.getMethod("hello");
assertThat(method.getGenericReturnType().getTypeName())
.isEqualTo("io.smallrye.mutiny.Uni<jakarta.ws.rs.core.Response>");
.isEqualTo("io.smallrye.mutiny.Uni<javax.ws.rs.core.Response>");
}
}

0 comments on commit 7f20c9b

Please sign in to comment.