Dashboard > GreenPepper Demo > Home > Calculator
  GreenPepper Demo Log In View a printable version of the current page.  
  Calculator
Added by admin, last edited by Francois Denommee on Nov 12, 2009  (view change)
Labels: 

Begin Info
Calculator Example

The 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.

End Info
Import
com.greenpepper.confluence.demo.calculator
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
Begin Info

Source Code

Calculator.java

End Info
Testing
Unknown macro: {table-plus}
rule for Calculator
x y Sum?
50 100 150
20 30  
Calculator.java (GreenPepper Demo)

DEMONSTRATION LICENSE - This Confluence site is for demonstration purposes only. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.4.3 Build:#705 Mar 21, 2007) - Bug/feature request - Contact Administrators