11package com .codedifferently .footballteamobject ;
22
3- import java .util .HashMap ;
4- import java .util .Map ;
5-
63import static org .assertj .core .api .Assertions .assertThatThrownBy ;
74import static org .junit .jupiter .api .Assertions .assertEquals ;
85import static org .junit .jupiter .api .Assertions .assertFalse ;
96import static org .junit .jupiter .api .Assertions .assertNotNull ;
107import static org .junit .jupiter .api .Assertions .assertTrue ;
11- import org .junit .jupiter .api .BeforeEach ;
12- import org .junit .jupiter .api .Test ;
138
149import 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 ;
1514
1615public class FootballTeamTest {
1716 FootballTeam team ;
@@ -72,7 +71,8 @@ public void testPowerFiveConferences() {
7271
7372 @ Test
7473 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 <>());
7676 assertFalse (team .isPowerFive ());
7777 team = new FootballTeam ("Team Name" , "Location" , Conference .CONFERENCE_USA , new HashMap <>());
7878 assertFalse (team .isPowerFive ());
@@ -88,8 +88,11 @@ public void testGroupOfFiveConferences() {
8888 void testDuplicatePlayerException () {
8989 String message = "A player with that number already exists." ;
9090 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+ }
9598}
0 commit comments