コード例 #1
0
  private void testSetDescription(String url, TestObject object) throws Exception {
    object.doSubmitDescription("description");

    // test the roundtrip
    HtmlPage page = j.new WebClient().goTo(url);
    page.getAnchorByHref("editDescription").click();
    HtmlForm form = findForm(page, "submitDescription");
    j.submit(form);

    assertEquals("description", object.getDescription());
  }
コード例 #2
0
 public ResultData(TestObject result, String url) {
   setName(result.getName());
   setPassed(result.getFailCount() == 0);
   setSkipped(result.getSkipCount() == result.getTotalCount());
   setTotalTests(result.getTotalCount());
   setTotalFailed(result.getFailCount());
   setTotalPassed(result.getPassCount());
   setTotalSkipped(result.getSkipCount());
   setTotalTimeTaken(result.getDuration());
   setUrl(url);
   setFlaky(false);
   setTotalFlaky(0);
   evaluateStatus();
 }
コード例 #3
0
 @Override
 public AbstractBuild<?, ?> getOwner() {
   return (parent == null ? null : parent.getOwner());
 }
コード例 #4
0
 /** Gets the class name of a test class. */
 @Exported(visibility = 9)
 public String getClassName() {
   return parent.getName();
 }