Square { public double calcFunction(double x){ return a*x*x+b*x+c; } Square(double a,double b,double c); double calcFunction(double x); static void main(String[] args);  }
@Test public void calcFuncOneValue(){ Square sq = new Square(1,2,3); double control = 11; double result = sq.calcFunction(2); Assert.assertThat(result,is(control)); }