Change name of variables in test #498
This commit is contained in:
parent
863ea75381
commit
56b0884258
@ -45,26 +45,26 @@ public class RoyaltyObjectMotherTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void queenIsBlockingFlirtCauseDrunkKing() {
|
public void queenIsBlockingFlirtCauseDrunkKing() {
|
||||||
King soberUnhappyKing = RoyaltyObjectMother.createDrunkKing();
|
King drunkUnhappyKing = RoyaltyObjectMother.createDrunkKing();
|
||||||
Queen notFlirtyQueen = RoyaltyObjectMother.createNotFlirtyQueen();
|
Queen notFlirtyQueen = RoyaltyObjectMother.createNotFlirtyQueen();
|
||||||
soberUnhappyKing.flirt(notFlirtyQueen);
|
drunkUnhappyKing.flirt(notFlirtyQueen);
|
||||||
assertFalse(soberUnhappyKing.isHappy());
|
assertFalse(drunkUnhappyKing.isHappy());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void queenIsBlockingFlirt() {
|
public void queenIsBlockingFlirt() {
|
||||||
King soberUnhappyKing = RoyaltyObjectMother.createHappyKing();
|
King soberHappyKing = RoyaltyObjectMother.createHappyKing();
|
||||||
Queen notFlirtyQueen = RoyaltyObjectMother.createNotFlirtyQueen();
|
Queen notFlirtyQueen = RoyaltyObjectMother.createNotFlirtyQueen();
|
||||||
soberUnhappyKing.flirt(notFlirtyQueen);
|
soberHappyKing.flirt(notFlirtyQueen);
|
||||||
assertFalse(soberUnhappyKing.isHappy());
|
assertFalse(soberHappyKing.isHappy());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void successfullKingFlirt() {
|
public void successfullKingFlirt() {
|
||||||
King soberUnhappyKing = RoyaltyObjectMother.createHappyKing();
|
King soberHappyKing = RoyaltyObjectMother.createHappyKing();
|
||||||
Queen flirtyQueen = RoyaltyObjectMother.createFlirtyQueen();
|
Queen flirtyQueen = RoyaltyObjectMother.createFlirtyQueen();
|
||||||
soberUnhappyKing.flirt(flirtyQueen);
|
soberHappyKing.flirt(flirtyQueen);
|
||||||
assertTrue(soberUnhappyKing.isHappy());
|
assertTrue(soberHappyKing.isHappy());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user