Skip to content

Commit

Permalink
Flip assertion order to the correct orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
cdr-chakotay committed Nov 25, 2024
1 parent 3f0cda4 commit c2d3fc5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ public void onAssemblyResultFinished(JSONArray result) {
mockServerClient.verify(HttpRequest.request()
.withPath("/resumable/files").withMethod("POST"), VerificationTimes.atLeast(3));

Assertions.assertEquals(response.json().get("assembly_id"), "02ce6150ea2811e6a35a8d1e061a5b71");
Assertions.assertEquals(response.json().get("ok"), "ASSEMBLY_UPLOADING");
Assertions.assertEquals("02ce6150ea2811e6a35a8d1e061a5b71", response.json().get("assembly_id"));
Assertions.assertEquals("ASSEMBLY_UPLOADING", response.json().get("ok"));
}

/**
Expand Down Expand Up @@ -295,7 +295,7 @@ public void abortUploads() throws LocalOperationException, RequestException, IOE
Mockito.verify(spyListener).onError(exceptionArgumentCaptor.capture());
String errorMessage = "Uploads aborted";
String exceptionMessage = exceptionArgumentCaptor.getValue().getMessage();
Assertions.assertEquals(exceptionMessage, errorMessage);
Assertions.assertEquals(errorMessage, exceptionMessage);
}

/**
Expand All @@ -309,7 +309,7 @@ public void pauseUploads() throws IOException, LocalOperationException, RequestE


String uploadSize = "" + new File("LICENSE").length();
Assertions.assertEquals(uploadSize, "1077"); // verify, that test sizes can work
Assertions.assertEquals("1077", uploadSize); // verify, that test sizes can work
String uploadChunkSize = "1";
assembly = new MockTusAssemblyMultiThreading(transloadit);
assembly.wipeAssemblyID();
Expand Down

0 comments on commit c2d3fc5

Please sign in to comment.