com.redhat.rhn.domain.action.test
Class ActionFactoryTest

java.lang.Object
  extended by TestCase
      extended by com.redhat.rhn.testing.RhnBaseTestCase
          extended by com.redhat.rhn.domain.action.test.ActionFactoryTest

public class ActionFactoryTest
extends RhnBaseTestCase

ActionFactoryTest


Constructor Summary
ActionFactoryTest()
           
 
Method Summary
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 testSchedulerUser()
          Test fetching a ScriptAction
 
Methods inherited from class com.redhat.rhn.testing.RhnBaseTestCase
assertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reload, setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionFactoryTest

public ActionFactoryTest()
Method Detail

testLookup

public void testLookup()
                throws java.lang.Exception
Test fetching an Action

Throws:
java.lang.Exception

testLookupLastCompletedAction

public void testLookupLastCompletedAction()
                                   throws java.lang.Exception
Test fetching an Action

Throws:
java.lang.Exception

testLookupWithLoggedInUser

public void testLookupWithLoggedInUser()
                                throws java.lang.Exception
Test fetching an Action with the logged in User

Throws:
java.lang.Exception

testLookupScriptAction

public void testLookupScriptAction()
                            throws java.lang.Exception
Test fetching a ScriptAction

Throws:
java.lang.Exception

testSchedulerUser

public void testSchedulerUser()
                       throws java.lang.Exception
Test fetching a ScriptAction

Throws:
java.lang.Exception

testLookupErrataAction

public void testLookupErrataAction()
                            throws java.lang.Exception
Test fetching a ConfigRevisionAction

Throws:
java.lang.Exception

testLookupDaemonConfig

public void testLookupDaemonConfig()
                            throws java.lang.Exception
Test fetching a DaemonConfigDetails

Throws:
java.lang.Exception

testAddServerToAction

public void testAddServerToAction()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testLookupConfigRevisionAction

public void testLookupConfigRevisionAction()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testLookupConfigRevisionResult

public void testLookupConfigRevisionResult()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testCreateAction

public void testCreateAction()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testCheckActionArchType

public void testCheckActionArchType()
                             throws java.lang.Exception
Throws:
java.lang.Exception

createAction

public static Action createAction(User usr,
                                  ActionType type)
                           throws java.lang.Exception
Throws:
java.lang.Exception

createServerAction

public static ServerAction createServerAction(Server newS,
                                              Action newA)
                                       throws java.lang.Exception
Create a new ServerAction

Parameters:
newS -
newA -
Returns:
ServerAction created
Throws:
java.lang.Exception