1
1
package com .codedifferently .footballteamobject ;
2
2
3
- import java .util .HashMap ;
4
- import java .util .Map ;
5
-
6
3
import static org .assertj .core .api .Assertions .assertThatThrownBy ;
7
4
import static org .junit .jupiter .api .Assertions .assertEquals ;
8
5
import static org .junit .jupiter .api .Assertions .assertFalse ;
9
6
import static org .junit .jupiter .api .Assertions .assertNotNull ;
10
7
import static org .junit .jupiter .api .Assertions .assertTrue ;
11
- import org .junit .jupiter .api .BeforeEach ;
12
- import org .junit .jupiter .api .Test ;
13
8
14
9
import com .codedifferently .footballteamobject .FootballTeam .Conference ;
10
+ import java .util .HashMap ;
11
+ import java .util .Map ;
12
+ import org .junit .jupiter .api .BeforeEach ;
13
+ import org .junit .jupiter .api .Test ;
15
14
16
15
public class FootballTeamTest {
17
16
FootballTeam team ;
@@ -72,7 +71,8 @@ public void testPowerFiveConferences() {
72
71
73
72
@ Test
74
73
public void testGroupOfFiveConferences () {
75
- FootballTeam team = new FootballTeam ("Team Name" , "Location" , Conference .AMERICAN , new HashMap <>());
74
+ FootballTeam team =
75
+ new FootballTeam ("Team Name" , "Location" , Conference .AMERICAN , new HashMap <>());
76
76
assertFalse (team .isPowerFive ());
77
77
team = new FootballTeam ("Team Name" , "Location" , Conference .CONFERENCE_USA , new HashMap <>());
78
78
assertFalse (team .isPowerFive ());
@@ -88,8 +88,11 @@ public void testGroupOfFiveConferences() {
88
88
void testDuplicatePlayerException () {
89
89
String message = "A player with that number already exists." ;
90
90
DuplicatePlayerException exception = new DuplicatePlayerException (message );
91
- assertThatThrownBy (() -> { throw exception ; })
92
- .isInstanceOf (DuplicatePlayerException .class )
93
- .hasMessage (message );
94
- }
91
+ assertThatThrownBy (
92
+ () -> {
93
+ throw exception ;
94
+ })
95
+ .isInstanceOf (DuplicatePlayerException .class )
96
+ .hasMessage (message );
97
+ }
95
98
}
0 commit comments