com.rational.test.ft.domain.java

Class SelfRegisteredTestDomainImplementation



  • public class SelfRegisteredTestDomainImplementation
    extends TestDomainImplementationJava
    This class is available for Java applications that need to manually enable themselves for testing. Manually enblement is required when the JRE is unsupported or the environment does not allow for normal enablement. This is most obviously true for SWT stand-alone applications (SWT not running enbedded in Eclipse).
    Since:
    RFT1.0
    • Field Detail

      • debug

        protected static com.rational.test.ft.util.FtDebug debug
    • Constructor Detail

      • SelfRegisteredTestDomainImplementation

        public SelfRegisteredTestDomainImplementation(java.lang.String domainName)
      • SelfRegisteredTestDomainImplementation

        public SelfRegisteredTestDomainImplementation()
    • Method Detail

      • getTopLevelObjects

        public java.util.Enumeration getTopLevelObjects()
        Returns an enumeration for the top-level objects within this domain implementation.
        Specified by:
        getTopLevelObjects in class com.rational.test.ft.domain.TestDomainImplementation
      • getTopLevelObject

        public com.rational.test.ft.domain.ProxyTestObject getTopLevelObject(com.rational.test.ft.sys.graphical.Window window)
        Returns the topLevelObject that matches the specified window. This method should throw an exception if the domain is not isGraphical. If the Window cannot be matched, a null value should be returned.
        Specified by:
        getTopLevelObject in class com.rational.test.ft.domain.TestDomainImplementation
        Parameters:
        window - The window object to match.
        Returns:
        The top level object matching window in this test domain or null if not found.
      • addTopLevelObject

        public boolean addTopLevelObject(java.lang.Object topLevelObject)
        Adds a window to the top-level windows vector. The static list is then available for access.
        Parameters:
        c - The top level window to add.
        Returns:
        Returns true if the window was added to the top level windows list and false otherwise.
      • removeTopLevelObject

        public void removeTopLevelObject(java.lang.Object topLevelObject)
        Removes a window to the top-level windows vector. The static list is then available for access.
        Parameters:
        w - The window to locate and remove from the top level windows list.