44import static org .junit .jupiter .api .Assertions .assertEquals ;
55import static org .junit .jupiter .api .Assertions .assertFalse ;
66import static org .junit .jupiter .api .Assertions .assertNotEquals ;
7- import org .junit .jupiter .api .BeforeEach ;
8- import org .junit .jupiter .api .Test ;
97
108import com .codedifferently .lesson16 .boxer .Boxer .BoxerHasNoFightsException ;
119import com .codedifferently .lesson16 .boxer .Boxer .BoxerIsRetiredException ;
10+ import org .junit .jupiter .api .BeforeEach ;
11+ import org .junit .jupiter .api .Test ;
1212
1313public class BoxerTest {
1414
@@ -31,8 +31,10 @@ void testRest_restingToIncreaseHealth() {
3131 boxer .rest ();
3232 assertNotEquals (boxer .getHealth (), previousHealth );
3333 }
34+
3435 @ Test
35- void testGetFightHistory_makingAFighterToHaveABout () throws BoxerHasNoFightsException , BoxerIsRetiredException {
36+ void testGetFightHistory_makingAFighterToHaveABout ()
37+ throws BoxerHasNoFightsException , BoxerIsRetiredException {
3638 Boxer mike = new Boxer ("mike" , 1000 , 1000 );
3739 boxer .bout (mike );
3840 assertEquals ("You fought " + mike .getName () + " L" , boxer .getFights ());
@@ -57,14 +59,16 @@ void testBout_makingNewBoxerToFightAnotherAndSeeTheResults() throws BoxerIsRetir
5759 }
5860
5961 @ Test
60- void testBout_makingNewBoxerToFightAndDraw () throws BoxerIsRetiredException , BoxerHasNoFightsException {
62+ void testBout_makingNewBoxerToFightAndDraw ()
63+ throws BoxerIsRetiredException , BoxerHasNoFightsException {
6164 Boxer ryan = new Boxer ("Ryan Garcia" , 99 , 99 );
6265 boxer .bout (ryan );
6366 assertEquals (boxer .getFights (), "You fought Ryan Garcia D" );
6467 }
6568
6669 @ Test
67- void testBout_makingNewBoxerToWinAgainstWithBoxer () throws BoxerIsRetiredException , BoxerHasNoFightsException {
70+ void testBout_makingNewBoxerToWinAgainstWithBoxer ()
71+ throws BoxerIsRetiredException , BoxerHasNoFightsException {
6872 Boxer hitman = new Boxer ("Thomas Hearns" , 98 , 98 );
6973 boxer .bout (hitman );
7074 assertEquals (boxer .getFights (), "You fought " + hitman .getName () + " W" );
@@ -128,7 +132,8 @@ void testSetHealth() {
128132 }
129133
130134 @ Test
131- void testBoxerIsRetiredException_retiringBoxerThenThrowingException () throws BoxerIsRetiredException {
135+ void testBoxerIsRetiredException_retiringBoxerThenThrowingException ()
136+ throws BoxerIsRetiredException {
132137 Boxer leaonard = new Boxer ("Sugar ray" , 200 , 200 );
133138 boxer .retire ();
134139 assertThatThrownBy (
0 commit comments