/*
 * Jooby https://jooby.io
 * Apache License Version 2.0 https://jooby.io/LICENSE.txt
 * Copyright 2014 Edgar Espina
 */
package tests.i1806;

import static org.junit.jupiter.api.Assertions.assertEquals;

import java.util.Collections;

import org.junit.jupiter.api.Test;

import io.jooby.apt.ProcessorRunner;
import io.jooby.test.MockRouter;

public class Issue1806 {

  @Test
  public void shouldNotGetListWithNullValue() throws Exception {
    new ProcessorRunner(new C1806())
        .withRouter(
            app -> {
              MockRouter router = new MockRouter(app);
              assertEquals(Collections.emptyList(), router.get("/1806/c").value());
            });
  }
}
