Package org.openiaml.model.diagram.edit.parts

Examples of org.openiaml.model.diagram.edit.parts.InternetApplicationEditPart


    assertEditorRoot(ep);

    // find what elements are displayed
    IamlDiagramEditor editor = (IamlDiagramEditor) ep;
    {
      InternetApplicationEditPart iep = (InternetApplicationEditPart) editor.getDiagramEditPart();
      assertNotNull(iep);
      assertEquals("InternetApplication", iep.getBreadcrumb()); // it has no name
    }

    // check the contents
    ShapeNodeEditPart page2 = assertHasFrame(editor, "page2");

    // open the domain store
    org.openiaml.model.diagram.frame.part.IamlDiagramEditor ep2
      = (org.openiaml.model.diagram.frame.part.IamlDiagramEditor) openDiagram(page2);

    // if this is actually an ErrorEditPart, then an error has occured
    // (but it may not be obvious in the log what it is)
    assertEditorFrame(ep2);

    {
      org.openiaml.model.diagram.frame.edit.parts.FrameEditPart iep
        = (org.openiaml.model.diagram.frame.edit.parts.FrameEditPart) ep2.getDiagramEditPart();
      assertNotNull(iep);
      assertEquals("InternetApplication > Frame: 'page2'", iep.getBreadcrumb()); // it has no name
    }

    // check the contents
    ShapeNodeEditPart form = assertHasInputForm((DiagramDocumentEditor) ep2, "form");

    // open the domain store
    org.openiaml.model.diagram.visual.part.IamlDiagramEditor formd
      = (org.openiaml.model.diagram.visual.part.IamlDiagramEditor) openDiagram(form);

    // if this is actually an ErrorEditPart, then an error has occured
    // (but it may not be obvious in the log what it is)
    assertEditorVisual(formd);

    {
      org.openiaml.model.diagram.visual.edit.parts.VisibleThingEditPart iep
        = (org.openiaml.model.diagram.visual.edit.parts.VisibleThingEditPart) formd.getDiagramEditPart();
      assertNotNull(iep);
      assertEquals("InternetApplication > Frame: 'page2' > InputForm: 'form'", iep.getBreadcrumb()); // it has no name
    }

    // check the contents
    ShapeNodeEditPart form2 = assertHasInputForm((DiagramDocumentEditor) formd, "test form for BreadcrumbTestCase");

    // open the domain store
    org.openiaml.model.diagram.visual.part.IamlDiagramEditor formd2
      = (org.openiaml.model.diagram.visual.part.IamlDiagramEditor) openDiagram(form2);

    // if this is actually an ErrorEditPart, then an error has occured
    // (but it may not be obvious in the log what it is)
    assertEditorVisual(formd2);

    {
      org.openiaml.model.diagram.visual.edit.parts.VisibleThingEditPart iep
        = (org.openiaml.model.diagram.visual.edit.parts.VisibleThingEditPart) formd2.getDiagramEditPart();
      assertNotNull(iep);
      assertEquals("... > Frame: 'page2' > InputForm: 'form' > InputForm: 'test form for BreadcrumbTestCase'", iep.getBreadcrumb()); // it has no name
    }

    // close editors
    ((DiagramDocumentEditor) formd2).close(false);
    ((DiagramDocumentEditor) formd).close(false);
View Full Code Here

TOP

Related Classes of org.openiaml.model.diagram.edit.parts.InternetApplicationEditPart

Copyright © 2018 www.massapicom. 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.