jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pier...@locus.apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/WEB-INF/classes/tags TestTag.java
Date Thu, 07 Dec 2000 23:23:02 GMT
pierred     00/12/07 15:23:01

  Modified:    src/server/jsp-tests/WEB-INF/classes/tags TestTag.java
  Log:
  Bug fix: att2 is not set in the "doStartTag" test and the code was testing on
  on a 'null' value. Reversed the condition so constant String is first.
  Also set the TestString for "doStartTag" so it matches the expected output
  of the golden-file.
  
  a null value
  
  Revision  Changes    Path
  1.3       +5 -4      jakarta-watchdog-4.0/src/server/jsp-tests/WEB-INF/classes/tags/TestTag.java
  
  Index: TestTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/jsp-tests/WEB-INF/classes/tags/TestTag.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestTag.java	2000/12/07 21:10:19	1.2
  +++ TestTag.java	2000/12/07 23:22:59	1.3
  @@ -55,6 +55,7 @@
   // Test for doStartTag method in TagSupport class.
       public int doStartTag() {
          if ("doStartTag".equalsIgnoreCase (this.getAtt1())) {
  +           TestString +=this.getAtt1();
   
   // Test for methods in variableInfo class.
   
  @@ -71,13 +72,13 @@
       VariableInfo[] vi = ftet.getVariableInfo(td);
       BodyTagSupport bts = new BodyTagSupport();
   
  -	if(this.getAtt2().equals("getClassName")) {
  +	if("getClassName".equals(this.getAtt2())) {
   	TestString = TestString + vi[0].getClassName();
  -	} else if (this.getAtt2().equals("getDeclare")) {
  +	} else if ("getDeclare".equals(this.getAtt2())) {
   	TestString = TestString + vi[0].getDeclare();
  -	} else if (this.getAtt2().equals("getScope")) {
  +	} else if ("getScope".equals(this.getAtt2())) {
   	TestString = TestString + vi[0].getScope();
  -	} else if (this.getAtt2().equals("getVarName")) {
  +	} else if ("getVarName".equals(this.getAtt2())) {
   	TestString = TestString + vi[0].getVarName();
   	}
   
  
  
  

Mime
View raw message