org.evosuite.junit.UnitTestAdapter Maven / Gradle / Ivy
The newest version!
/**
* Copyright (C) 2010-2018 Gordon Fraser, Andrea Arcuri and EvoSuite
* contributors
*
* This file is part of EvoSuite.
*
* EvoSuite is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3.0 of the License, or
* (at your option) any later version.
*
* EvoSuite is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with EvoSuite. If not, see .
*/
/**
*
*/
package org.evosuite.junit;
import java.util.List;
import java.util.Map;
import org.evosuite.testcase.TestCase;
import org.evosuite.testcase.TestCodeVisitor;
/**
* UnitTestAdapter interface.
*
* @author fraser
*/
public interface UnitTestAdapter {
/**
* Get all the framework dependent imports
*
* @return a {@link java.lang.String} object.
*/
public String getImports();
/**
* Get the framework specific definition of the test class
*
* @param testName a {@link java.lang.String} object.
* @return a {@link java.lang.String} object.
*/
public String getClassDefinition(String testName);
/**
* Get the framework specific definition of a test method
*
* @param testName a {@link java.lang.String} object.
* @return a {@link java.lang.String} object.
*/
public String getMethodDefinition(String testName);
/**
* Get the class definition of a test suite
*
* @param tests a {@link java.util.List} object.
* @return a {@link java.lang.String} object.
*/
public String getSuite(List tests);
/**
* Return the sequence of method calls for a test
*
* @param test a {@link org.evosuite.testcase.TestCase} object.
* @param exceptions a {@link java.util.Map} object.
* @param id a int.
* @return a {@link java.lang.String} object.
*/
public String getTestString(int id, TestCase test, Map exceptions);
/**
* Return the sequence of method calls for a test
*
* @param test a {@link org.evosuite.testcase.TestCase} object.
* @param exceptions a {@link java.util.Map} object.
* @param visitor a {@link org.evosuite.testcase.TestCodeVisitor} object.
* @param id a int.
* @return a {@link java.lang.String} object.
*/
public String getTestString(int id, TestCase test,
Map exceptions, TestCodeVisitor visitor);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy