psdi.app.jobplan.unittest

Class MaxVarHelper

  • java.lang.Object
    • psdi.app.jobplan.unittest.MaxVarHelper


  • public class MaxVarHelper
    extends java.lang.Object
    Simple Helper for working with MaxVars
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  MaxVarHelper.Holder
      Holds the old and new values for a maxvar, and provides a method to the rollback the value.
    • Constructor Summary

      Constructors 
      Constructor and Description
      MaxVarHelper() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static MaxVarHelper.Holder assertMaxVarHasValue(java.lang.String maxVar, java.lang.String value)
      Assert that a maxvar has a particular value.
      static MaxVarServiceRemote getMaxVar()
      Gets the MaxVar service for lookuping up MaxVar values
      static java.lang.String getOrgSiteForMaxvar(java.lang.String maxvarName)
      Given a MaxVar name return the Org or Site for that maxvar from the user info
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MaxVarHelper

        public MaxVarHelper()
    • Method Detail

      • assertMaxVarHasValue

        public static MaxVarHelper.Holder assertMaxVarHasValue(java.lang.String maxVar,
                                                               java.lang.String value)
        Assert that a maxvar has a particular value. It returns a Holder object which you can later use to rollback the value if you want.
        Parameters:
        maxVar -
        value -
        Returns:
      • getMaxVar

        public static MaxVarServiceRemote getMaxVar()
                                             throws MXException,
                                                    java.rmi.RemoteException
        Gets the MaxVar service for lookuping up MaxVar values
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getOrgSiteForMaxvar

        public static java.lang.String getOrgSiteForMaxvar(java.lang.String maxvarName)
        Given a MaxVar name return the Org or Site for that maxvar from the user info
        Parameters:
        maxvarName -
        Returns: