Package org.springsource.loaded

Examples of org.springsource.loaded.PrefixTypePattern.matches()


  @Test
  public void prefix() {
    PrefixTypePattern tp = new PrefixTypePattern("com.foo..*");
    assertEquals("text:com.foo..*", tp.toString());
    assertTrue(tp.matches("com.foo.Bar"));
    assertFalse(tp.matches("com.food.Bar"));
  }

  @Test
  public void exact() {
View Full Code Here


  @Test
  public void prefix() {
    PrefixTypePattern tp = new PrefixTypePattern("com.foo..*");
    assertEquals("text:com.foo..*", tp.toString());
    assertTrue(tp.matches("com.foo.Bar"));
    assertFalse(tp.matches("com.food.Bar"));
  }

  @Test
  public void exact() {
    ExactTypePattern tp = new ExactTypePattern("com.foo.Bark");
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.