some code samples, various examples of simple modeling ideas and some minor algorithms.

DateTest.java 558B

12345678910111213141516171819202122232425262728
  1. import org.junit.Assert;
  2. import org.junit.After;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. import org.junit.Assert;
  6. public class DateTest
  7. {
  8. @Test
  9. public void toStringTest(){
  10. //when
  11. int day = 27;
  12. int month = 6;
  13. int year = 2018;
  14. //expected
  15. String expected = "27/6/2018";
  16. //actual
  17. // Date date = new Date(int day, int month, int year);
  18. // String actual = date.toString();
  19. //Assert.assertEquals(expected, actual);
  20. }
  21. }