Evosuite - класс не найден org/apache/commons/cli/CommandLine
Я пытаюсь выполнить командную строку evosuite для моего кода. но я получаю следующую ошибку Как объяснено в документации, я установил путь к evosuite
set EVOSUITE=java -jar "%CD%"\evosuite-1.0.5.jar
После выполнения следующей команды
%EVOSUITE% -class ui.commandline.qa.ExecuteBatchJob -projectCP C:\dev\repos\ui\target\classes
Я получаю следующую ошибку.
* EvoSuite 1.0.5
* Going to generate test cases for class: ui.commandline.qa.ExecuteBatchJob
* Starting client
* Connecting to master process on port 3486
* Analyzing classpath:
* Error while initializing target class: Class not found: org/apache/commons/cli/CommandLine: java.lang.NullPointerException: Class not found org/apache/commons/cli/CommandLine
[MASTER] 09:27:38.581 [logback-2] ERROR TestSuiteGenerator - Problem for ui.commandline.qa.ExecuteBatchJob. Full stack:
java.lang.ClassNotFoundException: Class not found: org/apache/commons/cli/CommandLine: java.lang.NullPointerException: Class not found org/apache/commons/cli/CommandLine
at org.evosuite.instrumentation.InstrumentingClassLoader.instrumentClass(InstrumentingClassLoader.java:201) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.instrumentation.InstrumentingClassLoader.loadClass(InstrumentingClassLoader.java:168) ~[evosuite-1.0.5.jar:1.0.5]
at java.lang.Class.forName0(Native Method) ~[na:1.8.0_131]
at java.lang.Class.forName(Unknown Source) ~[na:1.8.0_131]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_131]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_131]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_131]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_131]
at org.evosuite.testcase.statements.MethodStatement$1.execute(MethodStatement.java:257) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.testcase.statements.AbstractStatement.exceptionHandler(AbstractStatement.java:169) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.testcase.statements.MethodStatement.execute(MethodStatement.java:220) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.testcase.execution.TestRunnable.executeStatements(TestRunnable.java:307) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:213) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:55) ~[evosuite-1.0.5.jar:1.0.5]
at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_131]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_131]
Caused by: java.lang.RuntimeException: Class not found: org/apache/commons/cli/CommandLine: java.lang.NullPointerException: Class not found org/apache/commons/cli/CommandLine
at org.evosuite.runtime.util.ComputeClassWriter.getCommonSuperClass(ComputeClassWriter.java:58) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.ClassWriter.a(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.Frame.a(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.Frame.a(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.MethodWriter.visitMaxs(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitMaxs(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitMaxs(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitMaxs(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.runtime.instrumentation.LoopCounterMethodAdapter.visitMaxs(LoopCounterMethodAdapter.java:48) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitMaxs(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.commons.LocalVariablesSorter.visitMaxs(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.instrumentation.MethodEntryAdapter.visitMaxs(MethodEntryAdapter.java:109) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitMaxs(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.instrumentation.LineNumberMethodAdapter.visitMaxs(LineNumberMethodAdapter.java:127) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.commons.LocalVariablesSorter.visitMaxs(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitMaxs(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.tree.MethodNode.accept(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.commons.JSRInlinerAdapter.visitEnd(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.tree.MethodNode.accept(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.graphs.cfg.CFGMethodAdapter.visitEnd(CFGMethodAdapter.java:263) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.tree.MethodNode.accept(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.tree.MethodNode.accept(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.shaded.org.objectweb.asm.tree.ClassNode.accept(Unknown Source) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.instrumentation.BytecodeInstrumentation.transformBytes(BytecodeInstrumentation.java:275) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.instrumentation.InstrumentingClassLoader.getTransformedBytes(InstrumentingClassLoader.java:175) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.instrumentation.InstrumentingClassLoader.instrumentClass(InstrumentingClassLoader.java:192) ~[evosuite-1.0.5.jar:1.0.5]
... 17 common frames omitted
Caused by: java.lang.NullPointerException: Class not found org/apache/commons/cli/CommandLine
at org.evosuite.runtime.util.ComputeClassWriter.typeInfo(ComputeClassWriter.java:186) ~[evosuite-1.0.5.jar:1.0.5]
at org.evosuite.runtime.util.ComputeClassWriter.getCommonSuperClass(ComputeClassWriter.java:55) ~[evosuite-1.0.5.jar:1.0.5]
... 44 common frames omitted
* Computation finished
[MASTER] 09:27:41.244 [main] ERROR SearchStatistics - No statistics has been saved because EvoSuite failed to generate any test case
[MASTER] 09:27:41.353 [main] ERROR TestGeneration - failed to write statistics data
Commons-cli-1.4 отсутствует; Мне нужна помощь, где разместить файл jar commons-cli-1.4.
Спасибо