org.apache.maven.continuum
Class AbstractContinuumTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.spring.PlexusInSpringTestCase
org.apache.maven.continuum.AbstractContinuumTest
- All Implemented Interfaces:
- junit.framework.Test
public abstract class AbstractContinuumTest
- extends org.codehaus.plexus.spring.PlexusInSpringTestCase
- Version:
- $Id: AbstractContinuumTest.java 1372260 2012-08-13 04:29:09Z brett $
- Author:
- Trygve Laugstøl
Fields inherited from class org.codehaus.plexus.spring.PlexusInSpringTestCase |
applicationContext |
Method Summary |
Project |
addProject(Project project)
|
Project |
addProject(String name)
|
Project |
addProject(String name,
ProjectGroup group)
|
void |
assertProjectEquals(Project expected,
Project actual)
|
void |
assertProjectEquals(String name,
List<ProjectNotifier> notifiers,
String version,
Project actual)
|
void |
assertProjectEquals(String name,
String emailAddress,
String version,
Project actual)
|
protected void |
createDefaultProjectGroup()
|
protected static List<ProjectNotifier> |
createMailNotifierList(String emailAddress)
|
ProjectGroup |
createStubProjectGroup(String name,
String description)
|
protected ContinuumBuildExecutor |
getBuildExecutor(String id)
|
protected ProjectGroup |
getDefaultProjectGroup()
|
protected ProjectDao |
getProjectDao()
|
protected ProjectGroupDao |
getProjectGroupDao()
|
protected ProjectScmRootDao |
getProjectScmRootDao()
|
protected ScheduleDao |
getScheduleDao()
|
static Project |
makeProject(Project project,
String name,
String version)
|
static Project |
makeProject(String name,
String emailAddress,
String version)
|
static Project |
makeStubProject(String name)
|
static Project |
makeStubShellProject(String name,
String script)
|
protected void |
setUp()
|
static void |
setUpConfigurationService(ConfigurationService configurationService)
|
protected void |
tearDown()
|
Methods inherited from class org.codehaus.plexus.spring.PlexusInSpringTestCase |
getApplicationContext, getBasedir, getConfigLocations, getContainer, getPlexusConfigLocation, getResourceAsStream, getSpringConfigLocation, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
AbstractContinuumTest
public AbstractContinuumTest()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class org.codehaus.plexus.spring.PlexusInSpringTestCase
- Throws:
Exception
tearDown
protected void tearDown()
throws Exception
- Overrides:
tearDown
in class org.codehaus.plexus.spring.PlexusInSpringTestCase
- Throws:
Exception
createDefaultProjectGroup
protected void createDefaultProjectGroup()
throws Exception
- Throws:
Exception
setUpConfigurationService
public static void setUpConfigurationService(ConfigurationService configurationService)
throws Exception
- Throws:
Exception
getDefaultProjectGroup
protected ProjectGroup getDefaultProjectGroup()
throws ContinuumStoreException
- Throws:
ContinuumStoreException
getProjectDao
protected ProjectDao getProjectDao()
getProjectGroupDao
protected ProjectGroupDao getProjectGroupDao()
getScheduleDao
protected ScheduleDao getScheduleDao()
getProjectScmRootDao
protected ProjectScmRootDao getProjectScmRootDao()
getBuildExecutor
protected ContinuumBuildExecutor getBuildExecutor(String id)
throws Exception
- Throws:
Exception
makeStubProject
public static Project makeStubProject(String name)
makeProject
public static Project makeProject(String name,
String emailAddress,
String version)
makeStubShellProject
public static Project makeStubShellProject(String name,
String script)
makeProject
public static Project makeProject(Project project,
String name,
String version)
createMailNotifierList
protected static List<ProjectNotifier> createMailNotifierList(String emailAddress)
addProject
public Project addProject(Project project)
throws Exception
- Throws:
Exception
addProject
public Project addProject(String name)
throws Exception
- Throws:
Exception
assertProjectEquals
public void assertProjectEquals(Project expected,
Project actual)
assertProjectEquals
public void assertProjectEquals(String name,
String emailAddress,
String version,
Project actual)
assertProjectEquals
public void assertProjectEquals(String name,
List<ProjectNotifier> notifiers,
String version,
Project actual)
createStubProjectGroup
public ProjectGroup createStubProjectGroup(String name,
String description)
addProject
public Project addProject(String name,
ProjectGroup group)
throws Exception
- Throws:
Exception
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.