Package org.netbeans.modules.exceptions.entity

Examples of org.netbeans.modules.exceptions.entity.Report


    public void testIssue150245() throws Exception {
        MockServices.setServices(LogReporter.class);
        IZInsertion.IssueZillaInsertionFilter<org.netbeans.modules.exceptions.entity.Exceptions> filter = new IZInsertion.AddToCCFilter<org.netbeans.modules.exceptions.entity.Exceptions>();

        org.netbeans.modules.exceptions.entity.Exceptions exc = new org.netbeans.modules.exceptions.entity.Exceptions(1);
        Report report = new Report(1);
        report.setIssueId(10);
        exc.setReportId(report);
        Nbuser user = new Nbuser(1);
        user.setName("jindra");
        exc.setNbuserId(user);
        new IZInsertion(exc, null);
View Full Code Here


        lf.setUploadNumber(0);
        lf.setUserdir("gestures");
        lf.setProductVersionId(pw);
        em.persist(lf);

        Report report = new Report(0);
        em.persist(report);

        Exceptions exc = new Exceptions(1);
        exc.setBuild(70927l);
        exc.setReportId(report);
View Full Code Here

        user.setName("HALLO");
        Slowness slown = new Slowness(100);
        slown.setActionTime(1000L);
        Method m = new Method(30);
        m.setName("unknown");
        Report report = new Report(100);
        slown.setSuspiciousMethod(m);
        slown.setReportId(report);
        slown.setLogfileId(log);
        report.setComponent("user.dir");
        report.setSubcomponent("some.jar");
        slown.setNbuserId(user);
        em.persist(nbv);
        em.persist(pv);
        em.persist(report);
        em.persist(user);
View Full Code Here

        ServletRequest request = page.getRequest();

        EntityManager em = perUtils.createEntityManager();
        em.getTransaction().begin();
        Exceptions exc = new Exceptions(exceptionId);
        Report report = new Report(exceptionId);
        exc.setReportId(report);
        Stacktrace stack = new Stacktrace(Utils.getNextId(Stacktrace.class));
        Logfile logfile = new Logfile(userId, 0);
        ProductVersion pVersion = new ProductVersion(Utils.getNextId(ProductVersion.class));
        pVersion.setProductVersion("pVersion");
View Full Code Here

            m.setName("hallo" + id);
            em.persist(m);
            slown.setSuspiciousMethod(m);
            sbm = slown;
        }
        Report report = new Report(id);
        report.setComponent("test");
        report.setSubcomponent("testSub");
        sbm.setReportId(report);
        em.persist(report);
        em.persist(sbm);
        return sbm;
    }
View Full Code Here

        HttpServletResponse response = new TestHttpServletResponse();
        new IssuezillaRedirect().processRequest(request, response);
        DatabaseTestCase.waitIssuezillaInsertionFinished();
        em = perUtils.createEntityManager();
        em.getTransaction().begin();
        Report rep = em.find(Report.class, 1);
        assertNotNull(rep);
        assertNotNull(rep.getIssueId());
        Issue issue = new BugzillaReporter().getIssue(rep.getIssueId());
        assertNotNull(issue);
        assertTrue(issue.getCcUsers().contains("qarobot@testnetbeans.org"));

        em.getTransaction().commit();
        em.close();
View Full Code Here

        em = perUtils.createEntityManager();
        em.getTransaction().begin();
        m = new Method(1);
        m.setName("bla bla");
        em.persist(m);
        r1 = new Report(1);
        r2 = new Report(2);
        em.persist(r1);
        em.persist(r2);
        linux = new Operatingsystem(1);
        linux.setName("Linux");
        em.persist(linux);
View Full Code Here

    public JstlFunctionsTest(String name) {
        super(name);
    }

    private Submit createSubmit(Integer issueId, int reportId, int submitId){
        Report r1 = new Report(reportId);
        r1.setIssueId(issueId);
        Submit s1 = new Exceptions(submitId);
        s1.setReportId(r1);
        return s1;
    }
View Full Code Here

        em.persist(user);
        guest = new Nbuser(2);
        guest.setName("GUEST");
        em.persist(guest);

        report = new Report(1);
        em.persist(report);

        em.getTransaction().commit();

    }
View Full Code Here

    public ExceptionsDataTest(String name) {
        super(name);
    }

    public void testPreparePageContext() {
        Report report = new Report(1);
        PersistenceUtils.getInstance().persist(report);
        ExceptionsData excData = new ExceptionsData();
        PageContext pageContext = LogsManagerTest.createPageContext();
        ServletRequest request = pageContext.getRequest();
        LogRecord thrownLog = new LogRecord(Level.INFO, "THROWN");
View Full Code Here

TOP

Related Classes of org.netbeans.modules.exceptions.entity.Report

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.