org.hackystat.sensorbase.uripattern
Class TestUriPattern

java.lang.Object
  extended by org.hackystat.sensorbase.uripattern.TestUriPattern

public class TestUriPattern
extends java.lang.Object

Test suite for UriPatterns.

Author:
Philip Johnson, (Cedric) Qin Zhang

Constructor Summary
TestUriPattern()
           
 
Method Summary
 void testCompoundPattern()
          Tests match of compound pattern.
 void testEquals()
          Tests equals operation.
 void testEqualsAndComparison()
          Tests equals(), comparesTo(), and hashCode() implementation.
 void testIakyzoIssueData()
          Tests matching of file names starting with backslash.
 void testOthers()
          Test case for other functions in the class.
 void testWorkspaceOptimizationHack()
          Tests the optimized match() method for workspaces that detects "top-level" UriPatterns and determines whether they match the workspace or not without going to the underlying Ant-based parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestUriPattern

public TestUriPattern()
Method Detail

testCompoundPattern

public void testCompoundPattern()
Tests match of compound pattern.


testOthers

public void testOthers()
Test case for other functions in the class.


testIakyzoIssueData

public void testIakyzoIssueData()
Tests matching of file names starting with backslash.


testEquals

public void testEquals()
Tests equals operation.


testEqualsAndComparison

public void testEqualsAndComparison()
Tests equals(), comparesTo(), and hashCode() implementation.


testWorkspaceOptimizationHack

public void testWorkspaceOptimizationHack()
Tests the optimized match() method for workspaces that detects "top-level" UriPatterns and determines whether they match the workspace or not without going to the underlying Ant-based parser. This results in significantly improved performance in certain DailyProjectData subclasses such as DailyProjectFileMetric.