@Test( expected = TargetException.class ) public void testValidate_error2() throws Exception { JCloudsHandler.validate( new HashMap<String,String>( 0 )); }
static void validate( Map<String,String> targetProperties ) throws TargetException { checkProperty( PROVIDER_ID, targetProperties ); checkProperty( ENDPOINT, targetProperties ); checkProperty( IMAGE_NAME, targetProperties ); checkProperty( SECURITY_GROUP, targetProperties ); checkProperty( IDENTITY, targetProperties ); checkProperty( CREDENTIAL, targetProperties ); checkProperty( HARDWARE_NAME, targetProperties ); }
JCloudsHandler implements TargetHandler { static void validate( Map<String,String> targetProperties ) throws TargetException { checkProperty( PROVIDER_ID, targetProperties ); checkProperty( ENDPOINT, targetProperties ); checkProperty( IMAGE_NAME, targetProperties ); checkProperty( SECURITY_GROUP, targetProperties ); checkProperty( IDENTITY, targetProperties ); checkProperty( CREDENTIAL, targetProperties ); checkProperty( HARDWARE_NAME, targetProperties ); } }
JCloudsHandler implements TargetHandler { static void validate( Map<String,String> targetProperties ) throws TargetException { checkProperty( PROVIDER_ID, targetProperties ); checkProperty( ENDPOINT, targetProperties ); checkProperty( IMAGE_NAME, targetProperties ); checkProperty( SECURITY_GROUP, targetProperties ); checkProperty( IDENTITY, targetProperties ); checkProperty( CREDENTIAL, targetProperties ); checkProperty( HARDWARE_NAME, targetProperties ); }  }
JCloudsHandler implements TargetHandler { static void validate( Map<String,String> targetProperties ) throws TargetException { checkProperty( PROVIDER_ID, targetProperties ); checkProperty( ENDPOINT, targetProperties ); checkProperty( IMAGE_NAME, targetProperties ); checkProperty( SECURITY_GROUP, targetProperties ); checkProperty( IDENTITY, targetProperties ); checkProperty( CREDENTIAL, targetProperties ); checkProperty( HARDWARE_NAME, targetProperties ); }  @Override String getTargetId(); @Override String createMachine( TargetHandlerParameters parameters ); @Override void configureMachine( TargetHandlerParameters parameters, String machineId ); @Override boolean isMachineRunning( TargetHandlerParameters parameters, String machineId ); @Override void terminateMachine( TargetHandlerParameters parameters, String machineId ); @Override String retrievePublicIpAddress( TargetHandlerParameters parameters, String machineId ); }
JCloudsHandler implements TargetHandler { static void validate( Map<String,String> targetProperties ) throws TargetException { checkProperty( PROVIDER_ID, targetProperties ); checkProperty( ENDPOINT, targetProperties ); checkProperty( IMAGE_NAME, targetProperties ); checkProperty( SECURITY_GROUP, targetProperties ); checkProperty( IDENTITY, targetProperties ); checkProperty( CREDENTIAL, targetProperties ); checkProperty( HARDWARE_NAME, targetProperties ); }  @Override String getTargetId(); @Override String createMachine( TargetHandlerParameters parameters ); @Override void configureMachine( TargetHandlerParameters parameters, String machineId ); @Override boolean isMachineRunning( TargetHandlerParameters parameters, String machineId ); @Override void terminateMachine( TargetHandlerParameters parameters, String machineId ); @Override String retrievePublicIpAddress( TargetHandlerParameters parameters, String machineId ); static final String TARGET_ID; }