jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest GetContentTypeTestServlet.java
Date Sun, 17 Dec 2000 04:48:43 GMT
craigmcc    00/12/16 20:48:43

  Modified:    src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest
                        GetContentTypeTestServlet.java
  Log:
  Modify this test to actually report a failure if it occurs, along with the
  offending content type value.
  
  Revision  Changes    Path
  1.2       +7 -7      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest/GetContentTypeTestServlet.java
  
  Index: GetContentTypeTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest/GetContentTypeTestServlet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GetContentTypeTestServlet.java	2000/10/16 22:48:13	1.1
  +++ GetContentTypeTestServlet.java	2000/12/17 04:48:43	1.2
  @@ -1,6 +1,6 @@
   /*
  - * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest/GetContentTypeTestServlet.java,v
1.1 2000/10/16 22:48:13 santosh Exp $
  - * $Date: 2000/10/16 22:48:13 $
  + * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest/GetContentTypeTestServlet.java,v
1.2 2000/12/17 04:48:43 craigmcc Exp $
  + * $Date: 2000/12/17 04:48:43 $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -83,11 +83,11 @@
   		String contentType=request.getContentType();
   		if(contentType == null) { // spec says that it can be null
   			out.println("GetContentTypeTest test PASSED");
  -		}
  -		else {
  -			if(contentType.equals("text/plain")) {
  -				out.println("GetContentTypeTest test PASSED");
  -			}
  +		} else if (contentType.equals("text/plain")) {
  +			out.println("GetContentTypeTest test PASSED");
  +                } else {
  +                        out.println("GetContentTypeTest test FAILED");
  +                        out.println("contentType = " + contentType);
   		}
   	}
   }
  
  
  

Mime
View raw message