Skip to content

Commit

Permalink
Removed Unused Imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rjhancock committed Sep 9, 2024
1 parent 8a9377b commit ab22a92
Showing 1 changed file with 20 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import megameklab.ui.EntitySource;
import megameklab.ui.fighterAero.ASMainUI;
import megameklab.ui.generalUnit.BasicInfoView;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
Expand Down Expand Up @@ -54,26 +53,26 @@ private Entity configureFromFilename(String fname) throws EntityLoadingException
void testGetValueAtForAll() throws EntityLoadingException {
// Test getValue() in EquipmentTableModel; the exercises conversions and lookups
ArrayList<String> testItems = new ArrayList<>(Arrays.asList(
"/Kirghiz C.blk", // ASF
"/Beast Infantry (Elephant)(Laser Rifle_Support PPC).blk", // Beast Inf
"/Black Wolf BA (ER Pulse) (Sqd5).blk", // BA, Clan
"/Fusilier BA (Sqd4).blk", // BA, IS
"/Raubvogel Aerobomber AB-18C.blk", // ConventionalFighter
"/Union 'Pocket Warship'.blk", // DropShip
"/Clan Field Artillery (Thumper).blk", // Field Gun/Artillery CI
"/Long Tom Cannon Turret (Quad).blk", // Generic Clan Turret
"/Explorer JumpShip (HPG).blk", // JumpShip
"/Jump Squad (LRM).blk", // Jump CI
"/Siren 4.blk", // ProtoMek
"/Aquarius Escort.blk", // Small Craft
"/Olympus Recharge Station (3072).blk", // SpaceStation
"/Harpagos.mtf", // QuadMek
"/Sleipnir APC.blk", // Vehicle
"/Peregrine Corvette.blk" // WarShip
"/Kirghiz C.blk", // ASF
"/Beast Infantry (Elephant)(Laser Rifle_Support PPC).blk", // Beast Inf
"/Black Wolf BA (ER Pulse) (Sqd5).blk", // BA, Clan
"/Fusilier BA (Sqd4).blk", // BA, IS
"/Raubvogel Aerobomber AB-18C.blk", // ConventionalFighter
"/Union 'Pocket Warship'.blk", // DropShip
"/Clan Field Artillery (Thumper).blk", // Field Gun/Artillery CI
"/Long Tom Cannon Turret (Quad).blk", // Generic Clan Turret
"/Explorer JumpShip (HPG).blk", // JumpShip
"/Jump Squad (LRM).blk", // Jump CI
"/Siren 4.blk", // ProtoMek
"/Aquarius Escort.blk", // Small Craft
"/Olympus Recharge Station (3072).blk", // SpaceStation
"/Harpagos.mtf", // QuadMek
"/Sleipnir APC.blk", // Vehicle
"/Peregrine Corvette.blk" // WarShip
));
Entity e;

for (String fname: testItems) {
for (String fname : testItems) {
e = configureFromFilename(fname);
assertNotNull(e);
for (int i = 0; i < etm.getColumnCount(); i++) {
Expand All @@ -88,7 +87,7 @@ void testGetDamageStringForAero() throws EntityLoadingException {
String fname = "/Kirghiz C.blk";
Entity te = configureFromFilename(fname);
assertTrue(te.isAero());
for (Mounted weapon: te.getWeaponList()) {
for (Mounted weapon : te.getWeaponList()) {
WeaponType weaponType = (WeaponType) weapon.getType();
String dString = EquipmentTableModel.getDamageString(weaponType, te.isAero());
if (dString.contains("/")) {
Expand All @@ -108,7 +107,7 @@ void testGetDamageStringForCI() throws EntityLoadingException {
String fname = "/Jump Squad (LRM).blk";
Entity te = configureFromFilename(fname);
assertFalse(te.isAero());
for (Mounted weapon: te.getWeaponList()) {
for (Mounted weapon : te.getWeaponList()) {
WeaponType weaponType = (WeaponType) weapon.getType();
String dString = EquipmentTableModel.getDamageString(weaponType, te.isAero());
// Confirm can convert to double
Expand All @@ -124,7 +123,7 @@ void testGetDamageStringForGEArty() throws EntityLoadingException {
String fname = "/Long Tom Cannon Turret (Quad).blk";
Entity te = configureFromFilename(fname);
assertFalse(te.isAero());
for (Mounted weapon: te.getWeaponList()) {
for (Mounted weapon : te.getWeaponList()) {
WeaponType weaponType = (WeaponType) weapon.getType();
String dString = EquipmentTableModel.getDamageString(weaponType, te.isAero());
// Confirm can convert to double
Expand Down

0 comments on commit ab22a92

Please sign in to comment.