Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/get requests fix app tests #10

Merged
merged 7 commits into from
Oct 28, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
addActorPass: fix test case
  • Loading branch information
Amarygdala committed Oct 28, 2022
commit 3447b124fcefc29e96fb64313f8e9ff7a13f277e
2 changes: 1 addition & 1 deletion src/test/java/ca/utoronto/utm/mcs/AppTest.java
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ public void exampleTest() {
public void addActorPass() throws JSONException, IOException, InterruptedException {
JSONObject confirmReq = new JSONObject()
.put("name", "TestActor")
.put("actorId", "");
.put("actorId", "123123");
HttpResponse<String> confirmRes = sendRequest("/api/v1/addActor", "PUT", confirmReq.toString());
sendRequest("/api/v1/deleteActor", "DELETE", confirmReq.toString());
assertEquals(HttpURLConnection.HTTP_OK, confirmRes.statusCode());