EvoSuite / evosuite

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

java.lang.RuntimeException: Stub! #307

Open shellnalu opened 4 years ago

shellnalu commented 4 years ago

Context

Please provide below a detailed introduction to the issue itself, and describe what you were doing when the issue happened. Or, what do you want to achieve?

Steps to Reproduce

Please break down here below all the needed steps to reproduce the issue. [If possible, please upload an example of the project you are generating tests for.]

  1. Android studio[3.6.1] installed evosuite plugin
  2. dependencies testCompile 'org.evosuite:evosuite-standalone-runtime:1.0.3'
  3. use evosuite-1.0.3.jar
  4. genreate tests has error log 5.use evosuite-1.0.6.jar happen same error

[MASTER] 17:29:46.191 [pool-2-thread-1] ERROR TestSuiteGenerator - Problem for com.my.ep.test.common.util.FileUtils. Full stack: java.lang.RuntimeException: Stub! at org.xmlpull.v1.XmlPullParserFactory.newInstance(XmlPullParserFactory.java:16) ~[android.jar:na] at com.thoughtworks.xstream.io.xml.XppDriver.createParser(XppDriver.java:57) ~[evosuite-1.0.3.jar:1.0.3] at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54) ~[evosuite-1.0.3.jar:1.0.3] at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:65) ~[evosuite-1.0.3.jar:1.0.3] at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1070) ~[evosuite-1.0.3.jar:1.0.3] at org.evosuite.setup.InheritanceTreeGenerator.readJDKData(InheritanceTreeGenerator.java:455) ~[evosuite-1.0.3.jar:1.0.3] at org.evosuite.setup.InheritanceTreeGenerator.createFromClassPath(InheritanceTreeGenerator.java:82) ~[evosuite-1.0.3.jar:1.0.3] at org.evosuite.setup.DependencyAnalysis.initInheritanceTree(DependencyAnalysis.java:77) ~[evosuite-1.0.3.jar:1.0.3] at org.evosuite.setup.DependencyAnalysis.analyzeClass(DependencyAnalysis.java:130) ~[evosuite-1.0.3.jar:1.0.3] at org.evosuite.TestSuiteGenerator.generateTestSuite(TestSuiteGenerator.java:110) ~[evosuite-1.0.3.jar:1.0.3] at org.evosuite.rmi.service.ClientNodeImpl$1.run(ClientNodeImpl.java:145) [evosuite-1.0.3.jar:1.0.3] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_212-release] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_212-release] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_212-release] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_212-release] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_212-release]

EvoSuite Arguments

Please provide the whole EvoSuite commmand you executed (if relevant)

Current Result

Please describe here below the current result you got (if relevant) [if relevant, include a screenshot]

Expected result

Please describe here below what should be the expected behaviour (if relevant)

Additional info

Please add any information of interest here below

project structure is project