Package org.eclipse.wb.tests.designer.Expectations

Examples of org.eclipse.wb.tests.designer.Expectations.RectValue


    portal.refresh();
    //
    PortletInfo portlet = portal.getPortlets().get(0);
    Rectangle expected =
        Expectations.get(null, new RectValue[]{
            new RectValue("scheglov-win", new Rectangle(10, 10, 200 - 10, 61 - 10)),
            new RectValue("Flanker-Windows", new Rectangle(10, 10, 200 - 10, 61 - 10)),
            new RectValue("SABLIN-AA", new Rectangle(10, 10, 200 - 10, 59 - 10))});
    assertEquals(expected, portlet.getBounds());
    assertEquals(expected, portlet.getModelBounds());
  }
View Full Code Here


    assertEquals(new Rectangle(0, 0, 450, 300), panel.getBounds());
    {
      Rectangle expected =
          Expectations.get(
              new Rectangle(0, 0, 49, 24),
              new RectValue[]{new RectValue("scheglov-macpro", new Rectangle(0, 0, 49, 26))});
      assertEquals(expected, button.getBounds());
    }
    // property value
    assertEquals("AAA", button.getPropertyByTitle("text").getValue());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wb.tests.designer.Expectations.RectValue

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.