001/** 002 * Copyright (C) 2016 Gary Gregory. All rights reserved. 003 * 004 * See the NOTICE.txt file distributed with this work for additional 005 * information regarding copyright ownership. 006 * 007 * Licensed under the Apache License, Version 2.0 (the "License"); 008 * you may not use this file except in compliance with the License. 009 * You may obtain a copy of the License at 010 * 011 * http://www.apache.org/licenses/LICENSE-2.0 012 * 013 * Unless required by applicable law or agreed to in writing, software 014 * distributed under the License is distributed on an "AS IS" BASIS, 015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 016 * See the License for the specific language governing permissions and 017 * limitations under the License. 018 */ 019 020package com.garygregory.jcommander.converters.time; 021 022import java.time.MonthDay; 023 024import org.junit.Test; 025 026import com.garygregory.jcommander.converters.AbstractStringConverterBasicTest; 027 028/** 029 * Tests {@link MonthDayConverter}. 030 * 031 * @since 1.0.0 032 * @author <a href="mailto:ggregory@garygregory.com">Gary Gregory</a> 033 */ 034public class MonthDayConverterTest extends AbstractStringConverterBasicTest<MonthDay> { 035 036 public MonthDayConverterTest() { 037 super(new MonthDayConverter(null)); 038 } 039 040 @Test 041 public void testMonthDay() { 042 testRoundtrip(MonthDay.parse("--12-03")); 043 } 044 045}