public class NewFTEntryFactorCommandTest extends EMFfitTestCase{
@Test
public void testDoRunForFactorCategory() {
//setup
FactorCategory fc1st = (FactorCategory) factorTable.getEntries().get(0);
//run command
new NewFTEntryFactorCommand(fc1st, "new foo factor", "2").runWithoutUnicaseCommand();
//check
assertEquals(5, fc1st.getChildren().size());
Factor newFactor = (Factor) fc1st.getChildren().get(4);
assertEquals("new foo factor", newFactor.getName());
assertEquals("2", newFactor.getPriority());
assertEquals("O1.5", newFactor.getNumbering());
assertNotNull(newFactor.getDescription());
assertNotNull(newFactor.getFlexibility());