All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ecfeed.core.json.TestCasesUserInputParser Maven / Gradle / Ivy

Go to download

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.core.json;

import com.ecfeed.core.utils.TestCasesUserInput;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;

public final class TestCasesUserInputParser {

	public static TestCasesUserInput parseRequest(String request) { 

		try {
			ObjectMapper mapper = new ObjectMapper();
			// mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
			mapper.enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);

			return mapper.reader().forType(TestCasesUserInput.class).readValue(request);
		} catch (Exception e) {
			throw new RuntimeException("Can not parse user input. " + e.getMessage());
		}

	}	

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy