com.atlassian.confluence.hallelujah
Class JUnit4TestCaseProvider
java.lang.Object
com.atlassian.confluence.hallelujah.JUnit4TestCaseProvider
- All Implemented Interfaces:
- com.atlassian.buildeng.hallelujah.api.server.ServerTestCaseProvider
public class JUnit4TestCaseProvider
- extends java.lang.Object
- implements com.atlassian.buildeng.hallelujah.api.server.ServerTestCaseProvider
A testcase provider that works with both junit 4 and junit 3 tests cases.
Constructor Summary |
JUnit4TestCaseProvider(org.junit.runner.Description description)
Constructor that resolves testCaseNames from the description tree of a test suite. |
JUnit4TestCaseProvider(java.util.List<com.atlassian.buildeng.hallelujah.api.model.TestCaseName> tests)
|
Method Summary |
void |
addTest(com.atlassian.buildeng.hallelujah.api.model.TestCaseName testCaseName)
|
java.util.List<com.atlassian.buildeng.hallelujah.api.model.TestCaseName> |
getInitialTests()
|
com.atlassian.buildeng.hallelujah.api.model.TestCaseName |
getNextTestCaseName()
|
int |
numRemainingTests()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnit4TestCaseProvider
public JUnit4TestCaseProvider(java.util.List<com.atlassian.buildeng.hallelujah.api.model.TestCaseName> tests)
JUnit4TestCaseProvider
public JUnit4TestCaseProvider(org.junit.runner.Description description)
- Constructor that resolves testCaseNames from the description tree of a test suite.
- Parameters:
description
-
getNextTestCaseName
public com.atlassian.buildeng.hallelujah.api.model.TestCaseName getNextTestCaseName()
- Specified by:
getNextTestCaseName
in interface com.atlassian.buildeng.hallelujah.api.server.ServerTestCaseProvider
numRemainingTests
public int numRemainingTests()
- Specified by:
numRemainingTests
in interface com.atlassian.buildeng.hallelujah.api.server.ServerTestCaseProvider
addTest
public void addTest(com.atlassian.buildeng.hallelujah.api.model.TestCaseName testCaseName)
- Specified by:
addTest
in interface com.atlassian.buildeng.hallelujah.api.server.ServerTestCaseProvider
getInitialTests
public java.util.List<com.atlassian.buildeng.hallelujah.api.model.TestCaseName> getInitialTests()
- Specified by:
getInitialTests
in interface com.atlassian.buildeng.hallelujah.api.server.ServerTestCaseProvider
Copyright © 2003-2014 Atlassian. All Rights Reserved.