package com.natpryce.worktorule.issues.github;

import org.junit.Test;

import java.io.IOException;

import static org.junit.Assert.assertFalse;

public class GitHubIssuesTest {
    GitHubIssues issues = new GitHubIssues("npryce", "worktorule");

    @Test
    public void closedIssue() throws IOException {
        assertFalse(issues.isOpen("1"));
    }
}
package com.natpryce.worktorule.issues.github;

import org.junit.Test;

import java.io.IOException;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

public class GitHubIssuesTest {
    GitHubIssues issues = new GitHubIssues("npryce", "worktorule");

    @Test
    public void closedIssue() throws IOException {
        assertFalse(issues.isOpen("1"));
    }

    @Test
    public void openIssue() throws IOException {
        assertTrue(issues.isOpen("2"));
    }
}

Test for open github issue