Package org.netbeans.server.uihandler.api

Examples of org.netbeans.server.uihandler.api.Issue


    public static boolean issueIsFixed(Integer issueId) {
        if (issueId == null){
            return false;
        }
        Issue issue = BugReporterFactory.getDefaultReporter().getIssue(issueId);
        if (issue == null){
            return false;
        }
        return issue.isFixed();
    }
View Full Code Here


    public static boolean exceptionIsOpen(Exceptions exc) {
        Parameters.notNull("exceptions", exc);
        if (!exc.getReportId().isInIssuezilla()){
            return true;
        }
        Issue issue = BugReporterFactory.getDefaultReporter().getIssue(exc.getReportId().getIssueId());
        return issue.isOpen();
    }
View Full Code Here

        em.persist(exc3);
        em.getTransaction().commit();
        em.close();

        BugzillaReporter br = BugReporterFactory.getDefaultReporter();
        Issue iss = br.getIssue(ISSUE_ID);
        iss.setReporterSubmitId(2);

        SynchronizeIssues instance = new SynchronizeIssues();
        instance.mergeReportsWithOneIssueId();

        em = perUtils.createEntityManager();
View Full Code Here

    }

    @Test
    public void testReportIssue() throws IOException {
        Submit sbm = reportSubmit(1);
        Issue issue = bzr.getIssue(issueid);
        assertEquals(new Integer(1), issue.getReporterSubmitId());
        assertEquals("summary", issue.getShortDesc());
        assertNotNull(issue.getKeywords());
        assertTrue(issue.getStatusWhiteboard().contains("EXCEPTIONS_REPORT"));
        if (sbm instanceof Slowness) {
            assertTrue(issue.getKeywords().contains("PERFORMANCE"));
            assertTrue(issue.getStatusWhiteboard().contains("perf-profileme"));
        }
        assertEquals("P3", issue.getPriority());

        //testAdditionalComment
        bzr.createAttachment(sbm, null);
    }
View Full Code Here

        createEM();
        sbm = em.find(Submit.class, 1);
        Integer issId = sbm.getReportId().getIssueId();
        assertNotNull(issId);
        Issue issue = bzr.getIssue(issId);
        assertNotNull(issue);
        assertFalse(issue.getCcUsers().isEmpty());
        assertEquals(3, issue.getCcUsers().size());
        assertTrue(issue.getCcUsers().contains(SOME_EXISTING_USERS[1] + "@testnetbeans.org"));
        assertTrue(issue.getCcUsers().contains(SOME_EXISTING_USERS[2] + "@testnetbeans.org"));
        assertTrue(issue.getCcUsers().contains(SOME_EXISTING_USERS[3] + "@testnetbeans.org"));
    }
View Full Code Here

    @Test
    public void testSetPriority() {
        assertNotNull(issueid);
        assertNotNull(bzr);
        bzr.setIssuePriority(issueid, "P1");
        Issue issue = bzr.getIssue(issueid);
        assertEquals(new Integer(1), issue.getReporterSubmitId());
        assertEquals("summary", issue.getShortDesc());
        assertEquals("P1", issue.getPriority());
    }
View Full Code Here

    }

    @Test
    public void testAddToCCList() {
        bzr.addToCCList(issueid, ccUser, "vsdsvsds");
        Issue issue = bzr.getIssue(issueid);
        assertEquals(new Integer(1), issue.getReporterSubmitId());
        assertEquals("summary", issue.getShortDesc());
        assertTrue(issue.getCcUsers().contains(ReporterUtils.userNameToEMail(ccUser)));
    }
View Full Code Here

            public void close() throws SecurityException {
            }
        });
        BugzillaReporterImpl bri = new BugzillaReporterImpl();
        bri.resolveIssue(issueid, "FIXED", null, null);
        Issue issue = bzr.getIssue(issueid);
        assertEquals(new Integer(1), issue.getReporterSubmitId());
        assertEquals("summary", issue.getShortDesc());
        assertTrue(issue.getCcUsers().contains(ReporterUtils.userNameToEMail(ccUser)));
        assertFalse(Integer.toString(recs.size()), recs.isEmpty());
        assertTrue(recs.get(0).getMessage(), recs.get(0).getMessage().contains("was resolved"));
        assertEquals("RESOLVED", issue.getIssueStatus());
        assertEquals("FIXED", issue.getResolution());
    }
View Full Code Here

    }

    @Test
    public void testReopenIssue() {
        bzr.reopenIssue(issueid, "Reopenning");
        Issue issue = bzr.getIssue(issueid);
        assertEquals(new Integer(1), issue.getReporterSubmitId());
        assertEquals("summary", issue.getShortDesc());
        assertTrue(issue.getCcUsers().contains(ReporterUtils.userNameToEMail(ccUser)));
        assertEquals("REOPENED", issue.getIssueStatus());
    }
View Full Code Here

        assertEquals(2, filtered.size());
    }

    @Test
    public void testDuplicateOf() throws IOException{
        Issue issue = BugReporterFactory.getDefaultReporter().getIssue(12345);
        assertNotNull(issue);
        assertNotNull(issue.getDuplicateOf());
        assertEquals(11533, issue.getDuplicateOf().intValue());
    }
View Full Code Here

TOP

Related Classes of org.netbeans.server.uihandler.api.Issue

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.