@Test public void testGetRECVMNameFromProductSection() { OVFUtilsDomImpl manager = new OVFUtilsDomImpl(); String vmName = null; try { vmName = manager.getRECVMNameFromProductSection(ovfRECVMName); } catch (InvalidOVFException e) { assertTrue(false); } assertEquals(vmName, "mongoconfig"); }
@Test public void testGetOvfsSingleVM() { OVFUtilsDomImpl manager = new OVFUtilsDomImpl(); List<String> ovfs = new ArrayList<String>(); try { ovfs = manager.getOvfsSingleVM(ovfMultipleVMS); } catch (InvalidOVFException e) { assertTrue(false); } assertEquals(ovfs.size(), 3); }
@Test public void testGetServiceName() { OVFUtilsDomImpl manager = new OVFUtilsDomImpl(); String serviceName = null; try { serviceName = manager.getServiceName(ovfMultipleVMS); } catch (InvalidOVFException e) { assertTrue(false); } assertEquals(serviceName, "contextbrokermongo2"); }
@Test public void testChangeInitialResources() { OVFUtilsDomImpl manager = new OVFUtilsDomImpl(); String out = manager.changeInitialResources(ovfOnlyVs); }