コード例 #1
0
 /**
  * Makes sure the option is not enabled if its diagram isn't UMLClassDiagram.
  *
  * @author Timothy M. Lebo
  * @since November 3, 2003
  */
 public void testShouldNotBeEnabled() {
   action = new ActionAddAllClassesFromModel("Add all classes from model", new Object());
   assertEquals(action.shouldBeEnabled(), false);
 }
コード例 #2
0
 /**
  * Makes sure the option is enabled.
  *
  * <p>ActionAddAllClassesFromModel expects to receive a UMLClassDiagram in its constructor. If the
  * Class of the class diagrams in argoUML changes, this needs to change also.
  *
  * @author Timothy M. Lebo
  * @since November 3, 2003
  */
 public void testShouldBeEnabled() {
   assertTrue(action.shouldBeEnabled());
 }