javancss.test
Class JavancssTest

java.lang.Object
  extended by ccl.util.Test
      extended by javancss.test.AbstractTest
          extended by javancss.test.JavancssTest
All Implemented Interfaces:
Runnable

public class JavancssTest
extends AbstractTest

Test class for the JavaNCSS application. $Id: JavancssTest.java 171 2009-05-31 20:12:01Z hboutemy $ 3. 9. 1996


Constructor Summary
JavancssTest()
           
JavancssTest(ccl.util.Test pTest_)
           
 
Method Summary
protected  void _doIt()
           
static void main(String[] asArg_)
           
 void testCCN()
          Tests the cyclomatic complexity number measurement.
 void testEncoding()
           
 void testJavadocLines()
          Check that Javadoc line counts are correct.
 void testJavadocs()
          There has been a bug introduced for version 16.34 which counts Javadoc comments (**) for fields as well as for methods, while I am only in the later ones.
 void testNcss()
           
 void testNcssAndMore()
           
 void testRecursive()
           
 void testVersion()
           
 
Methods inherited from class javancss.test.AbstractTest
getTestDir, getTestFile, getTestFile, main, main, setTestDir
 
Methods inherited from class ccl.util.Test
_enterSubTest, _exitSubTest, _getValue, _increment, _setTests, _showLiveSignals, Assert, Assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertTrue, assertTrue, assertTrue, bug, bugIf, bugIf, bugIf, fail, fail, getBugs, getComment, getGlobalTests, getLocalTests, getName, getTestClassDirectory, getTestDirectory, getTestName, getTestName, getValue, initialize, isTest, isTiming, isVerbose, printResult, printResult, redirectStandardStreams, run, setBug, setParentTest, setTests, setTiming, setValue, setVerbose, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavancssTest

public JavancssTest()

JavancssTest

public JavancssTest(ccl.util.Test pTest_)
Method Detail

testJavadocs

public void testJavadocs()
There has been a bug introduced for version 16.34 which counts Javadoc comments (**) for fields as well as for methods, while I am only in the later ones. File Test20 has 6 methods and 6 + 1 ** comments. This test should make sure that 3 attribute comments won't be counted.


testJavadocLines

public void testJavadocLines()
Check that Javadoc line counts are correct. There is one bug where there are only two files with a package jacob in the test directory (Test1.java and Test28.java), and while both have no javadocs at all, the count is still 11. The eleven seem to come from files Test20.java and Test21.java. This test shall trace this bug down and shall later asure that it got fixed.


_doIt

protected void _doIt()
              throws Exception
Specified by:
_doIt in class ccl.util.Test
Throws:
Exception

testNcss

public void testNcss()

testNcssAndMore

public void testNcssAndMore()
                     throws IOException
Throws:
IOException

testCCN

public void testCCN()
Tests the cyclomatic complexity number measurement.


main

public static void main(String[] asArg_)

testEncoding

public void testEncoding()
                  throws IOException
Throws:
IOException

testVersion

public void testVersion()
                 throws IOException
Throws:
IOException

testRecursive

public void testRecursive()
                   throws IOException
Throws:
IOException


Copyright © 1997-2011 Chr. Clemens Lee and companions. All Rights Reserved.