File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed
main/java/org/example/app
test/java/org/example/app
list/src/test/java/org/example/list Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 33 */
44package org .example .app ;
55
6+ import org .apache .commons .text .WordUtils ;
67import org .example .list .LinkedList ;
78
9+ import static org .example .app .MessageUtils .getMessage ;
810import static org .example .utilities .StringUtils .join ;
911import static org .example .utilities .StringUtils .split ;
10- import static org .example .app .MessageUtils .getMessage ;
11-
12- import org .apache .commons .text .WordUtils ;
1312
1413public class App {
1514 public static void main (String [] args ) {
Original file line number Diff line number Diff line change 88import static org .junit .jupiter .api .Assertions .assertEquals ;
99
1010class MessageUtilsTest {
11- @ Test void testGetMessage () {
11+ @ Test
12+ void testGetMessage () {
1213 assertEquals ("Hello World!" , MessageUtils .getMessage ());
1314 }
1415}
Original file line number Diff line number Diff line change 88import static org .junit .jupiter .api .Assertions .*;
99
1010class LinkedListTest {
11- @ Test void testConstructor () {
11+ @ Test
12+ void testConstructor () {
1213 LinkedList list = new LinkedList ();
1314 assertEquals (0 , list .size ());
1415 }
1516
16- @ Test void testAdd () {
17+ @ Test
18+ void testAdd () {
1719 LinkedList list = new LinkedList ();
1820
1921 list .add ("one" );
@@ -25,7 +27,8 @@ class LinkedListTest {
2527 assertEquals ("two" , list .get (1 ));
2628 }
2729
28- @ Test void testRemove () {
30+ @ Test
31+ void testRemove () {
2932 LinkedList list = new LinkedList ();
3033
3134 list .add ("one" );
@@ -39,7 +42,8 @@ class LinkedListTest {
3942 assertEquals (0 , list .size ());
4043 }
4144
42- @ Test public void testRemoveMissing () {
45+ @ Test
46+ public void testRemoveMissing () {
4347 LinkedList list = new LinkedList ();
4448
4549 list .add ("one" );
You can’t perform that action at this time.
0 commit comments