mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-22 06:58:45 +00:00
Increase tests on ProcessBasedRouter (which of course led to some improvements!)
This commit is contained in:
@ -31,7 +31,6 @@ import com.kingsrook.qqq.backend.core.actions.customizers.QCodeLoader;
|
||||
import com.kingsrook.qqq.backend.core.actions.processes.RunProcessAction;
|
||||
import com.kingsrook.qqq.backend.core.actions.tables.StorageAction;
|
||||
import com.kingsrook.qqq.backend.core.context.QContext;
|
||||
import com.kingsrook.qqq.backend.core.exceptions.QException;
|
||||
import com.kingsrook.qqq.backend.core.logging.QLogger;
|
||||
import com.kingsrook.qqq.backend.core.model.actions.processes.RunProcessInput;
|
||||
import com.kingsrook.qqq.backend.core.model.actions.processes.RunProcessOutput;
|
||||
@ -258,7 +257,7 @@ public class ProcessBasedRouter implements QJavalinRouteProviderInterface
|
||||
return;
|
||||
}
|
||||
|
||||
throw (new QException("No response value was set in the process output state."));
|
||||
LOG.debug("No response value was set in the process output state.");
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
|
@ -22,6 +22,7 @@
|
||||
package com.kingsrook.qqq.middleware.javalin.routeproviders;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import com.kingsrook.qqq.backend.core.model.actions.processes.ProcessState;
|
||||
import com.kingsrook.qqq.backend.core.model.actions.processes.QProcessPayload;
|
||||
@ -34,12 +35,12 @@ import com.kingsrook.qqq.backend.core.model.actions.processes.QProcessPayload;
|
||||
*******************************************************************************/
|
||||
public class ProcessBasedRouterPayload extends QProcessPayload
|
||||
{
|
||||
private String path;
|
||||
private String method;
|
||||
private Map<String, String> pathParams;
|
||||
private Map<String, String> queryParams;
|
||||
private Map<String, String> formParams;
|
||||
private Map<String, String> cookies;
|
||||
private String path;
|
||||
private String method;
|
||||
private Map<String, String> pathParams;
|
||||
private Map<String, List<String>> queryParams;
|
||||
private Map<String, List<String>> formParams;
|
||||
private Map<String, String> cookies;
|
||||
|
||||
private Integer statusCode;
|
||||
private String redirectURL;
|
||||
@ -163,68 +164,6 @@ public class ProcessBasedRouterPayload extends QProcessPayload
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for queryParams
|
||||
*******************************************************************************/
|
||||
public Map<String, String> getQueryParams()
|
||||
{
|
||||
return (this.queryParams);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Setter for queryParams
|
||||
*******************************************************************************/
|
||||
public void setQueryParams(Map<String, String> queryParams)
|
||||
{
|
||||
this.queryParams = queryParams;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for queryParams
|
||||
*******************************************************************************/
|
||||
public ProcessBasedRouterPayload withQueryParams(Map<String, String> queryParams)
|
||||
{
|
||||
this.queryParams = queryParams;
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for formParams
|
||||
*******************************************************************************/
|
||||
public Map<String, String> getFormParams()
|
||||
{
|
||||
return (this.formParams);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Setter for formParams
|
||||
*******************************************************************************/
|
||||
public void setFormParams(Map<String, String> formParams)
|
||||
{
|
||||
this.formParams = formParams;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for formParams
|
||||
*******************************************************************************/
|
||||
public ProcessBasedRouterPayload withFormParams(Map<String, String> formParams)
|
||||
{
|
||||
this.formParams = formParams;
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for cookies
|
||||
*******************************************************************************/
|
||||
@ -409,4 +348,66 @@ public class ProcessBasedRouterPayload extends QProcessPayload
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for queryParams
|
||||
*******************************************************************************/
|
||||
public Map<String, List<String>> getQueryParams()
|
||||
{
|
||||
return (this.queryParams);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Setter for queryParams
|
||||
*******************************************************************************/
|
||||
public void setQueryParams(Map<String, List<String>> queryParams)
|
||||
{
|
||||
this.queryParams = queryParams;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for queryParams
|
||||
*******************************************************************************/
|
||||
public ProcessBasedRouterPayload withQueryParams(Map<String, List<String>> queryParams)
|
||||
{
|
||||
this.queryParams = queryParams;
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Getter for formParams
|
||||
*******************************************************************************/
|
||||
public Map<String, List<String>> getFormParams()
|
||||
{
|
||||
return (this.formParams);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Setter for formParams
|
||||
*******************************************************************************/
|
||||
public void setFormParams(Map<String, List<String>> formParams)
|
||||
{
|
||||
this.formParams = formParams;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for formParams
|
||||
*******************************************************************************/
|
||||
public ProcessBasedRouterPayload withFormParams(Map<String, List<String>> formParams)
|
||||
{
|
||||
this.formParams = formParams;
|
||||
return (this);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user