~ubuntu-branches/ubuntu/natty/cobertura/natty

« back to all changes in this revision

Viewing changes to test/net/sourceforge/cobertura/reporting/ComplexityCalculatorTest.java

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2010-05-11 19:21:46 UTC
  • mfrom: (0.1.4 sid) (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100511192146-j742v5jsl89ztndu
Tags: 1.9.4.1+dfsg-2
* Now Build-Depends on libservlet2.5-java and add a missing Depends
  on the same package. (Closes: #580842). 
* Simplify list of JRE dependences for cobertura and drop JRE dependences for
  libcobertura-java as Java libraries are no longer required to depend on a
  JVM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    private ComplexityCalculator complexity;
35
35
        
36
36
    public void testGetCCNForSourceFile() {
 
37
        /*
 
38
         * Sample1.java has a @Deprecated annotation to make sure the complexity works with annotations.
 
39
         */
37
40
        double ccn1 = complexity.getCCNForSourceFile( new SourceFileData("com/example/Sample1.java"));
38
41
        assertTrue( ccn1!=0.0);
39
42
        double ccn2 = complexity.getCCNForSourceFile( new SourceFileData("com/example/Sample2.java"));