Example #1
0
 @Before
 public void setUp() throws Exception {
   DBUtil.reDeployDB();
   BeanConstructor con = new BeanConstructor();
   /* This loads spring application context */
   loader =
       con.addXml("PortalForUnitTest.xml")
           .addXml("ZoneManager.xml")
           .addXml("AccountManager.xml")
           .build();
   dbf = loader.getComponent(DatabaseFacade.class);
   api = new Api();
   api.startServer();
 }
 @Before
 public void setUp() throws Exception {
   BeanConstructor con = new BeanConstructor();
   /* This loads spring application context */
   loader =
       con.addXml("PortalForUnitTest.xml")
           .addXml("Simulator.xml")
           .addXml("PrimaryStorageManager.xml")
           .addXml("ZoneManager.xml")
           .addXml("ClusterManager.xml")
           .addXml("ConfigurationManager.xml")
           .addXml("AccountManager.xml")
           .build();
   api = new Api();
   api.startServer();
 }
Example #3
0
 @Before
 public void setUp() throws Exception {
   BeanConstructor con = new BeanConstructor();
   loader = con.build();
   bus = loader.getComponent(CloudBus.class);
 }
Example #4
0
 @Before
 public void setUp() throws Exception {
   BeanConstructor con = new BeanConstructor();
   loader = con.build();
   thdf = loader.getComponent(ThreadFacade.class);
 }