hudson.tasks.test.TestObject Java Examples
The following examples show how to use
hudson.tasks.test.TestObject.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestResultAction.java From junit-plugin with MIT License | 5 votes |
public List<TestAction> getActions(TestObject object) { List<TestAction> result = new ArrayList<TestAction>(); // Added check for null testData to avoid NPE from issue 4257. if (testData != null) { synchronized (testData) { for (Data data : testData) for (TestAction ta : data.getTestAction(object)) if (ta != null) result.add(ta); } } return Collections.unmodifiableList(result); }
Example #2
Source File: ClassResult.java From junit-plugin with MIT License | 5 votes |
/** * Gets the relative path to this test case from the given object. */ @Override public String getRelativePathFrom(TestObject it) { if(it instanceof CaseResult) { return ".."; } else { return super.getRelativePathFrom(it); } }
Example #3
Source File: JUnitResultArchiverTest.java From junit-plugin with MIT License | 5 votes |
private void testSetDescription(String url, TestObject object) throws Exception { object.doSubmitDescription("description"); // test the roundtrip final WebClient wc = j.createWebClient(); HtmlPage page = wc.goTo(url); page.getAnchorByHref("editDescription").click(); wc.waitForBackgroundJavaScript(10000L); HtmlForm form = findForm(page, "submitDescription"); j.submit(form); assertEquals("description", object.getDescription()); }
Example #4
Source File: FlakyClassResult.java From flaky-test-handler-plugin with Apache License 2.0 | 5 votes |
/** * Gets the relative path to this test case from the given object. */ @Override public String getRelativePathFrom(TestObject it) { if (it instanceof FlakyCaseResult) { return ".."; } else { return super.getRelativePathFrom(it); } }
Example #5
Source File: AWSDeviceFarmTestResult.java From aws-device-farm-jenkins-plugin with Apache License 2.0 | 4 votes |
public TestObject getParent() { return null; }
Example #6
Source File: TestResult.java From junit-plugin with MIT License | 4 votes |
public TestObject getParent() { return parent; }
Example #7
Source File: TestResult.java From junit-plugin with MIT License | 4 votes |
@Override public void setParent(TestObject parent) { this.parent = parent; }
Example #8
Source File: History.java From junit-plugin with MIT License | 4 votes |
public History(TestObject testObject) { this.testObject = testObject; }
Example #9
Source File: History.java From junit-plugin with MIT License | 4 votes |
public TestObject getTestObject() { return testObject; }
Example #10
Source File: FlakyTestResult.java From flaky-test-handler-plugin with Apache License 2.0 | 4 votes |
public TestObject getParent() { return parent; }
Example #11
Source File: FlakyTestResult.java From flaky-test-handler-plugin with Apache License 2.0 | 4 votes |
@Override public void setParent(TestObject parent) { this.parent = parent; }
Example #12
Source File: TestResultAction.java From junit-plugin with MIT License | 2 votes |
/** * Returns all TestActions for the testObject. * * @return * Can be empty but never null. The caller must assume that the returned list is read-only. */ public abstract List<? extends TestAction> getTestAction(hudson.tasks.junit.TestObject testObject);