why I use randoop to generate unit test, it tells me that the class can not found

11 views
Skip to first unread message

吴肖为

unread,
Sep 12, 2024, 11:23:54 PM9/12/24
to Randoop discussions
the command is as 

java -ea -classpath /home/ubuntu/bnps-web/randoop-4.3.3/randoop-all-4.3.3.jar randoop.main.Main gentests --testclass=com.ksc.bpns.service.WebhookService

the dir to execute the cmd the same as the dir of WebhookService

but it shows

Randoop for Java version "4.3.3, local changes, branch master, commit 2a061f2, 2024-08-26".


Could not load class WebhookService: Unable to load class "WebhookService" due to exception: java.lang.ClassNotFoundException: WebhookService

Classpath:

can anybody helps me, do I miss some parameters


Reply all
Reply to author
Forward
0 new messages