Examples of endsWith()


Examples of javax.naming.CompoundName.endsWith()

    log.setMethod("testEndsWith()");
    CompoundName name;

    name = new CompoundName("a/b/c/d", props);
    assertTrue(name.endsWith(new CompoundName("", props)));
    assertTrue(name.endsWith(new CompoundName("c/d", props)));
    assertTrue(name.endsWith(new CompoundName("a/b/c/d", props)));

    assertFalse(name.endsWith(new CompoundName("b", props)));
    assertFalse(name.endsWith(new CompoundName("a/b/c/d/e", props)));
  }
View Full Code Here

Examples of javax.naming.CompoundName.endsWith()

    CompoundName name;

    name = new CompoundName("a/b/c/d", props);
    assertTrue(name.endsWith(new CompoundName("", props)));
    assertTrue(name.endsWith(new CompoundName("c/d", props)));
    assertTrue(name.endsWith(new CompoundName("a/b/c/d", props)));

    assertFalse(name.endsWith(new CompoundName("b", props)));
    assertFalse(name.endsWith(new CompoundName("a/b/c/d/e", props)));
  }
View Full Code Here

Examples of javax.naming.CompoundName.endsWith()

    name = new CompoundName("a/b/c/d", props);
    assertTrue(name.endsWith(new CompoundName("", props)));
    assertTrue(name.endsWith(new CompoundName("c/d", props)));
    assertTrue(name.endsWith(new CompoundName("a/b/c/d", props)));

    assertFalse(name.endsWith(new CompoundName("b", props)));
    assertFalse(name.endsWith(new CompoundName("a/b/c/d/e", props)));
  }

  public void testEndsWith_NotCoumpoundName() throws InvalidNameException {
    log.setMethod("testEndsWith_NotCoumpoundName()");
View Full Code Here

Examples of javax.naming.CompoundName.endsWith()

    assertTrue(name.endsWith(new CompoundName("", props)));
    assertTrue(name.endsWith(new CompoundName("c/d", props)));
    assertTrue(name.endsWith(new CompoundName("a/b/c/d", props)));

    assertFalse(name.endsWith(new CompoundName("b", props)));
    assertFalse(name.endsWith(new CompoundName("a/b/c/d/e", props)));
  }

  public void testEndsWith_NotCoumpoundName() throws InvalidNameException {
    log.setMethod("testEndsWith_NotCoumpoundName()");
    CompoundName name;
View Full Code Here

Examples of javax.naming.CompoundName.endsWith()

  public void testEndsWith_NotCoumpoundName() throws InvalidNameException {
    log.setMethod("testEndsWith_NotCoumpoundName()");
    CompoundName name;

    name = new CompoundName("a/b/c/d", props);
    assertFalse(name.endsWith(new CompositeName("a/b")));
  }

  public void testEndsWith_Null() throws InvalidNameException {
    log.setMethod("testEndsWith_Null()");
    CompoundName name;
View Full Code Here

Examples of javax.naming.CompoundName.endsWith()

  public void testEndsWith_Null() throws InvalidNameException {
    log.setMethod("testEndsWith_Null()");
    CompoundName name;

    name = new CompoundName("a/b/c/d", props);
    assertFalse(name.endsWith(null));
  }

  public void testProperties_Separator() throws InvalidNameException {
    log.setMethod("testProperties_Separator()");
    CompoundName name;
View Full Code Here

Examples of javax.security.auth.x500.X500Principal.endsWith()

                // this is case #1 : a whole address
                String normalized = (new RFC822NameAttribute(arg0)).getValue();
                boolResult = normalized.equals(arg1);
            } else if (arg0.charAt(0) == '.') {
                // this is case #3 : a sub-domain
                boolResult = arg1.endsWith(arg0.toLowerCase());
            } else {
                // this is case #2 : any mailbox at a specific domain
                String mailDomain = arg1.substring(arg1.indexOf('@') + 1);
                boolResult = arg0.toLowerCase().equals(mailDomain);
            }
View Full Code Here

Examples of javax.swing.JTextField.endsWith()

                  if (original.getId() == null) {
                    String url = nombre.getText();

                    if (url.indexOf("?") > -1) {
                      if (!url.endsWith("?")) {
                        url += "&";

                      }
                    } else {
                      url += "?";
View Full Code Here

Examples of lombok.val.endsWith()

          // get next entry
          val entry = entries.nextElement();
          val entryName = entry.getName();

          // must be a .class entry, starting with the package name
          if (entryName.endsWith(classExt) && entryName.startsWith(relPath))
          {
            // must be in the same package
            val className = entryName.replace(CONSTANT.FORWARD_SLASH_CHAR, CONSTANT.DOT_CHAR)
                .replace(CONSTANT.BACK_SLASH_CHAR, CONSTANT.DOT_CHAR).replace(classExt, CONSTANT.EMPTY_STRING);
View Full Code Here

Examples of org.apache.qpid.framing.AMQShortString.endsWith()

                        boolean matched = false;
                        while (keys.hasNext() && !matched)
                        {
                            AMQShortString rkey = (AMQShortString) keys.next();
                            if (rkey.endsWith("*"))
                            {
                                matched = routingKey.startsWith(rkey.subSequence(0, rkey.length() - 1).toString());
                            }
                            else
                            {
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.