Skip to content

Commit 56b0884

Browse files
committed
Change name of variables in test iluwatar#498
1 parent 863ea75 commit 56b0884

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: object-mother/src/test/java/com/iluwatar/objectmother/test/RoyaltyObjectMotherTest.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -45,26 +45,26 @@ public void unsuccessfulKingFlirt() {
4545

4646
@Test
4747
public void queenIsBlockingFlirtCauseDrunkKing() {
48-
King soberUnhappyKing = RoyaltyObjectMother.createDrunkKing();
48+
King drunkUnhappyKing = RoyaltyObjectMother.createDrunkKing();
4949
Queen notFlirtyQueen = RoyaltyObjectMother.createNotFlirtyQueen();
50-
soberUnhappyKing.flirt(notFlirtyQueen);
51-
assertFalse(soberUnhappyKing.isHappy());
50+
drunkUnhappyKing.flirt(notFlirtyQueen);
51+
assertFalse(drunkUnhappyKing.isHappy());
5252
}
5353

5454
@Test
5555
public void queenIsBlockingFlirt() {
56-
King soberUnhappyKing = RoyaltyObjectMother.createHappyKing();
56+
King soberHappyKing = RoyaltyObjectMother.createHappyKing();
5757
Queen notFlirtyQueen = RoyaltyObjectMother.createNotFlirtyQueen();
58-
soberUnhappyKing.flirt(notFlirtyQueen);
59-
assertFalse(soberUnhappyKing.isHappy());
58+
soberHappyKing.flirt(notFlirtyQueen);
59+
assertFalse(soberHappyKing.isHappy());
6060
}
6161

6262
@Test
6363
public void successfullKingFlirt() {
64-
King soberUnhappyKing = RoyaltyObjectMother.createHappyKing();
64+
King soberHappyKing = RoyaltyObjectMother.createHappyKing();
6565
Queen flirtyQueen = RoyaltyObjectMother.createFlirtyQueen();
66-
soberUnhappyKing.flirt(flirtyQueen);
67-
assertTrue(soberUnhappyKing.isHappy());
66+
soberHappyKing.flirt(flirtyQueen);
67+
assertTrue(soberHappyKing.isHappy());
6868
}
6969

7070
@Test

0 commit comments

Comments
 (0)