Dashboard > GreenPepper Seeds > ... > GreenPepper Intepreters > Custom Interpreter
  GreenPepper Seeds Log In View a printable version of the current page.  
  Custom Interpreter
Added by admin, last edited by JC Huet on Aug 07, 2008  (view change)
Labels: 

 GreenPepperAnonymous access is denied. You must log in to use GreenPepper.

Custom Interpreter

Import
com.greenpepper.interpreter
GreenPepper.Interpreters

This seed aims to prove that  GreenPepper allows users to create their own interpreter.

rule for interpreter recognition
interpreter row instance of? is an interpreter?
[ setup ] [mock] SetupInterpreter true
[ do with ] [mock] DoWithInterpreter true
[ list of] [mock] ListOfInterpreter true
[ list of] [mock] ListOfInterpreter true
[ my own] MyOwnInterpreter true

Here is an example for this interpreter MyOwnInterpreter. It just colors the second cell of the row depending on the first cell value.

The interpreter My Own interpreter is fixtureless, It just colors the second cell of the row depending on the first cell value.

my own
right  
wrong  
right  
ignore  

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