package io.dropwizard.jersey.jsr310;

import org.junit.jupiter.api.Test;

import java.time.LocalDate;

import static org.assertj.core.api.Assertions.assertThat;

class LocalDateParamTest {
    @Test
    void parsesDateTimes() throws Exception {
        final LocalDateParam param = new LocalDateParam("2012-11-19");

        assertThat(param.get())
                .isEqualTo(LocalDate.of(2012, 11, 19));
    }
}
