com.ecfeed.junit.message.ArgumentChainJUnit5 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ecfeed.junit Show documentation
Show all versions of ecfeed.junit Show documentation
An open library used to connect to the ecFeed service. It can be also used as a standalone testing tool. It is integrated with Junit5 and generates a stream of test cases using a selected algorithm (e.g. Cartesian, N-Wise). There are no limitations associated with the off-line version but the user cannot access the on-line computation servers and the model database.
The newest version!
package com.ecfeed.junit.message;
import java.lang.reflect.Parameter;
import java.util.Optional;
import org.junit.jupiter.params.provider.Arguments;
import com.ecfeed.junit.EcFeedExtensionStore;
import com.ecfeed.junit.message.processor.DefaultProcessorJUnit5;
import com.ecfeed.junit.message.processor.RequestUpdateProcessorJUnit5;
import com.ecfeed.junit.message.processor.ResultErrorProcessorJUnit5;
import com.ecfeed.junit.message.processor.ResultInfoProcessorJUnit5;
import com.ecfeed.junit.message.processor.ResultProgressProcessorJUnit5;
import com.ecfeed.junit.message.processor.ResultStatusProcessorJUnit5;
import com.ecfeed.junit.message.processor.ResultTestProcessorJUnit5;
import com.ecfeed.junit.message.processor.ResultTotalProgressProcessorJUnit5;
import com.fasterxml.jackson.databind.ObjectMapper;
public interface ArgumentChainJUnit5 {
public static ObjectMapper fMapper = new ObjectMapper(); // TODO remove public
public static Optional extract(String json, Parameter[] parameters, EcFeedExtensionStore store) {
ArgumentChainJUnit5 processor;
processor = new DefaultProcessorJUnit5(store);
processor = new RequestUpdateProcessorJUnit5(processor, store);
processor = new ResultInfoProcessorJUnit5(processor);
processor = new ResultErrorProcessorJUnit5(processor);
processor = new ResultTotalProgressProcessorJUnit5(processor);
processor = new ResultProgressProcessorJUnit5(processor);
processor = new ResultStatusProcessorJUnit5(processor, store);
processor = new ResultTestProcessorJUnit5(processor, parameters, store);
return processor.process(json);
}
public Optional process(String json);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy