Error executing slim fitnesse test case

105 views Asked by At

I'm getting following error when executing test case in fitnesse:

The instance decisionTable_0.setFirst. does not exist

Below link has the screenshot:

https://github.com/unclebob/fitnesse/issues/1078

Below is the fixture java code: package FitnesseExamples;

public class Calculator {
private int first, second;

public void setFirst(int first){
    this.first = first;
}
public void setSecond(int second){
    this.second = second;
}
public int addition(){

    return(first+second);
}

public int minus(){
    return(first-second);
}

public int multiply(){

    return(first*second);
}

public float divide(){
    return(first/second);
}
}

Below is the wiki test:

!define TEST_SYSTEM {slim}

!path C:\Shyam\Automation\Workspace\AddNumber\src\FitnesseExamples

!|Calculator|
|first|second|addition?|minus?|multiply?|divide?|
|4 |2 |6 |2 |8 |2.0 |
|10 |5 |15 |5 |50 |2.0 |
|10 |10 |20 |0 |100 |1.0 |

My Calculator.class file is present in the following location:

C:\Shyam\Automation\Workspace\AddNumber\src\FitnesseExamples

0

There are 0 answers