Skip to content

Commit 90ae6e3

Browse files
committed
Post returns internal server error
1 parent faa12f6 commit 90ae6e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/omg/sysml/api/ProjectApiTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,17 +166,17 @@ public void postProjectTest() {
166166
body.setId(id);
167167
body.setDescription(description);
168168
body.setName(name);
169-
Project response;
169+
170170
try {
171-
response = api.postProject(body);
171+
Project response = api.postProject(body);
172172
System.out.println(response);
173173
assertEquals(id.toString(), response.getId().toString());
174174
assertEquals(description, response.getDescription());
175175
assertEquals(name, response.getName());
176176
assertEquals(AtTypeEnum.PROJECT, response.getAtType());
177177
} catch (ApiException e) {
178178
e.printStackTrace();
179-
fail("getProjectByIdTest_404 failed: not expecting ApiException");
179+
fail("postProjectTest failed: not expecting ApiException");
180180
}
181181
}
182182

0 commit comments

Comments
 (0)