cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/test/java/org/cloudsimplus/integrationtests/VmCreationFailureIntegrationTest.java
private void onHostDeallocation(VmHostEventInfo evt) {
        numberOfHostDeallocations++;
        Log.printFormattedLine(
                "# Vm %s moved/removed from Host %s at time %3.0f",
                evt.getVm().getId(), evt.getHost().getId(), evt.getTime());
        if (scenario.getFirstHostFromFirstDatacenter().equals(evt.getHost()) &&
            scenario.getFirstVmFromFirstBroker().equals(evt.getVm())) {
            assertEquals(
                    "Vm wasn't removed from the Host at the expected time",
                    20, evt.getTime(), 0.2);
        }
    }
/**
     * A lambda function used by an {@link Vm#addOnHostDeallocationListener(EventListener)}  }
     * that will be called every time a Host is
     * deallocated to a given VM. It tries to assert that the Host 0 was
     * deallocated to the Vm 0 at the expected time.
     *
     * @param evt
     */
A lambda function used by an  Vm#addOnHostDeallocationListener(EventListener)  }
that will be called every time a Host is
deallocated to a given VM. It tries to assert that the Host 0 was
deallocated to the Vm 0 at the expected time.

@param evt
A lambda function used by an Vm#addOnHostDeallocationListener ( EventListener ) } that will be called every time a Host is deallocated to a given VM . It tries to assert that the Host 0 was deallocated to the Vm 0 at the expected time . @param evt
private void onHostDeallocation(VmHostEventInfo evt) {
        numberOfHostDeallocations++;
        Log.printFormattedLine(
                "# Vm %s moved/removed from Host %s at time %3.0f",
                evt.getVm().getId(), evt.getHost().getId(), evt.getTime());
        if (scenario.getFirstHostFromFirstDatacenter().equals(evt.getHost()) &&
            scenario.getFirstVmFromFirstBroker().equals(evt.getVm())) {
            assertEquals(
                    "Vm wasn't removed from the Host at the expected time",
                    20, evt.getTime(), 0.2);
        }
    }
private void onHostDeallocation ( VmHostEventInfo evt ) { numberOfHostDeallocations ++ ; Log . printFormattedLine ( "# Vm %s moved/removed from Host %s at time %3.0f" , evt . getVm ( ) . getId ( ) , evt . getHost ( ) . getId ( ) , evt . getTime ( ) ) ; if ( scenario . getFirstHostFromFirstDatacenter ( ) . equals ( evt . getHost ( ) ) && scenario . getFirstVmFromFirstBroker ( ) . equals ( evt . getVm ( ) ) ) { assertEquals ( "Vm wasn't removed from the Host at the expected time" , 20 , evt . getTime ( ) , 0.2 ) ; } }
A lambda function used by an {@link Vm#addOnHostDeallocationListener(EventListener)}  }
 that will be called every time a Host is
 deallocated to a given VM.
A lambda function used by an { @link Vm#addOnHostDeallocationListener ( EventListener ) } } that will be called every time a Host is deallocated to a given VM .