Package org.jamesii.gui.base

Examples of org.jamesii.gui.base.URLTreeNodeURL


        }
      }

      for (String p : a.getPaths()) {
        try {
          URLTreeNodeURL url = new URLTreeNodeURL(p);
          String path = url.getLocation() + "/" + a.getId();
          INSTANCE.tree.removeNodeRelative(path, relativeTo);
        } catch (MalformedURLException | UnsupportedEncodingException e) {
          SimSystem.report(e);
        }
      }
View Full Code Here


   * Test action url.
   */
  public final void testActionURL() {
    for (String s : urls) {
      try {
        assertNotNull(new URLTreeNodeURL(s));
      } catch (MalformedURLException | UnsupportedEncodingException e) {
        fail(e.getMessage());
      }
    }
  }
View Full Code Here

   * Test get path. Tests {@link URLTreeNodeURL#getPath()}
   */
  public final void testGetPath() {
    for (String s : urls) {
      try {
        URLTreeNodeURL url = new URLTreeNodeURL(s);
        assertTrue(Arrays.equals(url.getPath(), paths.get(s)));
      } catch (MalformedURLException | UnsupportedEncodingException e) {
        fail(e.getMessage());
      }
    }
  }
View Full Code Here

   * Test get placement.
   */
  public final void testGetPlacement() {
    for (String s : urls) {
      try {
        URLTreeNodePlacement p = new URLTreeNodeURL(s).getPlacement();
        assertTrue(p == placements.get(s)
            || p.getWhere().equalsIgnoreCase(placements.get(s).getWhere())
            || (p.getNodeId() == null && placements.get(s).getNodeId() == null)
            || p.getNodeId().equals(placements.get(s).getNodeId()));
      } catch (MalformedURLException | UnsupportedEncodingException e) {
View Full Code Here

   * Test get url. Tests {@link URLTreeNodeURL#getURL()}
   */
  public final void testGetURL() {
    for (String s : urls) {
      try {
        assertEquals(s, new URLTreeNodeURL(s).getURL());
      } catch (MalformedURLException | UnsupportedEncodingException e) {
        fail(e.getMessage());
      }
    }
  }
View Full Code Here

TOP

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

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.