commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/jelly/jelly-tags/ant/src/test/org/apache/commons/jelly/ant/tag DummyTag.java suite.jelly
Date Wed, 01 Sep 2004 15:51:40 GMT
dion        2004/09/01 08:51:40

  Modified:    jelly/jelly-tags/ant/src/test/org/apache/commons/jelly/ant/tag
                        DummyTag.java suite.jelly
  Log:
  Add setting of boolean for tag
  
  Revision  Changes    Path
  1.6       +17 -2     jakarta-commons/jelly/jelly-tags/ant/src/test/org/apache/commons/jelly/ant/tag/DummyTag.java
  
  Index: DummyTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/ant/src/test/org/apache/commons/jelly/ant/tag/DummyTag.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DummyTag.java	25 Feb 2004 01:25:54 -0000	1.5
  +++ DummyTag.java	1 Sep 2004 15:51:40 -0000	1.6
  @@ -41,7 +41,10 @@
   	
   	private boolean calledCreatepath;
   	private boolean calledSetClasspath;
  -	private Path classpath;
  +    private boolean calledSetFlag;
  +	
  +    private Path classpath;
  +    private boolean flag;
   	
       public DummyTag() {
       }
  @@ -56,6 +59,10 @@
       //------------------------------------------------------------------------- 
       public void doTag(XMLOutput output) throws JellyTagException {
   
  +        if (! calledSetFlag) {
  +            throw new AssertionFailedError("call to setFlag() was not made");
  +        }
  +        
       	calledCreatepath = false;    	
       	calledSetClasspath = false;    	
   
  @@ -87,7 +94,15 @@
       	log.info("called setClasspath()");
       	calledSetClasspath = true;    	
       	this.classpath = classpath;
  -    } 
  +    }
  +    
  +    public void setFlag(boolean flag)
  +    {
  +        log.info("called setFlag()");
  +        calledSetFlag = true;      
  +        this.flag = flag;
  +        
  +    }
       
       // Tag properties
       //-------------------------------------------------------------------------
  
  
  
  1.4       +1 -1      jakarta-commons/jelly/jelly-tags/ant/src/test/org/apache/commons/jelly/ant/tag/suite.jelly
  
  Index: suite.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/ant/src/test/org/apache/commons/jelly/ant/tag/suite.jelly,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- suite.jelly	25 Feb 2004 05:32:00 -0000	1.3
  +++ suite.jelly	1 Sep 2004 15:51:40 -0000	1.4
  @@ -22,7 +22,7 @@
   
   	<test:case name="nestedClasspath">
   			
  -		<my:dummy var="path">
  +		<my:dummy var="path" flag="true">
   			<classpath>
   				<pathelement path="target/classes"/>
   				<pathelement path="target/test-classes"/>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message