package io.vertx.ext.unit.report;

import io.vertx.codegen.annotations.CacheReturn;
import io.vertx.codegen.annotations.Fluent;
import io.vertx.codegen.annotations.VertxGen;
import io.vertx.core.Handler;

Report the execution of a test case.
Author:Julien Viet
/** * Report the execution of a test case. * * @author <a href="mailto:julien@julienviet.com">Julien Viet</a> */
@VertxGen public interface TestCaseReport {
Returns:the test case name
/** * @return the test case name */
@CacheReturn String name();
Set a callback for completion, the specified handler is invoked when the test exec has completed.
Params:
  • handler – the completion handler
Returns:a reference to this, so the API can be used fluently
/** * Set a callback for completion, the specified {@code handler} is invoked when the test exec has completed. * * @param handler the completion handler * @return a reference to this, so the API can be used fluently */
@Fluent TestCaseReport endHandler(Handler<TestResult> handler); }