|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.fuzzy.emf.diff.spi.TestRunProvider org.eclipse.emf.emfstore.fuzzy.emf.internal.diff.HudsonTestRunProvider
public class HudsonTestRunProvider
An implementation of TestRunProvider
to provide TestRun
s
created by the CI-Server Hudson.
Field Summary | |
---|---|
static String |
PROP_ARTIFACT_FOLDER
The hudson artifact folder property. |
static String |
PROP_DIFF_JOB
The property of the hudson diff job. |
static String |
PROP_HUDSON
The prefix for hudson properties. |
static String |
PROP_JOB
The name of the hudson job property. |
static String |
PROP_PORT
The hudson port property. |
static String |
PROP_URL
The hudson url property. |
static String[] |
VALID_STATES
An array containing all valid states of a hudson build. |
Constructor Summary | |
---|---|
HudsonTestRunProvider()
Standard constructor using the last build and the build before the last build for reading testruns. |
|
HudsonTestRunProvider(int firstBuildNumber,
int secondBuildNumber)
Constructor using tow special numbers for testruns. |
Method Summary | |
---|---|
List<TestConfig> |
getAllConfigs()
|
static org.eclipse.emf.ecore.resource.Resource |
getDiffResource()
|
TestRun[] |
getTestRuns()
|
Methods inherited from class org.eclipse.emf.emfstore.fuzzy.emf.diff.spi.TestRunProvider |
---|
setConfig |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROP_HUDSON
public static final String PROP_URL
public static final String PROP_ARTIFACT_FOLDER
public static final String PROP_PORT
public static final String PROP_JOB
public static final String PROP_DIFF_JOB
public static final String[] VALID_STATES
Constructor Detail |
---|
public HudsonTestRunProvider() throws org.dom4j.DocumentException, IOException
org.dom4j.DocumentException
- If it cannot read the buildnumbers correctly from hudson.
IOException
- If it cannot read the buildnumbers correctly from hudson.public HudsonTestRunProvider(int firstBuildNumber, int secondBuildNumber)
firstBuildNumber
- The number of the first build (first from the last one
backwards, so it is later than the second one).secondBuildNumber
- The number of the second build.Method Detail |
---|
public TestRun[] getTestRuns() throws IOException
getTestRuns
in class TestRunProvider
TestRun
s specified by the config and this
provider.
IOException
- If there is an error reading the TestRun
s.public List<TestConfig> getAllConfigs()
TestConfig
which are loadable via this HudsonTestRunProvider
.public static org.eclipse.emf.ecore.resource.Resource getDiffResource() throws MalformedURLException, org.dom4j.DocumentException
org.dom4j.DocumentException
- in case an error occurs during obtainment of the resource.
MalformedURLException
- in case an error occurs during obtainment of the resource.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |