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:
Kevin Ruland 2012-05-22 20:39:29 +00:00
parent 02d9954ff1
commit 254e5670da
2 changed files with 6 additions and 3 deletions

View File

@ -18,7 +18,7 @@ public class ComponentCompare {
"getStageNumber", "getComponentName",
// Rocket specific methods:
"getModID", "getMassModID", "getAerodynamicModID", "getTreeModID", "getFunctionalModID",
"getMotorConfigurationIDs", "getDefaultConfiguration"
"getMotorConfigurationIDs", "getDefaultConfiguration", "getMotorMounts"
};

View File

@ -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() {