Skip to content

Commit

Permalink
Further mekish conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbraginskiy committed Sep 14, 2024
1 parent c39c5b6 commit 6dd50f8
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,28 +130,4 @@ void testAeroWithoutEngineDoesNotThrowNPE() {
assertNull(testDS.getEngine());
pa.processImage(1, pf);
}

/**
* Verify that we can process the image (basically, create the record sheet output) for an Aero with a null Engine object
* without throwing an NPE.
*/
@Test
void testAeroWithoutEngineDoesNotThrowNPE() {
// Required setting objects
PageFormat pf = new PageFormat();
RecordSheetOptions rso = new RecordSheetOptions();

// Set up DS entity with required attributes
Dropship testDS = new Dropship();
testDS.setChassis("Test Dropship");
testDS.setModel("TDS-999");

// Create print object
PrintAero pa = new PrintDropship(testDS, 1, rso);

// Test A) Document is created, B) Engine is null, C) processImage() doesn't throw.
assertTrue(pa.createDocument(1, pf, false));
assertNull(testDS.getEngine());
pa.processImage(1, pf);
}
}

0 comments on commit 6dd50f8

Please sign in to comment.