Skip to content

Commit

Permalink
refacto connectors TUs
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Boileau committed Jan 19, 2025
1 parent 719adca commit 740231c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ protected void resetEngine() {
org.restlet.engine.Engine.register();
}

public class TestCase {
public static class TestCase {
final HttpServer httpServer;
final HttpClient httpClient;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ private void sendPut(int testIndex, final String uri, final int size) throws Exc
}

assertNotNull(response.getEntity(), String.format("test #%d - size %d: response's entity is null", testIndex, size));
String responseEntity = response.getEntity().getText();
final String responseEntity = response.getEntity().getText();
assertNotNull(responseEntity, String.format("test #%d - size %d: response's entity content is null", testIndex, size));
assertEquals(size, responseEntity.length(), String.format("test #%d - size %d: length of response's entity is wrong", testIndex, size));
String expectedResponseEntity = createChunkedRepresentation(size).getText();
final String expectedResponseEntity = createChunkedRepresentation(size).getText();
assertEquals(expectedResponseEntity, responseEntity, String.format("test #%d - size %d: response's entity is wrong", testIndex, size));
} finally {
response.release();
Expand Down

0 comments on commit 740231c

Please sign in to comment.