package net.franckbenault.testjavadate;

import static org.junit.Assert.*;

import java.time.LocalTime;

import org.junit.Test;

public class LocalTimeTestCase {

	@Test
	public void test01Creation() {
		LocalTime time = LocalTime.of(21, 50);
		assertNotNull(time);
		assertEquals(time.getHour(),21);
	}

	@Test
	public void test01bCreationNow() {
		LocalTime time = LocalTime.now();
		assertNotNull(time);
		
	}
	
}

@@ -86,25 +86,150 @@
 va.time.
-LocalTime
+DayOfWeek;%0Aimport java.time.LocalDate;%0Aimport java.time.LocalTime;%0Aimport java.time.Month;%0Aimport java.time.temporal.TemporalAdjusters
 ;%0A%0Aimpor
@@ -531,12 +531,464 @@
 ;%0A%09%09%0A%09%7D%0A
-
 %09%0A
+%09%0A%09@Test%0A%09public void test03Plus() %7B%0A%09%09%0A%09%09LocalTime time = LocalTime.of(21, 50);%09%09%0A%09%09time = time.plusHours(4);%0A%09%09assertEquals(time.getHour(),1);%0A%09%09%0A%09%7D%0A%09%0A%09@Test%0A%09public void test04Minus() %7B%0A%09%09%0A%09%09LocalTime time = LocalTime.of(21, 50);%09%0A%09%09time = time.minusMinutes(4);%0A%09%09assertEquals(time.getMinute(),46);%0A%09%09%0A%09%7D%0A%09%0A%09@Test%0A%09public void test05With() %7B%0A%09%09LocalTime time = LocalTime.of(21, 50);%09%0A%09%09time = time.withHour(5);%0A%09%09assertEquals(time.getHour(),5);%0A%0A%09%7D%0A
 %7D%0A

add examples with LocalTime