dion        2004/09/07 22:13:58

  Modified:    
jelly/jelly-tags/beanshell/src/test/org/apache/commons/jelly/tags/beanshell
                        suite.jelly
  Log:
  detab
  
  Revision  Changes    Path
  1.3       +25 -25    
jakarta-commons/jelly/jelly-tags/beanshell/src/test/org/apache/commons/jelly/tags/beanshell/suite.jelly
  
  Index: suite.jelly
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/jelly/jelly-tags/beanshell/src/test/org/apache/commons/jelly/tags/beanshell/suite.jelly,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- suite.jelly       25 Feb 2004 06:17:38 -0000      1.2
  +++ suite.jelly       8 Sep 2004 05:13:58 -0000       1.3
  @@ -16,42 +16,42 @@
   -->

   

   <test:suite 

  -     xmlns:j="jelly:core"

  -     xmlns:b="jelly:beanshell" 

  -     xmlns:test="jelly:junit">

  +    xmlns:j="jelly:core"

  +    xmlns:b="jelly:beanshell" 

  +    xmlns:test="jelly:junit">

   

   <test:case name="testPropertyWithDot">

   

  -     <j:set var="foo.bar" value="hello"/>

  -     

  -     <b:script>

  -             System.out.println( "foo.bar: " + context.getVariable("foo.bar") );

  -

  -             if (context.getVariable("foo.bar") == null) {

  -                     throw new Exception("Failed: no foo.bar defined: " + foo_bar);

  -             }

  -             context.setVariable("foo.bar", "worked");

  +    <j:set var="foo.bar" value="hello"/>

  +    

  +    <b:script>

  +        System.out.println( "foo.bar: " + context.getVariable("foo.bar") );

  +

  +        if (context.getVariable("foo.bar") == null) {

  +            throw new Exception("Failed: no foo.bar defined: " + foo_bar);

  +        }

  +        context.setVariable("foo.bar", "worked");

     </b:script>

   

  -     <test:assertEquals expected="worked" actual="${foo.bar}"/>

  -             

  +    <test:assertEquals expected="worked" actual="${foo.bar}"/>

  +        

   </test:case>

   

   <test:case name="testDotConversion">

   

  -     <j:set var="foo.bar" value="hello"/>

  -     

  -     <b:script>

  -             System.out.println( "foo.bar: " + foo_bar );

  -

  -             if (foo_bar == null) {

  -                      throw new Exception("Failed: no foo.bar defined: " + foo_bar);

  -             }

  -             context.setVariable("foo.bar", "worked");

  +    <j:set var="foo.bar" value="hello"/>

  +    

  +    <b:script>

  +        System.out.println( "foo.bar: " + foo_bar );

  +

  +        if (foo_bar == null) {

  +             throw new Exception("Failed: no foo.bar defined: " + foo_bar);

  +        }

  +        context.setVariable("foo.bar", "worked");

     </b:script>

   

  -     <test:assertEquals expected="worked" actual="${foo.bar}"/>

  -             

  +    <test:assertEquals expected="worked" actual="${foo.bar}"/>

  +        

   </test:case>

   

   </test:suite>

  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to