org.gmetrics.ant
Class AntFileSetSourceAnalyzerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by groovy.util.GroovyTestCase
              extended by org.gmetrics.test.AbstractTestCase
                  extended by org.gmetrics.analyzer.AbstractSourceAnalyzer_IntegrationTest
                      extended by org.gmetrics.ant.AntFileSetSourceAnalyzerTest
All Implemented Interfaces:
groovy.lang.GroovyObject, junit.framework.Test

public class AntFileSetSourceAnalyzerTest
extends AbstractSourceAnalyzer_IntegrationTest
implements groovy.lang.GroovyObject


Field Summary
 
Fields inherited from class org.gmetrics.analyzer.AbstractSourceAnalyzer_IntegrationTest
analyzer, BASE_DIR, GROOVY_FILES, metric, metricSet, SCRIPTS_DIR
 
Fields inherited from class groovy.util.GroovyTestCase
log, TEST_SCRIPT_NAME_PREFIX
 
Constructor Summary
AntFileSetSourceAnalyzerTest()
           
 
Method Summary
protected  org.gmetrics.analyzer.SourceAnalyzer createSourceAnalyzer()
           
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.Object getProperty(java.lang.String property)
           
protected  void initializeSourceAnalyzerForDirectoryWithNoMatchingFiles()
           
protected  void initializeSourceAnalyzerForEmptyDirectory()
           
 java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(java.lang.String property, java.lang.Object value)
           
 void setUp()
           
 void testAnalyze_MatchingFiles_ButNoSubdirectories()
           
 void testAnalyze_MultipleFileSets()
           
 void testAnalyze_ReturnsEmptyResultsNodeForEmptyMetricSet()
           
 void testAnalyze_ReturnsResultsNodeWithNoChildrenForEmptyFileSets()
           
 void testAnalyze_ScriptClass_ReturnsMethodResults()
           
 void testAnalyze_ScriptClass_ReturnsNoResultsForClassMetricThatIgnoresSyntheticClasses()
           
 void testConstructor_ThrowsExceptionIfFileSetsIsNull()
           
 void testConstructor_ThrowsExceptionIfProjectIsNull()
           
 void testFindOrAddResultsNodeForPath()
           
 void testFindResultsNodeForPath_IgnoresNonPackageChildNodes()
           
 void testFindResultsNodeForPath_ReturnsNullForPathThatDoesNotExist()
           
 void testFindResultsNodeForPath_ReturnsRootResultsNodeForNullPath()
           
 void testFindResultsNodeForPath()
           
 void testGetSourceDirectories_ReturnsDirectoryForEachFileSet()
           
 void testGetSourceDirectories_ReturnsDirectoryRelativeToBaseDirectory()
           
 void testGetSourceDirectories_ReturnsEmptyListForNoFileSets()
           
 void testGetSourceDirectories_ReturnsSingleDirectoryForSingleFileSet()
           
 
Methods inherited from class org.gmetrics.analyzer.AbstractSourceAnalyzer_IntegrationTest
assertAnalyze_ResultsNodeStructure, testAnalyze_EmptyDirectory, testAnalyze_NestedSubdirectories, testAnalyze_NoMatchingFiles
 
Methods inherited from class org.gmetrics.test.AbstractTestCase
assertBothAreFalseOrElseNeitherIs, assertContainsAll, assertContainsAllInOrder, assertEqualSets, captureLog4JMessages, captureSystemOut, classResultsNode, classResultsNode, containsAll, isNotGroovy15, log, methodResultsNode, packageResultsNode, packageResultsNode, scale, scale, shouldFailWithMessageContaining
 
Methods inherited from class groovy.util.GroovyTestCase
assertArrayEquals, assertContains, assertContains, assertEquals, assertEquals, assertEquals, assertInspect, assertLength, assertLength, assertLength, assertScript, assertToString, fixEOLs, getMethodName, getName, getTestClassName, notYetImplemented, notYetImplemented, shouldFail, shouldFail, shouldFailWithCause
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AntFileSetSourceAnalyzerTest

public AntFileSetSourceAnalyzerTest()
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class AbstractSourceAnalyzer_IntegrationTest

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class AbstractSourceAnalyzer_IntegrationTest

invokeMethod

public java.lang.Object invokeMethod(java.lang.String method,
                                     java.lang.Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class AbstractSourceAnalyzer_IntegrationTest

getProperty

public java.lang.Object getProperty(java.lang.String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class AbstractSourceAnalyzer_IntegrationTest

setProperty

public void setProperty(java.lang.String property,
                        java.lang.Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class AbstractSourceAnalyzer_IntegrationTest

createSourceAnalyzer

protected org.gmetrics.analyzer.SourceAnalyzer createSourceAnalyzer()
Specified by:
createSourceAnalyzer in class AbstractSourceAnalyzer_IntegrationTest

initializeSourceAnalyzerForEmptyDirectory

protected void initializeSourceAnalyzerForEmptyDirectory()
Specified by:
initializeSourceAnalyzerForEmptyDirectory in class AbstractSourceAnalyzer_IntegrationTest

initializeSourceAnalyzerForDirectoryWithNoMatchingFiles

protected void initializeSourceAnalyzerForDirectoryWithNoMatchingFiles()
Specified by:
initializeSourceAnalyzerForDirectoryWithNoMatchingFiles in class AbstractSourceAnalyzer_IntegrationTest

setUp

public void setUp()
Overrides:
setUp in class AbstractSourceAnalyzer_IntegrationTest

testConstructor_ThrowsExceptionIfFileSetsIsNull

public void testConstructor_ThrowsExceptionIfFileSetsIsNull()

testConstructor_ThrowsExceptionIfProjectIsNull

public void testConstructor_ThrowsExceptionIfProjectIsNull()

testAnalyze_ReturnsResultsNodeWithNoChildrenForEmptyFileSets

public void testAnalyze_ReturnsResultsNodeWithNoChildrenForEmptyFileSets()

testAnalyze_ReturnsEmptyResultsNodeForEmptyMetricSet

public void testAnalyze_ReturnsEmptyResultsNodeForEmptyMetricSet()

testAnalyze_ScriptClass_ReturnsMethodResults

public void testAnalyze_ScriptClass_ReturnsMethodResults()

testAnalyze_ScriptClass_ReturnsNoResultsForClassMetricThatIgnoresSyntheticClasses

public void testAnalyze_ScriptClass_ReturnsNoResultsForClassMetricThatIgnoresSyntheticClasses()

testAnalyze_MatchingFiles_ButNoSubdirectories

public void testAnalyze_MatchingFiles_ButNoSubdirectories()

testAnalyze_MultipleFileSets

public void testAnalyze_MultipleFileSets()

testGetSourceDirectories_ReturnsEmptyListForNoFileSets

public void testGetSourceDirectories_ReturnsEmptyListForNoFileSets()

testGetSourceDirectories_ReturnsSingleDirectoryForSingleFileSet

public void testGetSourceDirectories_ReturnsSingleDirectoryForSingleFileSet()

testGetSourceDirectories_ReturnsDirectoryForEachFileSet

public void testGetSourceDirectories_ReturnsDirectoryForEachFileSet()

testGetSourceDirectories_ReturnsDirectoryRelativeToBaseDirectory

public void testGetSourceDirectories_ReturnsDirectoryRelativeToBaseDirectory()

testFindResultsNodeForPath_ReturnsNullForPathThatDoesNotExist

public void testFindResultsNodeForPath_ReturnsNullForPathThatDoesNotExist()

testFindResultsNodeForPath_ReturnsRootResultsNodeForNullPath

public void testFindResultsNodeForPath_ReturnsRootResultsNodeForNullPath()

testFindResultsNodeForPath_IgnoresNonPackageChildNodes

public void testFindResultsNodeForPath_IgnoresNonPackageChildNodes()

testFindResultsNodeForPath

public void testFindResultsNodeForPath()

testFindOrAddResultsNodeForPath

public void testFindOrAddResultsNodeForPath()


Copyright © 2012. All Rights Reserved.