cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/test/java/org/cloudsimplus/integrationtests/VmCreationFailureIntegrationTest.java
private void onVmCreationFailure(VmDatacenterEventInfo evt) {
        numberOfVmCreationFailures++;
        final int expectedVmId = 1;

        String msg = String.format(
                "Only Vm %d should had failed to be created due to lack of resources",
                expectedVmId);
        assertEquals(msg, expectedVmId, evt.getVm().getId());
    }
/**
     * A lambda function used by an {@link Vm#addOnCreationFailureListener(EventListener)}  }
     * that will be called every time a Vm failed to be created
     * due to lack of host resources.
     *
     * @param evt
     */
A lambda function used by an  Vm#addOnCreationFailureListener(EventListener)  }
that will be called every time a Vm failed to be created
due to lack of host resources.

@param evt
A lambda function used by an Vm#addOnCreationFailureListener ( EventListener ) } that will be called every time a Vm failed to be created due to lack of host resources . @param evt
private void onVmCreationFailure(VmDatacenterEventInfo evt) {
        numberOfVmCreationFailures++;
        final int expectedVmId = 1;
        String msg = String.format(
                "Only Vm %d should had failed to be created due to lack of resources",
                expectedVmId);
        assertEquals(msg, expectedVmId, evt.getVm().getId());
    }
private void onVmCreationFailure ( VmDatacenterEventInfo evt ) { numberOfVmCreationFailures ++ ; final int expectedVmId = 1 ; String msg = String . format ( "Only Vm %d should had failed to be created due to lack of resources" , expectedVmId ) ; assertEquals ( msg , expectedVmId , evt . getVm ( ) . getId ( ) ) ; }
A lambda function used by an {@link Vm#addOnCreationFailureListener(EventListener)}  }
 that will be called every time a Vm failed to be created
 due to lack of host resources.
A lambda function used by an { @link Vm#addOnCreationFailureListener ( EventListener ) } } that will be called every time a Vm failed to be created due to lack of host resources .