コード例 #1
0
  /**
   * Tests VisibilityPropertyPanel#execute() for accuracy.
   *
   * <p>It verifies VisibilityPropertyPanel#execute() is correct.
   */
  public void testExecute() {
    panel.configurePanel(new AssociationEndImpl());

    MockModelElementChangeListener listener = new MockModelElementChangeListener();
    propertiesPanel.addModelElementChangeListener(listener);

    panel.execute();

    assertTrue("Failed to execute correctly.", listener.getIsExecuted());
  }
コード例 #2
0
  /**
   * Tests VisibilityPropertyPanel#execute() for accuracy.
   *
   * <p>It verifies VisibilityPropertyPanel#execute() is correct.
   */
  public void testExecute_Package() {
    AssociationEnd element = new AssociationEndImpl();
    element.setVisibility(VisibilityKind.PACKAGE);

    panel.configurePanel(element);

    MockModelElementChangeListener listener = new MockModelElementChangeListener();
    propertiesPanel.addModelElementChangeListener(listener);

    panel.execute();

    assertTrue("Failed to execute correctly.", listener.getIsExecuted());
  }