com.ibm.tivoli.maximo.fwm.unittest

Class TestDataGeneration

  • java.lang.Object
    • com.ibm.tivoli.maximo.fwm.unittest.TestDataGeneration


  • public class TestDataGeneration
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void loadTestData()
      This class is responsible for creating test data records necessary throughout the unit tests.
      static void setUpBeforeClass()
      One-time initialization before running the tests.
      • Methods inherited from class java.lang.Object

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

      • TestDataGeneration

        public TestDataGeneration()
    • Method Detail

      • setUpBeforeClass

        public static void setUpBeforeClass()
                                     throws java.lang.Exception
        One-time initialization before running the tests. Just ensures that a MXServer instance is running.
        Throws:
        java.lang.Exception - If MXServer initialization fails.
      • loadTestData

        public void loadTestData()
                          throws MXException,
                                 TestSetupException,
                                 java.rmi.RemoteException
        This class is responsible for creating test data records necessary throughout the unit tests. If the data is already available, it will not try to create it again since all datasources defines all of them as "Sync" and "AddChange" action Include in this method all data that must be pre-loaded for some unit tests and test data that could not me loaded trough datasets (complex objects estructures)
        Throws:
        MXException
        java.rmi.RemoteException
        TestSetupException