Skip to content

Commit 7f9a301

Browse files
change REST base path
1 parent c01b2a9 commit 7f9a301

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/java/io/github/project/openubl/xsender/basic/resources/basic/DefaultCurrentUserResourceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void createCompany() throws JsonProcessingException {
7777
.body(body)
7878
.header("Content-Type", "application/json")
7979
.when()
80-
.post("/user/companies")
80+
.post("/api/user/companies")
8181
.then()
8282
.statusCode(200)
8383
.body("name", is(company.getName()));
@@ -137,7 +137,7 @@ public void getCompanies() {
137137
given()
138138
.header("Content-Type", "application/json")
139139
.when()
140-
.get("/user/companies")
140+
.get("/api/user/companies")
141141
.then()
142142
.statusCode(200)
143143
.body("meta.offset", is(0),

src/test/java/io/github/project/openubl/xsender/basic/resources/keycloak/KeycloakCurrentUserResourceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void createCompany() throws JsonProcessingException {
8585
.body(body)
8686
.header("Content-Type", "application/json")
8787
.when()
88-
.post("/user/companies")
88+
.post("/api/user/companies")
8989
.then()
9090
.statusCode(200)
9191
.body("name", is(company.getName()));
@@ -145,7 +145,7 @@ public void getCompanies() {
145145
given().auth().oauth2(getAccessToken("alice"))
146146
.header("Content-Type", "application/json")
147147
.when()
148-
.get("/user/companies")
148+
.get("/api/user/companies")
149149
.then()
150150
.statusCode(200)
151151
.body("meta.offset", is(0),

0 commit comments

Comments
 (0)