dbremner / testability-explorer

Automatically exported from code.google.com/p/testability-explorer
Apache License 2.0
0 stars 0 forks source link

Testability is not working. #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create the below class
public class SumOfPrimes1 {
  private final Primeness primeness = new Primeness();
  public int sum(int max) {
    int sum = 0;
    for (int i = 0; i < max; i++) {
      if (primeness.isPrime(i)) {
        sum += i;
      }
    }
    return sum;
  }
}
2.call sum method from main method from another class.
public class App {
    public static void main(String args[]){ 
      SumOfPrimes1 sumValue = new SumOfPrimes1();
      sumValue.sum(25);
    }
}

What is the expected output? What do you see instead?
Should have reported as "Needs work" instead it reported as "Excellent"

What version of the product are you using? On what operating system?
1.3.3
on Windows Vista

Please provide any additional information below.

Original issue reported on code.google.com by andismil...@gmail.com on 26 Dec 2014 at 6:12