Package com.google.testing.testify.risk.frontend.model

Examples of com.google.testing.testify.risk.frontend.model.Bug


    capabilities.add(capa4);

    // Bugs.
    LOG.info("Creating bugs.");
    List<Bug> bugs = Lists.newArrayList();
    Bug bug1 = new Bug();
    bug1.setExternalId(42L);
    bug1.setTitle("SSL certificate error in some browsers.");
    bug1.addBugGroup("security");
    bug1.addBugGroup("checkout");
    bug1.setParentProjectId(projectId);
    bug1.setPriority(1L);
    bug1.setSeverity(2L);
    bug1.setState("Open");
    bug1.setTargetCapabilityId(capabilities.get(0).getCapabilityId());
    bug1.setStateDate(System.currentTimeMillis() - (84000000 * 4));
    bug1.setBugUrl("http://example/42");
    dataService.addBug(bug1);
    bugs.add(bug1);

    Bug bug2 = new Bug();
    bug2.setExternalId(123L);
    bug2.setTitle("+1 button is not showing on products with prime number IDs.");
    bug2.addBugGroup("social");
    bug2.addBugGroup("browsing");
    bug2.setParentProjectId(projectId);
    bug2.setPriority(1L);
    bug2.setSeverity(2L);
    bug2.setState("Open");
    bug2.setTargetCapabilityId(capabilities.get(0).getCapabilityId());
    bug2.setStateDate(System.currentTimeMillis() - (84000000 * 2));
    bug2.setBugUrl("http://example/123");
    dataService.addBug(bug2);
    bugs.add(bug2);

    Bug bug3 = new Bug();
    bug3.setExternalId(122L);
    bug3.setTitle("Search results always return developer's favorite item");
    bug3.addBugGroup("search");
    bug3.addBugGroup("accuracy");
    bug3.setParentProjectId(projectId);
    bug3.setPriority(4L);
    bug3.setSeverity(4L);
    bug3.setTargetCapabilityId(capabilities.get(0).getCapabilityId());
    bug3.setState("Closed");
    bug3.setStateDate(System.currentTimeMillis() - (84000000 * 10));
    bug3.setBugUrl("http://example/34121");
    dataService.addBug(bug3);
    bugs.add(bug3);

    // Checkins.
    LOG.info("Creating checkins.");
View Full Code Here


      // TODO(jimr): add impersonation of user in string user.
      JSONObject json = new JSONObject(jsonString);
      JSONObject item;
      if (json.has("bug")) {
        item = json.getJSONObject("bug");
        Bug bug = new Bug();
        bug.setParentProjectId(item.getLong("projectId"));
        bug.setExternalId(item.getLong("bugId"));
        bug.setTitle(item.getString("title"));
        bug.setPath(item.getString("path"));
        bug.setSeverity(item.getLong("severity"));
        bug.setPriority(item.getLong("priority"));
        bug.setBugGroups(Sets.newHashSet(StringUtil.csvToList(item.getString("groups"))));
        bug.setBugUrl(item.getString("url"));
        bug.setState(item.getString("status"));
        bug.setStateDate(item.getLong("statusDate"));
        dataService.addBug(bug);
      } else if (json.has("test")) {
        item = json.getJSONObject("test");
        TestCase test = new TestCase();
        test.setParentProjectId(item.getLong("projectId"));
View Full Code Here

        @Override
        public void onClick(ClickEvent event) {
          long id = Long.parseLong((options.getValue(options.getSelectedIndex())));
          presenter.assignBugToCapability(capability.getCapabilityId(), id);
          disclosure.setOpen(false);
          Bug bug = getBugById(id);
          bug.setTargetCapabilityId(capability.getCapabilityId());
          refresh();
        }
      });
    addForm.add(button);
    disclosure.setAnimationEnabled(true);
View Full Code Here

    bugGrid.setTitle("Bugs (" + capabilityBugs.size() + " total)");
    bugGrid.setWidget(0, 0, buildBugHeaderWidget("Bugs (" +  capabilityBugs.size() + " total)",
        "add bug"));

    for (int i = 0; i < capabilityBugs.size(); i++) {
      Bug bug = capabilityBugs.get(i);
      HorizontalPanel panel = new HorizontalPanel();
      panel.add(getBugStateImage(bug.getState()));
      Anchor anchor = new Anchor(bug.getLinkText(), bug.getLinkUrl());
      anchor.setTarget("_blank");
      panel.add(anchor);
      Label statusLabel = new Label();
      statusLabel.setText(" - filed " + getDateText(bug.getStateDate()));
      panel.add(statusLabel);
      bugGrid.setWidget(i + 1, 0, panel);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.testing.testify.risk.frontend.model.Bug

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.