-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnalysesCommentsApiTest.java
More file actions
98 lines (87 loc) · 2.85 KB
/
AnalysesCommentsApiTest.java
File metadata and controls
98 lines (87 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
* RevEng.AI API
* RevEng.AI is Similarity Search Engine for executable binaries
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package ai.reveng.api;
import ai.reveng.invoker.ApiException;
import ai.reveng.model.BaseResponse;
import ai.reveng.model.BaseResponseBool;
import ai.reveng.model.BaseResponseCommentResponse;
import ai.reveng.model.BaseResponseListCommentResponse;
import ai.reveng.model.CommentBase;
import ai.reveng.model.CommentUpdateRequest;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* API tests for AnalysesCommentsApi
*/
@Disabled
public class AnalysesCommentsApiTest {
private final AnalysesCommentsApi api = new AnalysesCommentsApi();
/**
* Create a comment for this analysis
*
* Creates a comment associated with a specified analysis).
*
* @throws ApiException if the Api call fails
*/
@Test
public void createAnalysisCommentTest() throws ApiException {
Integer analysisId = null;
CommentBase commentBase = null;
BaseResponseCommentResponse response = api.createAnalysisComment(analysisId, commentBase);
// TODO: test validations
}
/**
* Delete a comment
*
* Deletes an existing comment. Users can only delete their own comments.
*
* @throws ApiException if the Api call fails
*/
@Test
public void deleteAnalysisCommentTest() throws ApiException {
Integer commentId = null;
Integer analysisId = null;
BaseResponseBool response = api.deleteAnalysisComment(commentId, analysisId);
// TODO: test validations
}
/**
* Get comments for this analysis
*
* Retrieves all comments created for a specific analysis. Only returns comments for resources the requesting user has access to.
*
* @throws ApiException if the Api call fails
*/
@Test
public void getAnalysisCommentsTest() throws ApiException {
Integer analysisId = null;
BaseResponseListCommentResponse response = api.getAnalysisComments(analysisId);
// TODO: test validations
}
/**
* Update a comment
*
* Updates the content of an existing comment. Users can only update their own comments.
*
* @throws ApiException if the Api call fails
*/
@Test
public void updateAnalysisCommentTest() throws ApiException {
Integer commentId = null;
Integer analysisId = null;
CommentUpdateRequest commentUpdateRequest = null;
BaseResponseCommentResponse response = api.updateAnalysisComment(commentId, analysisId, commentUpdateRequest);
// TODO: test validations
}
}