EvoSuite / evosuite

EvoSuite - automated generation of JUnit test suites for Java classes
http://www.evosuite.org
GNU Lesser General Public License v3.0
823 stars 341 forks source link

"Type with the same simple name" error in compiling generated tests #447

Open jiseongg opened 1 year ago

jiseongg commented 1 year ago

Context

I am doing a large experiment with EvoSuite. I am manually compiling generated test cases with javac command. I found the compile error message like follow.

ZooKeeperService_ESTest.java:51: error: a type with the same simple name     is already defined by the single-type-import of Future

The reason is due to the following two import statements

import java.util.concurrent.Future;
import io.netty.util.concurrent.Future;

I am wondering if there is the option to print test suite without import so that all class name will be printed with the form of fully qualified name. (I am running EvoSuite on Apache ZooKeeper, just so you know.)

jose commented 1 year ago

I am wondering if there is the option to print test suite without import so that all class name will be printed with the form of fully qualified name.

I'm not aware of such option.