Examples of appendRemainingName()


Examples of javax.naming.spi.ResolveResult.appendRemainingName()

  public void testAppendRemainingName() throws InvalidNameException {
    ResolveResult resolveResult = new ResolveResult(strObj, name);

    CompositeName newName = new CompositeName("a/b/c/d");
    resolveResult.appendRemainingName(newName);

    assertEquals(strObj, resolveResult.getResolvedObj());
    name.addAll(newName);
    assertEquals(name, resolveResult.getRemainingName());
  }
View Full Code Here

Examples of javax.naming.spi.ResolveResult.appendRemainingName()

    assertEquals(name, resolveResult.getRemainingName());
  }

  public void testAppendRemainingName_Null() {
    ResolveResult resolveResult = new ResolveResult(strObj, name);
    resolveResult.appendRemainingName(null);

    assertEquals(strObj, resolveResult.getResolvedObj());
    assertEquals(name, resolveResult.getRemainingName());
  }
View Full Code Here

Examples of javax.naming.spi.ResolveResult.appendRemainingName()

    props.put("jndi.syntax.endquote2", "'");
    props.put("jndi.syntax.ignorecase", "false");
    props.put("jndi.syntax.trimblanks", "false");
    CompoundName compoundName = new CompoundName("a", props);
    try {
      resolveResult.appendRemainingName(compoundName);
      fail("Should throw a Error.");
    } catch (Error e) {
    }
  }
View Full Code Here

Examples of javax.naming.spi.ResolveResult.appendRemainingName()

    CompoundName compoundName = new CompoundName("a", props);

    ResolveResult resolveResult = new ResolveResult(strObj, compoundName);
    CompositeName newName = new CompositeName("a/b/c/d");
    try {
      resolveResult.appendRemainingName(newName);
      fail("Should throw a Error here.");
    } catch (Error e) {
    }

    // compoundName.addAll(newName);
View Full Code Here

Examples of javax.naming.spi.ResolveResult.appendRemainingName()

    props.put("jndi.syntax.trimblanks", "false");
    CompoundName compoundName = new CompoundName("a", props);

    ResolveResult resolveResult = new ResolveResult(strObj, compoundName);
    CompoundName newName = new CompoundName("b", props);
    resolveResult.appendRemainingName(newName);

    compoundName.addAll(newName);
    assertEquals(compoundName, resolveResult.getRemainingName());
  }
View Full Code Here

Examples of javax.naming.spi.ResolveResult.appendRemainingName()

      throws InvalidNameException {
    ResolveResult resolveResult = new ResolveResult(strObj, (Name) null);
    String nameComponent = "a/'a/b'/b";
    CompositeName newName = new CompositeName();
    newName.add(nameComponent);
    resolveResult.appendRemainingName(newName);

    assertEquals(newName, resolveResult.getRemainingName());
    assertNotSame(newName, resolveResult.getRemainingName());
  }
View Full Code Here

Examples of javax.naming.spi.ResolveResult.appendRemainingName()

    resolveResult.setRemainingName(compoundName);

    CompositeName newName = new CompositeName("a/b/c/d");
    try {
      resolveResult.appendRemainingName(newName);
      fail("Should throw a Error here");
    } catch (Error e) {
    }
    // compoundName.addAll(newName);
    // assertEquals(compoundName, resolveResult.getRemainingName());
View Full Code Here

Examples of javax.naming.spi.ResolveResult.appendRemainingName()

    CompoundName compoundName = new CompoundName("a", props);

    resolveResult.setRemainingName(compoundName);

    CompoundName newName = new CompoundName("b", props);
    resolveResult.appendRemainingName(newName);

    compoundName.addAll(newName);
    assertEquals(compoundName, resolveResult.getRemainingName());
  }
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.