protected void assertThatTheRightLibvirtApiIsInvokedForRunInstance() throws Exception { int[] domains = stubLibvirtConnection.listDomains(); assertEquals(1, domains.length); Domain domain = stubLibvirtConnection.domainLookupByID(domains[0]); assertEquals(domain.getName(), instanceId); String domainXml = domain.getXMLDesc(0); assertThatDomainXmlContainsNecessaryFields(domainXml); }
@After public void resetLibvirtConnection() { stubLibvirtConnection.reset(); }