~ubuntu-branches/ubuntu/precise/cobertura/precise

« back to all changes in this revision

Viewing changes to test/net/sourceforge/cobertura/coveragedata/JumpDataTest.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:
63
63
 
64
64
                for (int i = 0; i < 5; i++)
65
65
                {
66
 
                        a.touchBranch(true);
 
66
                        a.touchBranch(true,1);
67
67
                        assertEquals(0.5, a.getBranchCoverageRate(), 0);
68
68
                        assertEquals(2, a.getNumberOfValidBranches());
69
69
                        assertEquals(1, a.getNumberOfCoveredBranches());
70
70
                }
71
71
 
72
 
                a.touchBranch(false);
 
72
                a.touchBranch(false,1);
73
73
                assertEquals(1, a.getBranchCoverageRate(), 0);
74
74
                assertEquals(2, a.getNumberOfValidBranches());
75
75
                assertEquals(2, a.getNumberOfCoveredBranches());
79
79
        {
80
80
                assertEquals(0, a.getTrueHits());
81
81
                for (int i = 0; i < 400; i++)
82
 
                        a.touchBranch(true);
 
82
                        a.touchBranch(true,1);
83
83
                assertEquals(400, a.getTrueHits());
84
84
                
85
85
                assertEquals(0, a.getFalseHits());
86
86
                for (int i = 0; i < 200; i++)
87
 
                        a.touchBranch(false);
 
87
                        a.touchBranch(false,1);
88
88
                assertEquals(200, a.getFalseHits());
89
89
        }
90
90