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 3
3
*/
4
4
package org .example .app ;
5
5
6
+ import org .apache .commons .text .WordUtils ;
6
7
import org .example .list .LinkedList ;
7
8
9
+ import static org .example .app .MessageUtils .getMessage ;
8
10
import static org .example .utilities .StringUtils .join ;
9
11
import static org .example .utilities .StringUtils .split ;
10
- import static org .example .app .MessageUtils .getMessage ;
11
-
12
- import org .apache .commons .text .WordUtils ;
13
12
14
13
public class App {
15
14
public static void main (String [] args ) {
Original file line number Diff line number Diff line change 8
8
import static org .junit .jupiter .api .Assertions .assertEquals ;
9
9
10
10
class MessageUtilsTest {
11
- @ Test void testGetMessage () {
11
+ @ Test
12
+ void testGetMessage () {
12
13
assertEquals ("Hello World!" , MessageUtils .getMessage ());
13
14
}
14
15
}
Original file line number Diff line number Diff line change 8
8
import static org .junit .jupiter .api .Assertions .*;
9
9
10
10
class LinkedListTest {
11
- @ Test void testConstructor () {
11
+ @ Test
12
+ void testConstructor () {
12
13
LinkedList list = new LinkedList ();
13
14
assertEquals (0 , list .size ());
14
15
}
15
16
16
- @ Test void testAdd () {
17
+ @ Test
18
+ void testAdd () {
17
19
LinkedList list = new LinkedList ();
18
20
19
21
list .add ("one" );
@@ -25,7 +27,8 @@ class LinkedListTest {
25
27
assertEquals ("two" , list .get (1 ));
26
28
}
27
29
28
- @ Test void testRemove () {
30
+ @ Test
31
+ void testRemove () {
29
32
LinkedList list = new LinkedList ();
30
33
31
34
list .add ("one" );
@@ -39,7 +42,8 @@ class LinkedListTest {
39
42
assertEquals (0 , list .size ());
40
43
}
41
44
42
- @ Test public void testRemoveMissing () {
45
+ @ Test
46
+ public void testRemoveMissing () {
43
47
LinkedList list = new LinkedList ();
44
48
45
49
list .add ("one" );
You can’t perform that action at this time.
0 commit comments