Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 5297

Show
Ignore:
Timestamp:
08/17/08 01:37:54 (3 months ago)
Author:
r0bby
Message:

groovyforms: remove a debugging println statememt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs-modules/groovyforms/test/org/openmrs/module/groovyforms/util/GroovyFormsGenerationUtilTest.groovy

    r5296 r5297  
    1919    void testGenerationController() { 
    2020        def gen = new GroovyFormsGenerationUtil() 
    21         def controller = gen.generateController("Foo", GroovyFormsClassUtil.getProperties(new Foo())) 
    22         println controller 
     21        def controller = gen.generateController("Foo", GroovyFormsClassUtil.getProperties(new Foo()))         
    2322        assertTrue "Should contain the assert statements", controller.indexOf("assert ") > 0 
    2423        assertTrue "Should have the onSubmit() method", controller.indexOf("onSubmit(Foo form) {") > 0 
    2524        assertTrue "Should have the validate() method", controller.indexOf("validate(Foo form) {") > 0 
    26         assertTrue "Should have the class name FooController", controller.startsWith("class FooController extends AbstractGroovyFormController {")` 
     25        assertTrue "Should have the class name FooController", controller.startsWith("class FooController extends AbstractGroovyFormController {") 
    2726    } 
    2827}