File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
src/test/java/org/kohsuke/github Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ public class GHCodeScanningAlertInstanceTest extends AbstractGitHubWireMockTest
2121 private static final String REPO_NAME = "Pixi" ;
2222 private GHCodeScanningAlert alert ;
2323
24+ /**
25+ * Gets the first dismissed alert from the mock repo
26+ *
27+ * @throws Exception
28+ * the exception
29+ */
2430 @ Before
2531 public void setUp () throws Exception {
2632 GHRepository repo = gitHub .getRepository (GITHUB_API_TEST_ORG + "/" + REPO_NAME );
@@ -35,6 +41,12 @@ private GHCodeScanningAlert getAlertFromRepo(GHRepository repo) {
3541 return dismissedAlerts .get (0 );
3642 }
3743
44+ /**
45+ * Test list alert instances payload
46+ *
47+ * @throws IOException
48+ * Signals that an I/O exception has occurred.
49+ */
3850 @ Test
3951 public void testListAlertInstances () throws IOException {
4052 // Arrange
Original file line number Diff line number Diff line change @@ -23,11 +23,20 @@ public class GHCodeScanningAlertTest extends AbstractGitHubWireMockTest {
2323 private static final String REPO_NAME = "Pixi" ;
2424 private GHRepository repo ;
2525
26+ /**
27+ * Gets the mock repo
28+ *
29+ * @throws Exception
30+ * the exception
31+ */
2632 @ Before
2733 public void setUp () throws Exception {
2834 repo = gitHub .getRepository (GITHUB_API_TEST_ORG + "/" + REPO_NAME );
2935 }
3036
37+ /**
38+ * Test list code scanning alert payload
39+ */
3140 @ Test
3241 public void testListCodeScanningAlerts () {
3342 // Arrange
@@ -66,6 +75,12 @@ public void testListCodeScanningAlerts() {
6675 assertThat (openAlert .getState (), is (GHCodeScanningAlertState .OPEN ));
6776 }
6877
78+ /**
79+ * Test get code scanning alert payload
80+ *
81+ * @throws IOException
82+ * Signals that an I/O exception has occurred.
83+ */
6984 @ Test
7085 public void testGetCodeScanningAlert () throws IOException {
7186 // Arrange
You can’t perform that action at this time.
0 commit comments