Fix ComponentCompare and ComponentCompareTest. ComponentCompare needed to not verify the getMotorMounts method which was recently added. ComponentCompareTest needed to extend BaseTestCase so the materials db was initialized.
This commit is contained in:
parent
02d9954ff1
commit
254e5670da
@ -18,7 +18,7 @@ public class ComponentCompare {
|
||||
"getStageNumber", "getComponentName",
|
||||
// Rocket specific methods:
|
||||
"getModID", "getMassModID", "getAerodynamicModID", "getTreeModID", "getFunctionalModID",
|
||||
"getMotorConfigurationIDs", "getDefaultConfiguration"
|
||||
"getMotorConfigurationIDs", "getDefaultConfiguration", "getMotorMounts"
|
||||
};
|
||||
|
||||
|
||||
|
@ -1,16 +1,19 @@
|
||||
package net.sf.openrocket.rocketcomponent;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.Iterator;
|
||||
|
||||
import net.sf.openrocket.gui.util.ColorConversion;
|
||||
import net.sf.openrocket.util.Coordinate;
|
||||
import net.sf.openrocket.util.BaseTestCase.BaseTestCase;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class ComponentCompareTest {
|
||||
public class ComponentCompareTest extends BaseTestCase {
|
||||
|
||||
@Test
|
||||
public void testComponentEquality() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user