public class ActionFactoryTest extends RhnBaseTestCase
Constructor and Description |
---|
ActionFactoryTest() |
Modifier and Type | Method and Description |
---|---|
static Action |
createAction(User usr,
ActionType type) |
static ServerAction |
createServerAction(Server newS,
Action newA)
Create a new ServerAction
|
void |
testAddServerToAction() |
void |
testCheckActionArchType() |
void |
testCreateAction() |
void |
testLookup()
Test fetching an Action
|
void |
testLookupConfigRevisionAction() |
void |
testLookupConfigRevisionResult() |
void |
testLookupDaemonConfig()
Test fetching a DaemonConfigDetails
|
void |
testLookupErrataAction()
Test fetching a ConfigRevisionAction
|
void |
testLookupLastCompletedAction()
Test fetching an Action
|
void |
testLookupScriptAction()
Test fetching a ScriptAction
|
void |
testLookupWithLoggedInUser()
Test fetching an Action with the logged in User
|
void |
testRescheduleAllServerActions() |
void |
testRescheduleFailedServerActions() |
void |
testSchedulerUser()
Test fetching a ScriptAction
|
assertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, createDirIfNotExists, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reload, setUp, tearDown
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public void testLookup() throws java.lang.Exception
java.lang.Exception
- something bad happenedpublic void testLookupLastCompletedAction() throws java.lang.Exception
java.lang.Exception
- something bad happenedpublic void testLookupWithLoggedInUser() throws java.lang.Exception
java.lang.Exception
- something bad happenedpublic void testLookupScriptAction() throws java.lang.Exception
java.lang.Exception
- something bad happenedpublic void testSchedulerUser() throws java.lang.Exception
java.lang.Exception
- something bad happenedpublic void testLookupErrataAction() throws java.lang.Exception
java.lang.Exception
- something bad happenedpublic void testLookupDaemonConfig() throws java.lang.Exception
java.lang.Exception
- something bad happenedpublic void testAddServerToAction() throws java.lang.Exception
java.lang.Exception
public void testLookupConfigRevisionAction() throws java.lang.Exception
java.lang.Exception
public void testLookupConfigRevisionResult() throws java.lang.Exception
java.lang.Exception
public void testRescheduleFailedServerActions() throws java.lang.Exception
java.lang.Exception
public void testRescheduleAllServerActions() throws java.lang.Exception
java.lang.Exception
public void testCreateAction() throws java.lang.Exception
java.lang.Exception
public void testCheckActionArchType() throws java.lang.Exception
java.lang.Exception
public static Action createAction(User usr, ActionType type) throws java.lang.Exception
java.lang.Exception
public static ServerAction createServerAction(Server newS, Action newA) throws java.lang.Exception
newS
- new systemnewA
- new actionjava.lang.Exception
- something bad happened