Created
May 8, 2018 15:15
-
-
Save igormukhin/e00adac1e024848be172dfe851f4eca7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.wirthedv.tools.developer.interview; | |
import static org.junit.Assert.assertEquals; | |
import java.util.Calendar; | |
import org.junit.Test; | |
public class TestYearMonth { | |
@Test | |
public void testAddFourMonths() { | |
YearMonth now = new YearMonth(2013, Calendar.NOVEMBER); | |
// test | |
YearMonth later = now.plusMonths(4); | |
YearMonth expectedLater = new YearMonth(2014, Calendar.MARCH); | |
assertEquals(expectedLater, later); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment