I have been trying to test my java class using FitNesse
tool, but I get some errors:
This is my Addition.java
public class Addition{
private double firstnum, secondnum;
public void setFirstnum(double firstnum){
this.firstnum = firstnum;
}
public void setSecondnum(double secondnum){
this.secondnum = secondnum;
}
public double result(){
return firstnum + secondnum;
}
}
And I have compiled this program and made its class.
And this is how my FitNesse
table looks like
!***< Hidden
!define TEST_SYSTEM {slim}
!path C:\Users\Jananath Banuka\Desktop\FitNesse\classes
|eg.Addition|
|firstnum |secondnum |result? |
|10 |2 |12 |
|12.6 |3 |15.6 |
But I get this error, which I don't know. Below is my error
Can someone please tell me what is wrong?