cleanup and unit tests

This commit is contained in:
verboomp
2026-02-03 12:27:56 +01:00
parent e3d7716133
commit c78560ac3a
5 changed files with 16 additions and 33 deletions

View File

@@ -44,11 +44,8 @@ public class CustomerPictureResourceTest extends AbstractRestTest {
assertEquals(3, customerCount());
assertEquals(5, pictureCount());
//String authorization = getBasicHeader();
//LOG.info("authorization: " + authorization);
String path = deploymentURL + PATH;
Request request = Request.Post(path).addHeader("Accept", "application/json; charset=utf-8")
//.addHeader("Authorization", authorization)
.bodyFile(new File(BASE_UPLOAD + "add.json"), ContentType.APPLICATION_JSON);
HttpResponse httpResponse = executeRequest(request);
@@ -101,22 +98,6 @@ public class CustomerPictureResourceTest extends AbstractRestTest {
String text = getResponseText(httpResponse, "doGetAll");
System.out.println(text);
}
/*
@Test
@Order(1)
public void doAddCustomerPictureNoAuth() throws IOException {
LOG.info("doAddCustomerPictureNoAuth");
String path = deploymentURL + PATH;
Request request = Request.Post(path).addHeader("Accept", "application/json; charset=utf-8")
.bodyFile(new File(BASE_UPLOAD + "add.json"), ContentType.APPLICATION_JSON);
HttpResponse httpResponse = executeRequest(request);
int code = httpResponse.getStatusLine().getStatusCode();
assertEquals(401, code);
}
*/
@Test
@Order(2)