@Test public void testGetStringFromFieldsArgMissing() { String data = launchDataWrapper.getStringFromFields(HandlerArgument.PAYLOAD_FILE, HandlerField.PAYLOAD); verify(mockEnvironmentFieldRetriever, times(1)).getField(anyString()); Assert.assertNull(data); }
protected String getStringFromFields(HandlerArgument commandLineArg, HandlerField environmentVar) { String payload = getStringFromFileArg(commandLineArg); return payload == null ? getEnvironmentRetriever().getField(environmentVar.name()) : payload; }
DefaultLaunchDataWrapper extends LaunchDataWrapper { protected String getStringFromFields(HandlerArgument commandLineArg, HandlerField environmentVar) { String payload = getStringFromFileArg(commandLineArg); return payload == null ? getEnvironmentRetriever().getField(environmentVar.name()) : payload; } }
DefaultLaunchDataWrapper extends LaunchDataWrapper { protected String getStringFromFields(HandlerArgument commandLineArg, HandlerField environmentVar) { String payload = getStringFromFileArg(commandLineArg); return payload == null ? getEnvironmentRetriever().getField(environmentVar.name()) : payload; } DefaultLaunchDataWrapper(String[] args);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever, EnvironmentFieldRetriever environmentRetriever, PropertyRetriever propertyRetriever);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever); }
DefaultLaunchDataWrapper extends LaunchDataWrapper { protected String getStringFromFields(HandlerArgument commandLineArg, HandlerField environmentVar) { String payload = getStringFromFileArg(commandLineArg); return payload == null ? getEnvironmentRetriever().getField(environmentVar.name()) : payload; } DefaultLaunchDataWrapper(String[] args);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever, EnvironmentFieldRetriever environmentRetriever, PropertyRetriever propertyRetriever);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever); @Override String getPayload(); @Override OperationProgress getLastOperationProgress(); @Override T getLastProgressObject(Class<T> objectClass); @Override T getLastOperationProgressParam(String paramName, Class<T> objectClass); void setJsonHelper(JsonHelper jsonHelper); }
DefaultLaunchDataWrapper extends LaunchDataWrapper { protected String getStringFromFields(HandlerArgument commandLineArg, HandlerField environmentVar) { String payload = getStringFromFileArg(commandLineArg); return payload == null ? getEnvironmentRetriever().getField(environmentVar.name()) : payload; } DefaultLaunchDataWrapper(String[] args);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever, EnvironmentFieldRetriever environmentRetriever, PropertyRetriever propertyRetriever);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever); @Override String getPayload(); @Override OperationProgress getLastOperationProgress(); @Override T getLastProgressObject(Class<T> objectClass); @Override T getLastOperationProgressParam(String paramName, Class<T> objectClass); void setJsonHelper(JsonHelper jsonHelper);  }