Closed hu-chia closed 5 years ago
Can you share a small reproducer (class, test class and how to run)? Thanks
this is my testng listener, it was invoked by mvn test
command, I omitted some of not important code.
actually, there also is error occurs to Google Guava. I don't know is testng or maven runtime environment result in error.
public class SwaggerReporter implements IReporter {
@Override
public void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectory) {
// collect test result
post(params);
}
private static void post(String params) {
HttpClient httpClient = Vertx.vertx().createHttpClient();
HttpClientRequest post = httpClient.post(url, response -> {
// do something
});
post.write(params);
post.end();
}
}
Can you please share a full reproducer (even simplified) ? As it's most likely a classpath issue, the snippet above won't help.
I upgraded my maven plugins and vertx, at the newest version of them, webclient can work correctly. thanks for your concerning, please close this issue.
We use maven and testng build and invoke our unittest, therefore I try report my unittest result to a http server using
vertx.createHttpClient()
. this is the error message: