<project name="ReportTaskTest" default="testRaw" basedir="temporaryTestDirectory">
  <taskdef name="classycleReport" classname="classycle.ant.ReportTask"/>

  <target name="testRaw">
    <classycleReport reportType="raw" reportFile="reportTaskTest.txt">
      <fileset dir="../classes/example">
        <include name="**/*.class"/>
      </fileset>
    </classycleReport>
  </target>

  <target name="testMergeInnerClasses">
    <classycleReport reportType="raw" reportFile="reportTaskTest.txt"
    				 mergeInnerClasses="true">
      <fileset dir="../classes/example"/>
    </classycleReport>
  </target>

  <target name="testOnlyA">
    <classycleReport reportType="raw" reportFile="reportTaskTest.txt">
      <fileset dir="../classes/example">
        <include name="**/*A.class"/>
      </fileset>
    </classycleReport>
  </target>

  <target name="testIncludingA">
    <classycleReport reportType="raw" reportFile="reportTaskTest.txt"
    				 includingClasses="*A">
      <fileset dir="../classes/example"/>
    </classycleReport>
  </target>

  <target name="testIncludingAExcludingB">
    <classycleReport reportType="raw" reportFile="reportTaskTest.txt"
    				 includingClasses="*A" excludingClasses="*.B*">
      <fileset dir="../classes/example"/>
    </classycleReport>
  </target>

  <target name="testIncludingAExcludingBp">
    <classycleReport reportType="raw" reportFile="reportTaskTest.txt"
    				 includingClasses="*A" excludingClasses="*.B* *.p.*">
      <fileset dir="../classes/example"/>
    </classycleReport>
  </target>

  <target name="testCSV">
    <classycleReport reportType="csv" reportFile="reportTaskTest.csv">
      <fileset dir="../classes/example"/>
    </classycleReport>
  </target>

  <target name="testXML">
    <classycleReport reportFile="reportTaskTest.xml">
      <fileset dir="../classes/example"/>
    </classycleReport>
  </target>

  <target name="testReflectionAll">
    <classycleReport reportType="raw" reportFile="reportTaskTest.txt"
    				 reflectionPattern="">
      <fileset dir="../classes/example"/>
    </classycleReport>
  </target>

  <target name="testReflectionRestricted">
    <classycleReport reportType="raw" reportFile="reportTaskTest.txt"
    				 reflectionPattern="*.*">
      <fileset dir="../classes/example"/>
    </classycleReport>
  </target>

  <target name="testXMLPackagesOnly">
    <classycleReport reportFile="reportTaskTest.xml" packagesOnly="true"
                     title="&lt;hel&amp;lo&gt;">
      <fileset dir="../classes/example"/>
    </classycleReport>
  </target>

  <target name="testMissingReportFile">
    <classycleReport>
      <fileset dir="../classes/example"/>
    </classycleReport>
  </target>

  <target name="testInvalidReportType">
    <classycleReport reportType="foo" reportFile="reportTaskTest.foo">
      <fileset dir="../classes/example">
        <include name="**/*.class"/>
      </fileset>
    </classycleReport>
  </target>

  <target name="testMissingFileSet">
    <classycleReport reportFile="reportTaskTest.foo">
    </classycleReport>
  </target>


</project>
