Examples of Bug


Examples of Project1.Debug.Bug

      );
      mobPanel.add(
        new sButton(
          "Reveal",
          c.getRevealSound(),
          BugList.exists(new Bug("Sound", "Mob", c.getID().toString(), "Reveal"))
        )
      );
      mobPanel.add(
        new sButton(
          "MisMatch",
          c.getMisMatchSound(),
          BugList.exists(new Bug("Sound", "Mob", c.getID().toString(), "MisMatch"))
        )
      );
      mobPanel.add(
        new sButton(
          "Match",
          c.getMatchSound(),
          BugList.exists(new Bug("Sound", "Mob", c.getID().toString(), "Match"))
        )
      );
    }
   
    // Create clip panel
    clipPanel = new JPanel();
    clipPanel.setLayout(new GridLayout(1, 0));
   
    // Add the clip sounds to the testing window
    pane.add(new JLabel("Misc. Clips"));
    pane.add(clipPanel);
   
    // Add the sound buttons
    for (Map.Entry<String, OggClip> c : Card.Clips.entrySet()) {
      clipPanel.add(
        new sButton(
          c.getKey(),
          c.getValue(),
          BugList.exists(new Bug("Sound", "Clip", c.getKey()))
        )
      );
    }
   
    // Set the instance variable
View Full Code Here

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

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

      // 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

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

        @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

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

    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

Examples of com.j2bugzilla.base.Bug

                Throwable cause = e1.getCause();
                String details = (cause instanceof XmlRpcException) ? cause.getMessage() : e1.getMessage();
                return "Failed to access BZ " + bugId + ": " + details;
            }
        }
        Bug bug = getBug.getBug();
        if (bug != null) {
            String product = bug.getProduct();
            if (product.equals("RHQ Project")) {
                product = "RHQ";
            } else if (product.equals("JBoss Operations Network")) {
                product = "JON";
            }
            return "BZ " + bugId + " [product=" + product + ", priority=" + Color.GREEN + bug.getPriority()
                + Color.NORMAL + ", status=" + bug.getStatus() + "] " + Color.RED + bug.getSummary() + Color.NORMAL
                + " [ https://bugzilla.redhat.com/" + bugId + " ]";
        } else {
            return ("BZ " + bugId + " does not exist.");
        }
    }
View Full Code Here

Examples of er.bugtracker.Bug

    @Override
    protected NSArray defaultBranchChoices(D2WContext context) {
        NSArray result = super.defaultBranchChoices(context);
        log.debug("in: " + result);
        Bug bug = (Bug)object(context);
        // AK: this is just an illustration
        if(bug != null) {
            result = choiceByRemovingKeys(new NSArray("edit"), result);
            if(!bug.state().equals(State.ANALYZE)) {
                result = choiceByRemovingKeys(new NSArray("delete"), result);
            }
            if(!bug.state().equals(State.CLOSED)) {
                result = choiceByRemovingKeys(new NSArray(new Object[] {"reopen"}), result);
            }
            if(bug.state().equals(State.CLOSED)) {
                result = choiceByRemovingKeys(new NSArray(new Object[] {"resolve"}), result);
            }
            if(!bug.state().equals(State.VERIFY)) {
                result = choiceByRemovingKeys(new NSArray("reject"), result);
            }
            log.debug("out: " + result + " -> " + bug.state().textDescription());
        } else {
            result = choiceByLeavingKeys(new NSArray(new Object[] {"create"}), result);
        }
        return result;
    }
View Full Code Here

Examples of er.bugtracker.Bug

        }
        return result;
    }

    public WOComponent resolve(WOComponent sender) {
        Bug bug = (Bug) object(sender);
        return Factory.bugTracker().resolveBug(bug);
    }
View Full Code Here

Examples of er.bugtracker.Bug

        Bug bug = (Bug) object(sender);
        return Factory.bugTracker().resolveBug(bug);
    }

    public WOComponent comment(WOComponent sender) {
        Bug bug = (Bug) object(sender);
        return Factory.bugTracker().commentBug(bug);
    }
View Full Code Here

Examples of er.bugtracker.Bug

        Bug bug = (Bug) object(sender);
        return Factory.bugTracker().commentBug(bug);
    }

    public WOComponent reopen(WOComponent sender) {
        Bug bug = (Bug) object(sender);
        return Factory.bugTracker().reopenBug(bug);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.