FiringPlan alphaStrike = getFullFiringPlan(shooter, target, ammoConservation, game); FiringPlan betaStrike = getFullFiringPlan(shooter, target, ammoConservation, game); betaStrike.setFlipArms(true); if(betaStrike.getUtility() > alphaStrike.getUtility()) {
expected.add(mockPPCFireInfo); expected.add(mockLRMFireInfo); final FiringPlan actual = testFireControl.getFullFiringPlan(mockShooter, mockTarget, testToHitThreshold, mockGame); Assert.assertEquals(new HashSet<>(expected), new HashSet<>(actual)); Assert.assertEquals(expected, testFireControl.getFullFiringPlan(mockShooter, mockTarget, testToHitThreshold, mockGame)); Mockito.when(mockTarget.getPosition()).thenReturn(mockTargetCoords); Assert.assertEquals(expected, testFireControl.getFullFiringPlan(mockShooter, mockTarget, testToHitThreshold, mockGame)); Mockito.when(mockShooter.getPosition()).thenReturn(mockShooterCoords); expected = new FiringPlan(mockTarget); expected.add(mockPPCFireInfo); Assert.assertEquals(expected, testFireControl.getFullFiringPlan(mockShooter, mockTarget, testToHitThreshold, mockGame)); testToHitThreshold.put(mockLRM5, 0.0);