Package org.jamesii.gui.base

Examples of org.jamesii.gui.base.URLTreeNodePlacement


  /**
   * Test is after. Tests {@link URLTreeNodePlacement#isAfter()}
   */
  public final void testIsAfter() {
    for (String s : allowed) {
      assertTrue((new URLTreeNodePlacement(s, null).isAfter() && s
          .equals(AFTER))
          || (!s.equals(AFTER) && !new URLTreeNodePlacement(s, null).isAfter()));
    }
  }
View Full Code Here


  /**
   * Test is first. Tests {@link URLTreeNodePlacement#isFirst()}
   */
  public final void testIsFirst() {
    for (String s : allowed) {
      assertTrue((new URLTreeNodePlacement(s, null).isFirst() && s
          .equals(FIRST))
          || (!s.equals(FIRST) && !new URLTreeNodePlacement(s, null).isFirst()));
    }
  }
View Full Code Here

  /**
   * Test is before. Tests {@link URLTreeNodePlacement#isBefore()}
   */
  public final void testIsBefore() {
    for (String s : allowed) {
      assertTrue((new URLTreeNodePlacement(s, null).isBefore() && s
          .equals(BEFORE))
          || (!s.equals(BEFORE) && !new URLTreeNodePlacement(s, null)
              .isBefore()));
    }
  }
View Full Code Here

  /**
   * Test is start. Tests {@link URLTreeNodePlacement#isStart()}
   */
  public final void testIsStart() {
    for (String s : allowed) {
      assertTrue((new URLTreeNodePlacement(s, null).isStart() && s
          .equals(START))
          || (!s.equals(START) && !new URLTreeNodePlacement(s, null).isStart()));
    }
  }
View Full Code Here

  /**
   * Test action placement.
   */
  public final void testActionPlacement() {
    for (String s : allowed) {
      assertNotNull(new URLTreeNodePlacement(s, null));
    }
    for (String s : notAllowed) {
      try {
        new URLTreeNodePlacement(s, null);
        fail("Created placement with wrong modifier! (modifier: " + s + ")");
      } catch (Exception e) {
      }
    }
  }
View Full Code Here

  /**
   * Test get where. Tests {@link URLTreeNodePlacement#getWhere()}
   */
  public final void testGetWhere() {
    for (String s : allowed) {
      assertEquals(s.toLowerCase(), new URLTreeNodePlacement(s, null)
          .getWhere().toLowerCase());
    }
  }
View Full Code Here

  /**
   * Test get action id. Tests {@link URLTreeNodePlacement#getNodeId()}
   */
  public final void testGetActionId() {
    for (String s : allowed) {
      assertEquals(null, new URLTreeNodePlacement(s, null).getNodeId());
      assertEquals("123", new URLTreeNodePlacement(s, "123").getNodeId());
      String a = new String("Hello World");
      assertEquals(a, new URLTreeNodePlacement(s, a).getNodeId());
    }
  }
View Full Code Here

  /**
   * Test is end. Tests {@link URLTreeNodePlacement#isEnd()}
   */
  public final void testIsEnd() {
    for (String s : allowed) {
      assertTrue((new URLTreeNodePlacement(s, null).isEnd() && s.equals(END))
          || (!s.equals(END) && !new URLTreeNodePlacement(s, null).isEnd()));
    }
  }
View Full Code Here

  /**
   * Test is last. Tests {@link URLTreeNodePlacement#isLast()}
   */
  public final void testIsLast() {
    for (String s : allowed) {
      assertTrue((new URLTreeNodePlacement(s, null).isLast() && s.equals(LAST))
          || (!s.equals(LAST) && !new URLTreeNodePlacement(s, null).isLast()));
    }
  }
View Full Code Here

  /**
   * Test is after. Tests {@link URLTreeNodePlacement#isAfter()}
   */
  public final void testIsAfter() {
    for (String s : allowed) {
      assertTrue((new URLTreeNodePlacement(s, null).isAfter() && s
          .equals(AFTER))
          || (!s.equals(AFTER) && !new URLTreeNodePlacement(s, null).isAfter()));
    }
  }
View Full Code Here

TOP

Related Classes of org.jamesii.gui.base.URLTreeNodePlacement

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.