File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/test/java/ch/jalu/configme/properties/types Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 11package ch .jalu .configme .properties .types ;
22
33import ch .jalu .configme .properties .convertresult .ConvertErrorRecorder ;
4+ import org .junit .jupiter .api .AfterAll ;
45import org .junit .jupiter .api .Test ;
6+ import org .junit .jupiter .api .extension .ExtendWith ;
7+ import org .mockito .junit .jupiter .MockitoExtension ;
58
69import java .time .LocalDate ;
710import java .time .LocalDateTime ;
1922/**
2023 * Test for {@link TemporalType}.
2124 */
25+ @ ExtendWith (MockitoExtension .class )
2226public class TemporalTypeTest {
2327
28+ @ AfterAll
29+ static void reset () {
30+ ConvertErrorRecorder errorRecorder = new ConvertErrorRecorder ();
31+ TemporalType .LOCAL_DATE .convert ("1970-01-01" , errorRecorder );
32+ TemporalType .LOCAL_TIME .convert ("12:00:00" , errorRecorder );
33+ TemporalType .LOCAL_DATE_TIME .convert ("1970-01-01 12:00:00" , errorRecorder );
34+ }
35+
2436 @ Test
2537 void shouldNotAllowToInstantiateTemporalTypeWithInvalidArguments () {
2638 // when
You can’t perform that action at this time.
0 commit comments