Refactoring Code - Naming corrections
This commit is contained in:
parent
633162a04b
commit
b58c2341da
@ -19,7 +19,7 @@ import com.baeldung.datetime.UseLocalDateTime;
|
|||||||
public class StringConversionTest {
|
public class StringConversionTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenConvertedToint_thenCorrect() {
|
public void whenConvertedToInt_thenCorrect() {
|
||||||
assertEquals(Integer.parseInt("1"), 1);
|
assertEquals(Integer.parseInt("1"), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ public class StringConversionTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenConvertedToJava6Date_thenCorrect() throws ParseException {
|
public void whenConvertedToDate_thenCorrect() throws ParseException {
|
||||||
String str = "15/10/2013";
|
String str = "15/10/2013";
|
||||||
SimpleDateFormat formatter = new SimpleDateFormat("dd/M/yyyy");
|
SimpleDateFormat formatter = new SimpleDateFormat("dd/M/yyyy");
|
||||||
Date date1 = formatter.parse(str);
|
Date date1 = formatter.parse(str);
|
||||||
@ -86,7 +86,7 @@ public class StringConversionTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenConvertedToJava8Date_thenCorrect() throws ParseException {
|
public void whenConvertedToLocalDateTime_thenCorrect() throws ParseException {
|
||||||
String str = "2007-12-03T10:15:30";
|
String str = "2007-12-03T10:15:30";
|
||||||
LocalDateTime localDateTime = new UseLocalDateTime().getLocalDateTimeUsingParseMethod(str);
|
LocalDateTime localDateTime = new UseLocalDateTime().getLocalDateTimeUsingParseMethod(str);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user