1818public class StringConversionTest {
1919
2020 @ Test
21- public void whenConvedToInt_thenCorrect () {
21+ public void whenConvertedToInt_thenCorrect () {
2222 String beforeConvStr = "1" ;
2323 int afterConvInt = 1 ;
2424
2525 assertEquals (Integer .parseInt (beforeConvStr ), afterConvInt );
2626 }
2727
2828 @ Test
29- public void whenConvedToInteger_thenCorrect () {
29+ public void whenConvertedToInteger_thenCorrect () {
3030 String beforeConvStr = "12" ;
3131 Integer afterConvInteger = 12 ;
3232
3333 assertEquals (Integer .valueOf (beforeConvStr ).equals (afterConvInteger ), true );
3434 }
3535
3636 @ Test
37- public void whenConvedTolong_thenCorrect () {
37+ public void whenConvertedTolong_thenCorrect () {
3838 String beforeConvStr = "12345" ;
3939 long afterConvLongPrimitive = 12345 ;
4040
4141 assertEquals (Long .parseLong (beforeConvStr ), afterConvLongPrimitive );
4242 }
4343
4444 @ Test
45- public void whenConvedToLong_thenCorrect () {
45+ public void whenConvertedToLong_thenCorrect () {
4646 String beforeConvStr = "14567" ;
4747 Long afterConvLong = 14567l ;
4848
4949 assertEquals (Long .valueOf (beforeConvStr ).equals (afterConvLong ), true );
5050 }
5151
5252 @ Test
53- public void whenConvedTodouble_thenCorrect () {
53+ public void whenConvertedTodouble_thenCorrect () {
5454 String beforeConvStr = "1.4" ;
5555 double afterConvDoublePrimitive = 1.4 ;
5656
5757 assertEquals (Double .parseDouble (beforeConvStr ), afterConvDoublePrimitive , 0.0 );
5858 }
5959
6060 @ Test
61- public void whenConvedToDouble_thenCorrect () {
61+ public void whenConvertedToDouble_thenCorrect () {
6262 String beforeConvStr = "145.67" ;
6363 double afterConvDouble = 145.67d ;
6464
6565 assertEquals (Double .valueOf (beforeConvStr ).equals (afterConvDouble ), true );
6666 }
6767
6868 @ Test
69- public void whenConvedToByteArr_thenCorrect () {
69+ public void whenConvertedToByteArr_thenCorrect () {
7070 String beforeConvStr = "abc" ;
7171 byte [] afterConvByteArr = new byte [] { 'a' , 'b' , 'c' };
7272
7373 assertEquals (Arrays .equals (beforeConvStr .getBytes (), afterConvByteArr ), true );
7474 }
7575
7676 @ Test
77- public void whenConvedToboolean_thenCorrect () {
77+ public void whenConvertedToboolean_thenCorrect () {
7878 String beforeConvStr = "true" ;
7979 boolean afterConvBooleanPrimitive = true ;
8080
8181 assertEquals (Boolean .parseBoolean (beforeConvStr ), afterConvBooleanPrimitive );
8282 }
8383
8484 @ Test
85- public void whenConvedToBoolean_thenCorrect () {
85+ public void whenConvertedToBoolean_thenCorrect () {
8686 String beforeConvStr = "true" ;
8787 Boolean afterConvBoolean = true ;
8888
8989 assertEquals (Boolean .valueOf (beforeConvStr ), afterConvBoolean );
9090 }
9191
9292 @ Test
93- public void whenConvedToCharArr_thenCorrect () {
93+ public void whenConvertedToCharArr_thenCorrect () {
9494 String beforeConvStr = "hello" ;
9595 char [] afterConvCharArr = { 'h' , 'e' , 'l' , 'l' , 'o' };
9696
9797 assertEquals (Arrays .equals (beforeConvStr .toCharArray (), afterConvCharArr ), true );
9898 }
9999
100100 @ Test
101- public void whenConvedToDate_thenCorrect () throws ParseException {
101+ public void whenConvertedToDate_thenCorrect () throws ParseException {
102102 String beforeConvStr = "15/10/2013" ;
103103 int afterConvCalendarDay = 15 ;
104104 int afterConvCalendarMonth = 9 ;
@@ -114,7 +114,7 @@ public void whenConvedToDate_thenCorrect() throws ParseException {
114114 }
115115
116116 @ Test
117- public void whenConvedToLocalDateTime_thenCorrect () {
117+ public void whenConvertedToLocalDateTime_thenCorrect () {
118118 String str = "2007-12-03T10:15:30" ;
119119 int afterConvCalendarDay = 03 ;
120120 Month afterConvCalendarMonth = Month .DECEMBER ;
0 commit comments