// Path: src/test/java/org/simondean/vertx/async/unit/examples/ForeverExample.java
// public class ForeverExample extends BaseExample {
//   public void foreverExample(AsyncResultHandler<String> handler) {
//     Async.forever()
//       .task(taskHandler -> {
//         someAsyncMethodThatTakesAHandler(taskHandler);
//       })
//       .run(vertx, result -> {
//         handler.handle(DefaultAsyncResult.fail(result));
//       });
//   }
// 
//   private void someAsyncMethodThatTakesAHandler(AsyncResultHandler<Void> handler) {
//     handler.handle(DefaultAsyncResult.fail(new Exception("Fail")));
//   }
// }


import org.junit.Test;
import org.simondean.vertx.async.unit.examples.ForeverExample;
import static org.assertj.core.api.Assertions.assertThat;
package org.simondean.vertx.async.unit;



public class ForeverExampleTest {
  @Test
  public void itHandlesFailure() {
// Path: src/test/java/org/simondean/vertx/async/unit/examples/ForeverExample.java
// public class ForeverExample extends BaseExample {
//   public void foreverExample(AsyncResultHandler<String> handler) {
//     Async.forever()
//       .task(taskHandler -> {
//         someAsyncMethodThatTakesAHandler(taskHandler);
//       })
//       .run(vertx, result -> {
//         handler.handle(DefaultAsyncResult.fail(result));
//       });
//   }
// 
//   private void someAsyncMethodThatTakesAHandler(AsyncResultHandler<Void> handler) {
//     handler.handle(DefaultAsyncResult.fail(new Exception("Fail")));
//   }
// }


// Path: src/test/java/org/simondean/vertx/async/unit/ForeverExampleTest.java
import org.junit.Test;
import org.simondean.vertx.async.unit.examples.ForeverExample;
import static org.assertj.core.api.Assertions.assertThat;

package org.simondean.vertx.async.unit;



public class ForeverExampleTest {
  @Test
  public void itHandlesFailure() {
    ForeverExample example = new ForeverExample();