Package org.jboss.seam.wiki.connectors.jira

Examples of org.jboss.seam.wiki.connectors.jira.JiraDAO


    @Test
    public void cacheIssueList() throws Exception {

        new NonFacesRequest() {
            protected void renderResponse() throws Exception {
                JiraDAO dao = (JiraDAO)getInstance(JiraDAO.class);

                List<JiraIssue> issues = dao.getJiraIssues("foo", "bar", "baz", "hum", 3);
                assert issues.size() == 0; // Asynchronous cache needs to do its job first

                Thread.sleep(1000);

                issues = dao.getJiraIssues("foo", "bar", "baz", "hum", 3);
                assert issues.size() == 0; // Still nothing

                Thread.sleep(3000);

                issues = dao.getJiraIssues("foo", "bar", "baz", "hum", 3);
                assert issues.size() == 3; // Now we have it
            }
        }.run();
    }
View Full Code Here

TOP

Related Classes of org.jboss.seam.wiki.connectors.jira.JiraDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.