File tree Expand file tree Collapse file tree
src/test/java/api/java/lang Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import org .assertj .core .api .Assertions ;
44import org .junit .Test ;
55
6+ import static org .assertj .core .api .Assertions .*;
7+
68public class IntegerTest {
79
810 @ Test
911 public void givenNumericStringHavingZeroNotSignificant_whenParseInt_thenOK () {
10- Assertions . assertThat (Integer .parseInt ("00000" )).isEqualTo (0 );
12+ assertThat (Integer .parseInt ("00000" )).isEqualTo (0 );
1113 }
1214}
Original file line number Diff line number Diff line change 33import org .assertj .core .api .Assertions ;
44import org .junit .Test ;
55
6+ import static org .assertj .core .api .Assertions .*;
7+
68public class StringTest {
79
810 public static final String ID_ON_12 = "830012918511" ;
911
1012 @ Test
1113 public void givenIntegerString_whenLeftPaddingWith0SizeIs13_thenPaddTo13 () {
1214 String exid = ID_ON_12 ;
13- Assertions . assertThat (String .format ("%013d" , Long .valueOf (exid ))).isEqualTo ("0" + ID_ON_12 );
15+ assertThat (String .format ("%013d" , Long .valueOf (exid ))).isEqualTo ("0" + ID_ON_12 );
1416 }
1517}
You can’t perform that action at this time.
0 commit comments