com.jccworld.personamockserver.challenge.Challenge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persona-mock-server Show documentation
Show all versions of persona-mock-server Show documentation
A tool to run a basic server that provides mock answers based on personas. I.e. logged out, logged in as Bob, logged in as Jim.
Allows full customisation over response, such as headers or logic based responses.
Provides consistent and reliable responses everytime.
package com.jccworld.personamockserver.challenge;
import spark.Request;
import spark.Response;
/**
* @author johncrossley
* @see https://github.com/JohnCrossley/PersonaMockServer
*/
public interface Challenge {
CustomResponse perform(final Request request, final Response response) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy