Export to GitHub

testability-explorer - issue #51

Testability is not working.


Posted on Dec 26, 2014 by Quick Elephant

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.

Comment #1

Posted on Dec 29, 2014 by Helpful Elephant

Comment deleted

Status: New

Labels:
Type-Defect Priority-Medium