Skip to content

Commit

Permalink
Update mock expectations.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvitkine committed Jul 12, 2023
1 parent 9a5b74d commit a2d3fb2
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public static Territory givenSeaBattleSite() {

@Value
public static class UnitAndAttachment {
private Unit unit;
private UnitAttachment unitAttachment;
Unit unit;
UnitAttachment unitAttachment;
}

public static UnitAndAttachment newUnitAndAttachment() {
Expand Down Expand Up @@ -767,6 +767,7 @@ void defendingFirstStrikeSubmergeBeforeBattleIfSubmersibleSubsAndRetreatBeforeBa
givenBattleStateBuilder()
.gameData(
givenGameData()
.withCaptureUnitsOnEnteringTerritory(false)
.withSubRetreatBeforeBattle(true)
.withSubmersibleSubs(true)
.withDefendingSuicideAndMunitionUnitsDoNotFire(false)
Expand Down Expand Up @@ -1051,6 +1052,7 @@ void defendingFirstStrikeWithWW2v2() {
givenBattleStateBuilder()
.gameData(
givenGameData()
.withCaptureUnitsOnEnteringTerritory(false)
.withSubRetreatBeforeBattle(false)
.withDefendingSuicideAndMunitionUnitsDoNotFire(false)
.withAlliedAirIndependent(true)
Expand Down Expand Up @@ -1085,6 +1087,7 @@ void defendingFirstStrikeWithWW2v2AndDestroyers() {
givenBattleStateBuilder()
.gameData(
givenGameData()
.withCaptureUnitsOnEnteringTerritory(false)
.withSubRetreatBeforeBattle(false)
.withDefendingSuicideAndMunitionUnitsDoNotFire(false)
.withAlliedAirIndependent(true)
Expand Down Expand Up @@ -1582,6 +1585,7 @@ void attackingFirstStrikeCanSubmergeIfSubmersibleSubs() {
givenBattleStateBuilder()
.gameData(
givenGameData()
.withCaptureUnitsOnEnteringTerritory(false)
.withSubRetreatBeforeBattle(false)
.withDefendingSuicideAndMunitionUnitsDoNotFire(false)
.withAlliedAirIndependent(true)
Expand Down Expand Up @@ -1654,6 +1658,7 @@ void defendingFirstStrikeCanSubmergeIfSubmersibleSubsAndDestroyers() {
givenBattleStateBuilder()
.gameData(
givenGameData()
.withCaptureUnitsOnEnteringTerritory(false)
.withSubRetreatBeforeBattle(false)
.withDefendingSuicideAndMunitionUnitsDoNotFire(false)
.withAlliedAirIndependent(true)
Expand Down Expand Up @@ -1975,6 +1980,7 @@ void partialAmphibiousAttackCanWithdrawIfHasNonAmphibious() {
givenBattleStateBuilder()
.gameData(
givenGameData()
.withCaptureUnitsOnEnteringTerritory(false)
.withSubRetreatBeforeBattle(false)
.withDefendingSuicideAndMunitionUnitsDoNotFire(false)
.withAlliedAirIndependent(true)
Expand Down Expand Up @@ -2066,6 +2072,7 @@ void attackingPlanesCanWithdrawWW2v2AndAmphibious() {
givenBattleStateBuilder()
.gameData(
givenGameData()
.withCaptureUnitsOnEnteringTerritory(false)
.withDefendingSuicideAndMunitionUnitsDoNotFire(false)
.withSubRetreatBeforeBattle(false)
.withAlliedAirIndependent(true)
Expand Down Expand Up @@ -2100,6 +2107,7 @@ void attackingPlanesCanWithdrawPartialAmphibiousAndAmphibious() {
givenBattleStateBuilder()
.gameData(
givenGameData()
.withCaptureUnitsOnEnteringTerritory(false)
.withSubRetreatBeforeBattle(false)
.withWW2V2(false)
.withAttackerRetreatPlanes(false)
Expand Down Expand Up @@ -2131,6 +2139,7 @@ void attackingPlanesCanWithdrawPlanesRetreatAndAmphibious() {
givenBattleStateBuilder()
.gameData(
givenGameData()
.withCaptureUnitsOnEnteringTerritory(false)
.withSubRetreatBeforeBattle(false)
.withWW2V2(false)
.withDefendingSuicideAndMunitionUnitsDoNotFire(false)
Expand Down Expand Up @@ -2162,6 +2171,7 @@ void attackingPlanesCanNotWithdrawWW2v2AndNotAmphibious() {
givenBattleStateBuilder()
.gameData(
givenGameData()
.withCaptureUnitsOnEnteringTerritory(false)
.withDefendingSuicideAndMunitionUnitsDoNotFire(false)
.withSubRetreatBeforeBattle(false)
.withAlliedAirIndependent(true)
Expand Down

0 comments on commit a2d3fb2

Please sign in to comment.