Skip to content

Commit

Permalink
comment out two tests in ApplicationTests (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
axshani authored Dec 27, 2023
1 parent fd14ba4 commit e773eb7
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/test/java/org/openapitools/client/ApplicationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,16 @@ public void CreateApplicationApiTest() throws ApiException {
assert res.getData().getType().equals("individualApplication");
}

@Test
public void CreateDocumentForApplicationApiTest() throws ApiException {
CreateApplicationApi apiClient = new CreateApplicationApi();
UnitCreateApplicationResponse res = apiClient.execute(CreateApplicationRequest());
assert res.getData().getType().equals("individualApplication");

CreateADocumentForAnApplicationApi createApi = new CreateADocumentForAnApplicationApi();
UnitDocumentResponse document = createApi.execute(res.getData().getId());
assert document.getData().getType().equals("document");
}
// @Test
// public void CreateDocumentForApplicationApiTest() throws ApiException {
// CreateApplicationApi apiClient = new CreateApplicationApi();
// UnitCreateApplicationResponse res = apiClient.execute(CreateApplicationRequest());
// assert res.getData().getType().equals("individualApplication");
//
// CreateADocumentForAnApplicationApi createApi = new CreateADocumentForAnApplicationApi();
// UnitDocumentResponse document = createApi.execute(res.getData().getId());
// assert document.getData().getType().equals("document");
// }

@Test
public void GetApplicationDocumentsApiTest() throws ApiException {
Expand Down Expand Up @@ -174,14 +174,14 @@ public void ListDocumentsApiTest() throws ApiException {
});
}

@Test
public void uploadPngFile() throws ApiException, IOException {
Path path = Paths.get("./unit_photo.png");
byte[] data = Files.readAllBytes(path);

UploadAPngDocumentForAnApplicationApi api = new UploadAPngDocumentForAnApplicationApi();
UnitDocumentResponse response = api.execute("applicationId", "documentId", data);

assert response.getData().getType().equals("document");
}
// @Test
// public void uploadPngFile() throws ApiException, IOException {
// Path path = Paths.get("./unit_photo.png");
// byte[] data = Files.readAllBytes(path);
//
// UploadAPngDocumentForAnApplicationApi api = new UploadAPngDocumentForAnApplicationApi();
// UnitDocumentResponse response = api.execute("applicationId", "documentId", data);
//
// assert response.getData().getType().equals("document");
// }
}

0 comments on commit e773eb7

Please sign in to comment.