Package org.apache.maven.plugins.enforcer.utils.ArtifactMatcher

Examples of org.apache.maven.plugins.enforcer.utils.ArtifactMatcher.Pattern


 
  public void testPatternInvalidInput() throws InvalidVersionSpecificationException
  {
    try
    {
      new Pattern(null);
      fail("NullPointerException expected.");
    }
    catch(NullPointerException e){}
   
    try
    {
      new Pattern("a:b:c:d:e:f:g");
      fail("IllegalArgumentException expected.");
    }
    catch(IllegalArgumentException e){}
   
    try
    {
      new Pattern("a::");
      fail("IllegalArgumentException expected.");
    }
    catch(IllegalArgumentException e){}
   
    try
    {
      Pattern p = new Pattern("*");
      p.match(null);
      fail("NullPointerException expected.");
    }
    catch(NullPointerException e){}
  }
View Full Code Here


 
  public void testPatternInvalidInput() throws InvalidVersionSpecificationException
  {
    try
    {
      new Pattern(null);
      fail("NullPointerException expected.");
    }
    catch(NullPointerException e){}
   
    try
    {
      new Pattern("a:b:c:d:e:f");
      fail("IllegalArgumentException expected.");
    }
    catch(IllegalArgumentException e){}
   
    try
    {
      new Pattern("a::");
      fail("IllegalArgumentException expected.");
    }
    catch(IllegalArgumentException e){}
   
    try
    {
      Pattern p = new Pattern("*");
      p.match(null);
      fail("NullPointerException expected.");
    }
    catch(NullPointerException e){}
  }
View Full Code Here

TOP

Related Classes of org.apache.maven.plugins.enforcer.utils.ArtifactMatcher.Pattern

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.