This main purpose of this example is to show you :
Another particularity of this example is that we do not need to write a custom fixture : the Calculator class will be use directly.
| Import |
| com.greenpepper.confluence.demo.calculator |
| Rule for |
calculator |
| x |
y |
sum? |
product? |
quotient? |
| 0 |
0 |
0 |
0 |
error |
| 1 |
0 |
1 |
0 |
error |
| 0 |
1 |
1 |
0 |
0 |
| 1 |
1 |
2 |
1 |
1 |
| 10 |
2 |
12 |
20 |
5 |
Source Code
Calculator.java