Examples of ExecutableButtonComponentProvider


Examples of gov.nasa.jsc.mct.executable.buttons.ExecutableButtonComponentProvider

  @Mock User user;
  @Mock Platform mockPlatform;
 
  @BeforeMethod
  public void testSetup() {
    provider = new ExecutableButtonComponentProvider();
    MockitoAnnotations.initMocks(this);
    (new PlatformAccess()).setPlatform(mockPlatform);
    Mockito.when(mockPlatform.getCurrentUser()).thenReturn(user);
  }
View Full Code Here

Examples of gov.nasa.jsc.mct.executable.buttons.ExecutableButtonComponentProvider

    for (ViewType type : ViewType.values()) {
      TypeInfo<?> view = new ViewInfo(ExecutableButtonManifestation.class, ExecutableButtonManifestation.VIEW_NAME, ExecutableButtonManifestation.class.getName(), type);
      TypeInfo<?> comp = new ComponentTypeInfo("","",ExecutableButtonComponent.class);
      for (TypeInfo<?> vi : new TypeInfo<?>[]{view, comp}) {
        // Executable buttons have no view or component icons currently
        cases.add(new Object[] { new ExecutableButtonComponentProvider(), vi, ImageIcon.class, false});
        // As above
        cases.add(new Object[] { new ExecutableButtonComponentProvider(), vi, Icon.class, false});
        // Executable buttons should have a wizard
        cases.add(new Object[] { new ExecutableButtonComponentProvider(), vi, CreateWizardUI.class, vi.getTypeClass().equals(ExecutableButtonComponent.class)});
      }
    }
    Object[][] returnValue = new Object[cases.size()][];
    for (int i = 0; i < cases.size(); i++) {
      returnValue[i] = cases.get(i);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.