Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-105

JBossTimerPeriodTestCase - wrong computatuon of maxDeviation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 4.2.BETA
    • 4.2.ALPHA1
    • None
    • None

    Description

      Class org.jboss.test.jbossmx.compliance.timer.JBossTimerPeriodTestCase uses wrong computation of maxDeviation value, which makes the test incorrect.

      org.jboss.test.jbossmx.compliance.timer.PeriodTestCase, line 195:

      long maxDeviation = expected / percentage;

      should be corrected to:

      long maxDeviation = expected * percentage / 100;

      Attachments

        Issue Links

          Activity

            People

              vivekl_jira Vivek Lankshmanan (Inactive)
              dpospisil Dominik Pospisil (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: