jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vani...@hyperreal.org
Subject cvs commit: jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpUtils GetRequestURLTest.java ParsePostDataTest.java ParsePostData_01Test.java ParseQueryStringTest.java ParseQueryString_01Test.java
Date Mon, 08 Nov 1999 23:55:40 GMT
vanitha     99/11/08 15:55:18

  Added:       src/clients/org/apache/jcheck/servlet/client/deployment-descriptor
                        ErrorHandlingTest.java ErrorHandling_1Test.java
                        ErrorHandling_2Test.java ErrorHandling_3Test.java
                        JspFileTest.java JspFile_1Test.java
                        ServletClassTest.java SessionTimeOutTest.java
                        UrlPatternTest.java UrlPattern_1Test.java
                        UrlPattern_2Test.java UrlPattern_3Test.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet/GenericServlet
                        DestroyTest.java GetServletConfigTest.java
                        GetServletContextTest.java GetServletInfoTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet/RequestDispatcher
                        ForwardTest.java Forward_1Test.java
                        IncludeTest.java Include_1Test.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet
                        DoDestroyedTest.java DoInit1Test.java
                        DoInit2Test.java DoServiceTest.java
                        DoServletConfigTest.java DoServletInfoTest.java
                        LifeCycle_SupportTest.java
                        PermanentUnavailabilityTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletConfig
                        GetInitParameterNamesTest.java
                        GetInitParameterNames_1Test.java
                        GetInitParameterTest.java
                        GetInitParameter_1Test.java
                        GetServletContextTest.java GetServletNameTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext
                        GetAttributeNamesTest.java GetAttributeTest.java
                        GetAttribute_1Test.java GetContextTest.java
                        GetContext_1Test.java
                        GetInitParameterNamesTest.java
                        GetInitParameterTest.java
                        GetInitParameter_1Test.java
                        GetMajorVersionTest.java GetMimeTypeTest.java
                        GetMimeType_1Test.java GetMinorVersionTest.java
                        GetNamedDispatcherTest.java
                        GetNamedDispatcher_1Test.java GetRealPathTest.java
                        GetRealPath_1Test.java
                        GetRequestDispatcherTest.java
                        GetRequestDispatcher_1Test.java
                        GetResourceAsStreamTest.java
                        GetResourceAsStream_1Test.java GetResourceTest.java
                        GetResource_1Test.java GetServerInfoTest.java
                        GetServletNamesTest.java GetServletTest.java
                        GetServletsTest.java Log_1Test.java Log_2Test.java
                        Log_3Test.java RemoveAttributeTest.java
                        SetAttributeTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletException
                        Constructor1Test.java Constructor2Test.java
                        Constructor3Test.java Constructor4Test.java
                        GetRootCauseTest.java GetRootCause_1Test.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletInputStream
                        ReadLineTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream
                        Print1Test.java Print2Test.java Print3Test.java
                        Print4Test.java Print5Test.java Print6Test.java
                        Print7Test.java Println1Test.java Println2Test.java
                        Println3Test.java Println4Test.java
                        Println5Test.java Println6Test.java
                        Println7Test.java Println8Test.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest
                        Encoder.java GetAttributeNamesTest.java
                        GetAttributeTest.java GetCharacterEncodingTest.java
                        GetCharacterEncoding_1Test.java
                        GetContentLengthTest.java
                        GetContentLength_1Test.java GetContentTypeTest.java
                        GetContentType_1Test.java GetInputStreamTest.java
                        GetInputStream_1Test.java GetLocaleTest.java
                        GetLocalesTest.java GetLocales_1Test.java
                        GetParameterNamesTest.java
                        GetParameterNames_1Test.java GetParameterTest.java
                        GetParameterValuesTest.java
                        GetParameterValues_1Test.java
                        GetParameter_1Test.java GetProtocolTest.java
                        GetReaderTest.java GetReader_1Test.java
                        GetRealPathTest.java GetRemoteAddrTest.java
                        GetRemoteHostTest.java
                        GetRequestDispatcherTest.java GetSchemeTest.java
                        GetServerNameTest.java GetServerPortTest.java
                        SetAttributeTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse
                        FlushBufferTest.java GetBufferSizeTest.java
                        GetCharacterEncodingTest.java
                        GetOutputStreamTest.java GetOutputStream_1Test.java
                        GetWriterTest.java GetWriter_1Test.java
                        IsCommittedTest.java ResetTest.java
                        Reset_1Test.java SetBufferSizeTest.java
                        SetBufferSize_2Test.java SetContentLengthTest.java
                        SetContentTypeTest.java SetLocaleTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet/SingleThreadModel
                        SingleModelTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException
                        Constructor1Test.java Constructor2Test.java
                        Constructor3Test.java Constructor4Test.java
                        GetServletTest.java GetUnavailableSecondsTest.java
                        GetUnavailableSeconds_1Test.java
                        GetUnavailableSeconds_3Test.java
                        GetUnavailableSeconds_4Test.java
                        IsPermanentTest.java IsPermanent_1Test.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie
                        ConstructorTest.java Constructor_1Test.java
                        CookieCloneTest.java GetCommentTest.java
                        GetComment_1Test.java GetDomainTest.java
                        GetDomain_1Test.java GetMaxAgeTest.java
                        GetMaxAge_1Test.java GetNameTest.java
                        GetPathTest.java GetPath_1Test.java
                        GetSecureTest.java GetValueTest.java
                        GetVersionTest.java SetCommentTest.java
                        SetDomainTest.java SetMaxAgeTest.java
                        SetPathTest.java SetSecureTest.java
                        SetValueTest.java SetVersionTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest
                        GetAuthTypeTest.java GetContextPathTest.java
                        GetCookiesTest.java GetCookies_01Test.java
                        GetDateHeaderTest.java GetDateHeader_01Test.java
                        GetDateHeader_02Test.java GetHeaderNamesTest.java
                        GetHeaderTest.java GetHeader_01Test.java
                        GetHeadersTest.java GetHeaders_01Test.java
                        GetIntHeaderTest.java GetIntHeader_1Test.java
                        GetIntHeader_2Test.java GetMethodTest.java
                        GetMethod_HEADTest.java GetMethod_POSTTest.java
                        GetPathInfoTest.java GetPathInfo_01Test.java
                        GetPathTranslatedTest.java GetQueryStringTest.java
                        GetQueryString_01Test.java GetRemoteUserTest.java
                        GetRequestURITest.java
                        GetRequestedSessionIdTest.java
                        GetServletPathTest.java GetSession_01Test.java
                        GetUserPrincipalTest.java
                        IsRequestedSessionIdFromCookieTest.java
                        IsRequestedSessionIdFromURLTest.java
                        IsRequestedSessionIdFromURL_2Test.java
                        IsRequestedSessionIdValidTest.java
                        IsUserInRoleTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse
                        AddCookieTest.java AddDateHeaderTest.java
                        AddDateHeader_1Test.java AddHeaderTest.java
                        AddHeader_1Test.java AddIntHeaderTest.java
                        AddIntHeader_1Test.java ContainsHeaderTest.java
                        ContainsHeader_01Test.java
                        EncodeRedirectURLTest.java
                        EncodeRedirectURL_2Test.java EncodeURLTest.java
                        EncodeURL_2Test.java SendErrorTest.java
                        SendError_01Test.java SendRedirectTest.java
                        SendRedirect_1Test.java SetDateHeaderTest.java
                        SetDateHeader_1Test.java SetHeaderTest.java
                        SetHeader_1Test.java SetIntHeaderTest.java
                        SetIntHeader_1Test.java SetStatusTest.java
                        SetStatus_1Test.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession
                        GetAttributeNamesTest.java
                        GetAttributeNames_01Test.java GetAttributeTest.java
                        GetAttribute_01Test.java GetAttribute_02Test.java
                        GetCreationTimeTest.java GetIdTest.java
                        GetLastAccessedTimeTest.java
                        GetMaxInactiveIntervalTest.java
                        GetMaxInactiveInterval_01Test.java
                        GetSessionContextTest.java GetValueNamesTest.java
                        GetValueNames_01Test.java GetValueTest.java
                        GetValue_01Test.java GetValue_02Test.java
                        InvalidateTest.java IsNewTest.java
                        IsNew_01Test.java PutValueTest.java
                        PutValue_01Test.java PutValue_02Test.java
                        RemoveAttributeTest.java
                        RemoveAttribute_01Test.java
                        RemoveAttribute_02Test.java RemoveValueTest.java
                        RemoveValue_01Test.java RemoveValue_02Test.java
                        SetAttributeTest.java SetAttribute_01Test.java
                        SetMaxInactiveIntervalTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSessionBindingEvent
                        GetNameTest.java GetSessionTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSessionBindingListener
                        ValueBoundTest.java ValueUnboundTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSessionContext
                        GetIdsTest.java GetSessionTest.java
               src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpUtils
                        GetRequestURLTest.java ParsePostDataTest.java
                        ParsePostData_01Test.java ParseQueryStringTest.java
                        ParseQueryString_01Test.java
  Log:
  Servlet Watchdog Tests
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/ErrorHandlingTest.java
  
  Index: ErrorHandlingTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/ErrorHandlingTest.java,v 1.1 1999/11/08 23:46:05 vanitha Exp $
   * $Date: 1999/11/08 23:46:05 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.deployment_descriptor;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  
  /**
   *	Negative test for error-code element
   *	@author Nikesh Anand
   */
  
  public class ErrorHandlingTest extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("ErrorCodeElementTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// just make a connection to the servlet
  
  			HttpURLConnection connection = getConnection();
  			boolean pass=false;
  
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line=null;
  
  	/**
  	 *	We will read the output of the servlet
  	 *	we are lookin for error code 404 in it
  	 */
  			while((line=br.readLine())!=null) {
  
  				if(line.indexOf("404")>0) {
  					pass=true;
  					break;
  				}
  
  			}
  
  
  			if(pass) {
  			
  				testResult = new TestResult();
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  
  				testResult.setStatus(false);
  				testResult.setMessage("FAIL");
  			}
  		}
  		/**
  		 *	We specified an invalid resource for 
  		 *	the error-code 404,We should get
  		 *	FileNotFoundException.
  		 */
  
  		catch(FileNotFoundException fne) {
  
  			testResult = new TestResult();
  
  			testResult.setStatus(true);
  			testResult.setMessage("OK");
  		}
  		catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/ErrorHandling_1Test.java
  
  Index: ErrorHandling_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/ErrorHandling_1Test.java,v 1.1 1999/11/08 23:46:10 vanitha Exp $
   * $Date: 1999/11/08 23:46:10 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.deployment_descriptor;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  
  /**
   *	Negative test for exception-type element
   *	@author Nikesh Anand
   */
  
  public class ErrorHandling_1Test extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("ExceptionTypeElementTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// just make a connection to the servlet
  
  			HttpURLConnection connection = getConnection();
  
  
  			testResult = new TestResult();
  
  
  			//Server throws UnavailableException
  			//We are mapping that exception to an
  			// error page,if we get FileNotFoundException
  			//the testcase should fail.
  
  			testResult.setStatus(true);
  			testResult.setMessage("OK");
  
  		}catch(FileNotFoundException fne) {
  
  			testResult = new TestResult();
  
  			testResult.setStatus(false);
  			testResult.setMessage("Problem with exception-type element");
  
  		}
  		catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/ErrorHandling_2Test.java
  
  Index: ErrorHandling_2Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/ErrorHandling_2Test.java,v 1.1 1999/11/08 23:46:13 vanitha Exp $
   * $Date: 1999/11/08 23:46:13 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.deployment_descriptor;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  
  /**
   *	Test for exception-type element
   *	@author Nikesh Anand
   */
  
  public class ErrorHandling_2Test extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("ExceptionTypeElement1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = new TestResult();
  
  		try {
  
  			// just make a connection to the servlet
  
  			HttpURLConnection connection = getConnection();
  
  			//if we get here then it passes
  
  			testResult.setStatus(true);
  			testResult.setMessage("OK");
  
  		}
  
  		catch(FileNotFoundException fne) {
  
  			testResult.setStatus(false);
  			testResult.setMessage("Problem with error-code");
  		}
  		catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/ErrorHandling_3Test.java
  
  Index: ErrorHandling_3Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/ErrorHandling_3Test.java,v 1.1 1999/11/08 23:46:17 vanitha Exp $
   * $Date: 1999/11/08 23:46:17 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.deployment_descriptor;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  
  /**
   *	Negative test for exception-type element
   *	@author Nikesh Anand
   */
  
  public class ErrorHandling_3Test extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("ExceptionTypeElement2Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// just make a connection to the servlet
  
  			HttpURLConnection connection = getConnection();
  			boolean pass=false;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line=null;
  
  	/**
  	 *	We will read the output of the servlet
  	 *	we are lookin for error code 404 in it
  	 */
  			while((line=br.readLine())!=null) {
  
  				if(line.indexOf("404")>0) {
  
  					pass=true;
  					break;
  				}
  			}
  
  			testResult=new TestResult();
  
  			if(pass) {
  				
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with exception-type element");
  
  			}
  		}
  
  		/**
  		 * An unavailable resource has been mapped to the 
  		 * exception-type FileNotFoundException, We should
  		 * get FileNotFoundException here
  		 */
  
  		catch(FileNotFoundException fne) {
  
  			testResult = new TestResult();
  
  			testResult.setStatus(true);
  			testResult.setMessage("OK");
  
  		}
  		catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/JspFileTest.java
  
  Index: JspFileTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/JspFileTest.java,v 1.1 1999/11/08 23:46:20 vanitha Exp $
   * $Date: 1999/11/08 23:46:20 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.deployment_descriptor;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  
  /**
   *	Test for jsp-file element
   *	@author Nikesh Anand
   */
  
  public class JspFileTest extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("JspFileElementTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// just make a connection to the servlet
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = new TestResult();
  
  			//If it gets here then it passes
  			testResult.setStatus(true);
  			testResult.setMessage("OK");
  
  		}catch(FileNotFoundException fne) {
  
  			testResult = new TestResult();
  
  			testResult.setStatus(false);
  			testResult.setMessage("Problem with jsp-file Element");
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/JspFile_1Test.java
  
  Index: JspFile_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/JspFile_1Test.java,v 1.1 1999/11/08 23:46:23 vanitha Exp $
   * $Date: 1999/11/08 23:46:23 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.deployment_descriptor;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  
  /**
   *	Test for jsp-file element
   *	@author Nikesh Anand
   */
  
  public class JspFile_1Test extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("JspFileElement_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// we are connectin to nowhere
  
  			HttpURLConnection connection = getConnection();
  
  
  			testResult = getTestResult(connection);
  
  			testResult.setStatus(false);
  			testResult.setMessage("Problem with servlet-class Element");
  		}catch(FileNotFoundException fne) {
  
  			//if it gets here, then it passes
  
  			testResult = new TestResult();
  
  			testResult.setStatus(true);
  			testResult.setMessage("OK");
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/ServletClassTest.java
  
  Index: ServletClassTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/ServletClassTest.java,v 1.1 1999/11/08 23:46:26 vanitha Exp $
   * $Date: 1999/11/08 23:46:26 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.deployment_descriptor;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  
  /**
   *	Negative Test for servlet-class element
   *	@author Nikesh Anand
   */
  
  public class ServletClassTest extends ClientTest {
  
  /**
   *	We give an invalid class name, we should get 
   *	"FileNotFoundException"
   */
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("ServletClassElementTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// just make a connection to the servlet
  
  			HttpURLConnection connection = getConnection();
  			System.out.println("Iam Here");
  
  			System.out.println(connection);
  			System.out.println(connection.getResponseCode());
  
  			testResult = new TestResult();
  
  			testResult.setStatus(false);
  			testResult.setMessage("Problem With servlet-class Element");
  
  		}catch(FileNotFoundException fne) {
  
  			// to be more specific
  			//if it gets here, then it passes
  
  			testResult = new TestResult();
  
  			testResult.setStatus(true);
  			testResult.setMessage("OK");
  
  		}catch(Exception e) {
  			//any exception
  			//some times we may get SocketException
  			testResult = new TestResult();
  
  			testResult.setStatus(true);
  			testResult.setMessage("OK");
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/SessionTimeOutTest.java
  
  Index: SessionTimeOutTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/SessionTimeOutTest.java,v 1.1 1999/11/08 23:46:29 vanitha Exp $
   * $Date: 1999/11/08 23:46:29 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.deployment_descriptor;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  
  /**
   *	Test for session-timeout element
   *	@author Nikesh Anand
   */
  
  public class SessionTimeOutTest extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SessionTimeOutElementTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// just make a connection to the servlet
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/UrlPatternTest.java
  
  Index: UrlPatternTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/UrlPatternTest.java,v 1.1 1999/11/08 23:46:33 vanitha Exp $
   * $Date: 1999/11/08 23:46:33 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.deployment_descriptor;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  
  /**
   *	Test for url-pattern element
   *	@author Nikesh Anand
   */
  
  public class UrlPatternTest extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("UrlPatternTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// just make a connection to the servlet
  
  			HttpURLConnection connection = getConnection(null,null,"checking/pond",null);
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/UrlPattern_1Test.java
  
  Index: UrlPattern_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/UrlPattern_1Test.java,v 1.1 1999/11/08 23:46:35 vanitha Exp $
   * $Date: 1999/11/08 23:46:35 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.deployment_descriptor;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  
  /**
   *	Test for url-pattern element
   *	@author Nikesh Anand
   */
  
  public class UrlPattern_1Test extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("UrlPattern_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// just make a connection to the servlet
  
  
  			String path ="boo";
  
  			HttpURLConnection connection = getConnection(null,null,path,null);
  
  			testResult = getTestResult(connection);
  
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/UrlPattern_2Test.java
  
  Index: UrlPattern_2Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/UrlPattern_2Test.java,v 1.1 1999/11/08 23:46:36 vanitha Exp $
   * $Date: 1999/11/08 23:46:36 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.deployment_descriptor;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  
  /**
   *	Test for url-pattern element
   *	@author Nikesh Anand
   */
  
  public class UrlPattern_2Test extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("UrlPattern_2Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// just make a connection to the servlet
  
  			HttpURLConnection connection = getConnection(null,null,null,null);
  
  			testResult = getTestResult(connection);
  
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/UrlPattern_3Test.java
  
  Index: UrlPattern_3Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/deployment-descriptor/UrlPattern_3Test.java,v 1.1 1999/11/08 23:46:37 vanitha Exp $
   * $Date: 1999/11/08 23:46:37 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.deployment_descriptor;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  
  /**
   *	Test for url-pattern element
   *	@author Nikesh Anand
   */
  
  public class UrlPattern_3Test extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("UrlPattern_3Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// just make a connection to the servlet
  
  			HttpURLConnection connection = getConnection(null,null,"checking/well",null);
  
  			testResult = getTestResult(connection);
  
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/GenericServlet/DestroyTest.java
  
  Index: DestroyTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/GenericServlet/DestroyTest.java,v 1.1 1999/11/08 23:46:41 vanitha Exp $
   * $Date: 1999/11/08 23:46:41 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.GenericServlet;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for destroy method
   */
  
  public class DestroyTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("DestroyTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			//just connect to the servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/GenericServlet/GetServletConfigTest.java
  
  Index: GetServletConfigTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/GenericServlet/GetServletConfigTest.java,v 1.1 1999/11/08 23:46:42 vanitha Exp $
   * $Date: 1999/11/08 23:46:42 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.GenericServlet;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	A test for getServletConfig method
   */
  
  public class GetServletConfigTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetServletConfigTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/GenericServlet/GetServletContextTest.java
  
  Index: GetServletContextTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/GenericServlet/GetServletContextTest.java,v 1.1 1999/11/08 23:46:43 vanitha Exp $
   * $Date: 1999/11/08 23:46:43 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.GenericServlet;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getServletContext method
   */
  
  public class GetServletContextTest extends GenericClientTest {
  
  /**
   *	getServletContext method gives
   *	the ServletContext object for this servlet
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetServletContextTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//just need to conect to the Servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/GenericServlet/GetServletInfoTest.java
  
  Index: GetServletInfoTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/GenericServlet/GetServletInfoTest.java,v 1.1 1999/11/08 23:46:45 vanitha Exp $
   * $Date: 1999/11/08 23:46:45 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.GenericServlet;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	A Test For GenericServlet.getServletContext method
   */
  
  public class GetServletInfoTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetServletInfoTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/RequestDispatcher/ForwardTest.java
  
  Index: ForwardTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/RequestDispatcher/ForwardTest.java,v 1.1 1999/11/08 23:46:47 vanitha Exp $
   * $Date: 1999/11/08 23:46:47 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  package org.apache.jcheck.servlet.client.javax_servlet.RequestDispatcher;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for RequestDispatcher.forward method
   *	@author Nikesh Anand R
   */
  
  public class ForwardTest extends ClientTest {
  
  /** 
   *	The Servlet to which the request is forwarded 
   *	writes a message to the client
   *	we are reading it here and checking the value
   */
  
  	public String getDescription() {
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("ForwardTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			boolean pass=false;
  
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line=null;
  
  			while((line=br.readLine())!=null) {
  
  
  				if(line.equals("Way Ahead")) {
  
  					pass=true;
  					break;
  				}
  			}
  
  			testResult = new TestResult();
  
  			if(pass) {
  
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with forward method");
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/RequestDispatcher/Forward_1Test.java
  
  Index: Forward_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/RequestDispatcher/Forward_1Test.java,v 1.1 1999/11/08 23:46:48 vanitha Exp $
   * $Date: 1999/11/08 23:46:48 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  package org.apache.jcheck.servlet.client.javax_servlet.RequestDispatcher;
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /** 
   *	Negative Test for RequestDispatcher.forward method
   *	@author Nikesh Anand
   */
  
  public class Forward_1Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Forward_1Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		boolean pass=false;
  
  		try {
  			// connect to the servlet
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = new TestResult();
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line=null;
  
  			while((line=br.readLine())!=null) {
  				
  				if(line.equals("Passed")) {
  
  					pass=true;
  				}
  			}
  
  			testResult=new TestResult();
  
  			if(pass) {
  
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with include method");
  				
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/RequestDispatcher/IncludeTest.java
  
  Index: IncludeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/RequestDispatcher/IncludeTest.java,v 1.1 1999/11/08 23:46:50 vanitha Exp $
   * $Date: 1999/11/08 23:46:50 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  package org.apache.jcheck.servlet.client.javax_servlet.RequestDispatcher;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for RequestDispatcher.Include Method
   *	@author Nikesh Anand
   */
  
  public class IncludeTest extends ClientTest {
  
  /**
   *	We are reading the response from the
   *	included servlet
   */
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("IncludeTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			boolean pass=false;
  			HttpURLConnection connection = getConnection();
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line=null;
  
  			while((line=br.readLine())!=null) {
  
  				if(line.equals("Way Ahead")) {
  
  					pass=true;
  					break;
  				}
  			}
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with include method ");
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/RequestDispatcher/Include_1Test.java
  
  Index: Include_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/RequestDispatcher/Include_1Test.java,v 1.1 1999/11/08 23:46:52 vanitha Exp $
   * $Date: 1999/11/08 23:46:52 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  package org.apache.jcheck.servlet.client.javax_servlet.RequestDispatcher;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**	
   *	Negative Test for RequestDispatcher.include method
   *	@author Nikesh Anand
   */
  
  public class Include_1Test extends ClientTest {
  
  /**
   *	An included servlet is not supposed to change
   * 	the Response Header. We are trying to set Content-Length
   *	Header in the included servlet and checking
   *	if it had got reflected or not
   */
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Include_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			//included servlet set it to text/html
  
  			testResult = new TestResult();
  
  			if(connection.getContentType().equals("text/plain")) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with Include ");
  			}
  
  
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/DoDestroyedTest.java
  
  Index: DoDestroyedTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/DoDestroyedTest.java,v 1.1 1999/11/08 23:46:56 vanitha Exp $
   * $Date: 1999/11/08 23:46:56 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.Servlet;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for destroy method
   */
  
  public class DoDestroyedTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  
  		return sm.getString("DoDestroyedTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/DoInit1Test.java
  
  Index: DoInit1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/DoInit1Test.java,v 1.1 1999/11/08 23:46:58 vanitha Exp $
   * $Date: 1999/11/08 23:46:58 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.Servlet;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  
  /**
   *	Negative Test for init(ServletConfig) method
   */
  
  public class DoInit1Test extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("DoInit1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = new TestResult();
  
  		try {
  
  			//Servlet's work
  			// just make a connection to the servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}
  		
  		//Not a cleaner way
  		catch(FileNotFoundException fne) {
  
  			testResult.setStatus(true);
  			testResult.setMessage("OK");
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/DoInit2Test.java
  
  Index: DoInit2Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/DoInit2Test.java,v 1.1 1999/11/08 23:47:00 vanitha Exp $
   * $Date: 1999/11/08 23:47:00 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.Servlet;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for init  method
   */
  
  public class DoInit2Test extends GenericClientTest {
  
  /**
   *	LifeCycle Test. Checking whether init is invoked first
   *	(before service or destroy)
   */
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("DoInit2Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/DoServiceTest.java
  
  Index: DoServiceTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/DoServiceTest.java,v 1.1 1999/11/08 23:47:02 vanitha Exp $
   * $Date: 1999/11/08 23:47:02 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.Servlet;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for Servlet.Service(ServlerRequest,ServletResponse) method
   */
  
  public class DoServiceTest extends GenericClientTest {
  
  /**
   *	Checking Whether service method is called after init or not
   */
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("DoServiceTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/DoServletConfigTest.java
  
  Index: DoServletConfigTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/DoServletConfigTest.java,v 1.1 1999/11/08 23:47:03 vanitha Exp $
   * $Date: 1999/11/08 23:47:03 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.Servlet;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test For getServletConfig method
   *	@author Nikesh Anand R
   */
  
  public class DoServletConfigTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("DoServletConfigTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			// connecting to the Servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/DoServletInfoTest.java
  
  Index: DoServletInfoTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/DoServletInfoTest.java,v 1.1 1999/11/08 23:47:04 vanitha Exp $
   * $Date: 1999/11/08 23:47:04 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.Servlet;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getServletInfo method
   *	@author Nikesh Anand
   */
  
  public class DoServletInfoTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("DoServletInfoTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/LifeCycle_SupportTest.java
  
  Index: LifeCycle_SupportTest.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/LifeCycle_SupportTest.java,v 1.1 1999/11/08 23:47:06 vanitha Exp $
   * $Date: 1999/11/08 23:47:06 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.Servlet;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	LifeCycle Test
   */
  
  public class LifeCycle_SupportTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("PUTest.description");
  	}
  
  	public TestResult runTest() {
  
  
  		TestResult testResult = null;
  
  		try {
  		HttpURLConnection connection=null;
  		try {
  
  			connection = getConnection();
  
  			int responseCode=connection.getResponseCode();
  
  			System.out.println(responseCode);
  
  			testResult = getTestResult(connection);
  
  			if(responseCode>=500) {
  
  				testResult.setStatus(true);
  			}
  
  
  		}catch(Exception e) {
  
  			if(connection.getResponseCode()<500)
  				testResult = getTestResult(testResult,e);
  			else 
  
  				testResult.setStatus(true);
  		}
  		}catch(Exception e) {}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/PermanentUnavailabilityTest.java
  
  Index: PermanentUnavailabilityTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/Servlet/PermanentUnavailabilityTest.java,v 1.1 1999/11/08 23:47:12 vanitha Exp $
   * $Date: 1999/11/08 23:47:12 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.Servlet;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.FileNotFoundException;
  
  /**
   *	LifeCycle Test
   */
  
  public class PermanentUnavailabilityTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("PUTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = new TestResult();
  		int responseCode=0;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  
  			responseCode=connection.getResponseCode();
  
  			//TestResult anotherTestResult=runAnotherTest("org.apache.jcheck.servlet.client.javax_servlet.Servlet.LifeCycle_SupportTest");
  
  			//System.out.println(anotherTestResult.getStatus());
  			if(responseCode>=500) 
  				testResult.setStatus(true);;
  
  		}catch(FileNotFoundException fne) {
  
  			testResult.setStatus(true);
  			testResult.setMessage("OK");
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  
  
  	// Actually we don't need this
  
  	public TestResult getTestResult(HttpURLConnection connection) throws Exception{
  
  
  		TestResult testResult=new TestResult();
  
  
  		if(connection.getResponseCode()>=500) {
  
  			testResult.setStatus(true);
  			testResult.setMessage("OK");
  			
  		}
  
  		return testResult;
  	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletConfig/GetInitParameterNamesTest.java
  
  Index: GetInitParameterNamesTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletConfig/GetInitParameterNamesTest.java,v 1.1 1999/11/08 23:47:17 vanitha Exp $
   * $Date: 1999/11/08 23:47:17 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletConfig;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletConfig.getInitParameterNames method
   */
  
  public class GetInitParameterNamesTest extends ClientTest {
  
  /**
   *	getInitParameterNames returns the initialization parameterNames
   *	specified in the servlet.properties file.
   *
   */
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetInitParameterNamesTest.description");
  
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletConfig/GetInitParameterNames_1Test.java
  
  Index: GetInitParameterNames_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletConfig/GetInitParameterNames_1Test.java,v 1.1 1999/11/08 23:47:18 vanitha Exp $
   * $Date: 1999/11/08 23:47:18 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletConfig;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for ServletConfig.getInitParameter(String) method
   */
  
  public class GetInitParameterNames_1Test extends ClientTest {
  
  /**
   *	getInitParameter returns the initialization parameter
   *	specified in the servlet.properties file.
   *
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetInitParameterNames_1Test.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			// servers job to check so just need to
  			// make a connection to the servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletConfig/GetInitParameterTest.java
  
  Index: GetInitParameterTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletConfig/GetInitParameterTest.java,v 1.1 1999/11/08 23:47:19 vanitha Exp $
   * $Date: 1999/11/08 23:47:19 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletConfig;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletConfig.getInitParameter(String) method
   */
  
  public class GetInitParameterTest extends ClientTest {
  
  /**
   *	getInitParameter returns the initialization parameter
   *	specified in the servlet.properties file.
   *
   */
  
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetInitParameterTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletConfig/GetInitParameter_1Test.java
  
  Index: GetInitParameter_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletConfig/GetInitParameter_1Test.java,v 1.1 1999/11/08 23:47:20 vanitha Exp $
   * $Date: 1999/11/08 23:47:20 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletConfig;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for ServletConfig.getInitParameter(String) method
   */
  
  public class GetInitParameter_1Test extends ClientTest {
  
  /**
   *	getInitParameter returns the initialization parameter
   *	specified in the servlet.properties file.
   *
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetInitParameter_1Test.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			//just connect
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletConfig/GetServletContextTest.java
  
  Index: GetServletContextTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletConfig/GetServletContextTest.java,v 1.1 1999/11/08 23:47:20 vanitha Exp $
   * $Date: 1999/11/08 23:47:20 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletConfig;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletConfig.getServletContext(String) method
   */
  
  public class GetServletContextTest extends ClientTest {
  
  /** getServletContext(String uri) returns the ServletContext object
   *  for the servlet in the specified URI path
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetServletContextTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		// only connection is made here
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletConfig/GetServletNameTest.java
  
  Index: GetServletNameTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletConfig/GetServletNameTest.java,v 1.1 1999/11/08 23:47:21 vanitha Exp $ * $Date: 1999/11/08 23:47:21 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletConfig;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletConfig.getServletName method
   */
  
  public class GetServletNameTest extends ClientTest {
  
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SCGetServletNameTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetAttributeNamesTest.java
  
  Index: GetAttributeNamesTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetAttributeNamesTest.java,v 1.1 1999/11/08 23:47:23 vanitha Exp $
   * $Date: 1999/11/08 23:47:23 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for  GetAttributeNames method
   */
  
  public class GetAttributeNamesTest extends ClientTest {
  
  /** getAttributeNames returns an enumeration of attribute
   *  names that were set
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SCGetAttributeNamesTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		//need not do anything special here
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetAttributeTest.java
  
  Index: GetAttributeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetAttributeTest.java,v 1.1 1999/11/08 23:47:24 vanitha Exp $
   * $Date: 1999/11/08 23:47:24 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for  GetAttribute(String) method
   */
  
  public class GetAttributeTest extends ClientTest {
  
  /**
   * getAttribute returns the attribute value associated with the
   * attribute name set
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SCGetAttributeTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		// server side worry
  		// connect and keep quiet.
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetAttribute_1Test.java
  
  Index: GetAttribute_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetAttribute_1Test.java,v 1.1 1999/11/08 23:47:25 vanitha Exp $
   * $Date: 1999/11/08 23:47:25 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for  GetAttribute(String) method
   */
  
  public class GetAttribute_1Test extends ClientTest {
  
  /*
   *	getAttribute(String attr) returns the attribute value
   * 	associated with the attr name
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SCGetAttribute_1Test.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		//only connection to servlet done here
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetContextTest.java
  
  Index: GetContextTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetContextTest.java,v 1.1 1999/11/08 23:47:26 vanitha Exp $
   * $Date: 1999/11/08 23:47:26 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**	Test for  getContext(String) method
   */
  
  
  public class GetContextTest extends ClientTest {
  
  /** getContext(String uri) gives the context object associated with
   * the servclet in the uri path
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetContextTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetContext_1Test.java
  
  Index: GetContext_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetContext_1Test.java,v 1.1 1999/11/08 23:47:28 vanitha Exp $
   * $Date: 1999/11/08 23:47:28 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**	Negative Test for  getContext(String) method
   */
  
  public class GetContext_1Test extends ClientTest {
  
  /** getContext(String uri) gives the context object associated with
   * the servclet in the uri path
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetContext_1Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		// getting connection to the servlet.
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetInitParameterNamesTest.java
  
  Index: GetInitParameterNamesTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetInitParameterNamesTest.java,v 1.1 1999/11/08 23:47:29 vanitha Exp $
   * $Date: 1999/11/08 23:47:29 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for GetInitParameterNames()
   */
  
  
  public class GetInitParameterNamesTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SCONGetInitParameterNamesTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//just connect to the servlet
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetInitParameterTest.java
  
  Index: GetInitParameterTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetInitParameterTest.java,v 1.1 1999/11/08 23:47:30 vanitha Exp $
   * $Date: 1999/11/08 23:47:30 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for GetInitParameter(String)
   */
  
  
  public class GetInitParameterTest extends ClientTest {
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SCONGetInitParameterTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//just connectto the servlet
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetInitParameter_1Test.java
  
  Index: GetInitParameter_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetInitParameter_1Test.java,v 1.1 1999/11/08 23:47:32 vanitha Exp $
   * $Date: 1999/11/08 23:47:32 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for GetInitParameter(String)
   */
  
  
  public class GetInitParameter_1Test extends ClientTest {
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SCONGetInitParameter_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//just connect to the servlet
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetMajorVersionTest.java
  
  Index: GetMajorVersionTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetMajorVersionTest.java,v 1.1 1999/11/08 23:47:33 vanitha Exp $
   * $Date: 1999/11/08 23:47:33 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getMajorVersion method
   */
  
  public class GetMajorVersionTest extends ClientTest {
  
  /** getMajorVersion returns the majorVersion of the Srvlet API **/
  
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetMajorVersionTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		// connect to the servlet
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetMimeTypeTest.java
  
  Index: GetMimeTypeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetMimeTypeTest.java,v 1.1 1999/11/08 23:47:34 vanitha Exp $
   * $Date: 1999/11/08 23:47:34 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**	 Test for  getMimeType(String)  method
   */
  
  
  public class GetMimeTypeTest extends ClientTest {
  
  	/**
  	 *	getMimeType returns the mime type of the file for
  	 * 	the specified uri
  	 */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetMimeTypeTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetMimeType_1Test.java
  
  Index: GetMimeType_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetMimeType_1Test.java,v 1.1 1999/11/08 23:47:35 vanitha Exp $
   * $Date: 1999/11/08 23:47:35 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**	Negative Test for  getMimeType(String) method
   */
  
  
  public class GetMimeType_1Test extends ClientTest {
  
  /** getMimeType gets the mime type of the specified  file **/
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetMimeType_1Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			// get the connection ojbect
  
  			HttpURLConnection connection = getConnection();
  
  			//passed
  
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  
  			//failed
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetMinorVersionTest.java
  
  Index: GetMinorVersionTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetMinorVersionTest.java,v 1.1 1999/11/08 23:47:36 vanitha Exp $
   * $Date: 1999/11/08 23:47:36 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**	Test for getMinorVersion
   */
  
  public class GetMinorVersionTest extends ClientTest {
  
  	/** getMinorVersion method returns the minor version
  	 * of the Servlet API
  	 */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetMinorVersionTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetNamedDispatcherTest.java
  
  Index: GetNamedDispatcherTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetNamedDispatcherTest.java,v 1.1 1999/11/08 23:47:37 vanitha Exp $
   * $Date: 1999/11/08 23:47:37 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getNamedDispatcher(String)
   */
  
  public class GetNamedDispatcherTest extends ClientTest {
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetNamedDispatcherTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetNamedDispatcher_1Test.java
  
  Index: GetNamedDispatcher_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetNamedDispatcher_1Test.java,v 1.1 1999/11/08 23:47:38 vanitha Exp $
   * $Date: 1999/11/08 23:47:38 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for getNamedDispatcher(String)
   */
  
  public class GetNamedDispatcher_1Test extends ClientTest {
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetNamedDispatcher_1Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetRealPathTest.java
  
  Index: GetRealPathTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetRealPathTest.java,v 1.1 1999/11/08 23:47:39 vanitha Exp $
   * $Date: 1999/11/08 23:47:39 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getRealPath(String)
   */
  
  public class GetRealPathTest extends ClientTest {
  
  
  /** getRealPath(String path) gets the realpath in the
   * format /dir/.. that is appropriate for the machine
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SCGetRealPathTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetRealPath_1Test.java
  
  Index: GetRealPath_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetRealPath_1Test.java,v 1.1 1999/11/08 23:47:40 vanitha Exp $
   * $Date: 1999/11/08 23:47:40 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for getRealPath(String)
   *	@author Nikesh Anand R
   */
  
  public class GetRealPath_1Test extends ClientTest {
  
  	/** getRealPath(String path) gets the realpath in the
  	 * format /dir/.. that is appropriate for the machine
  	 */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetRealPath_1Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		try {
  
  			/** Trying to connect to the servlet **/
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetRequestDispatcherTest.java
  
  Index: GetRequestDispatcherTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetRequestDispatcherTest.java,v 1.1 1999/11/08 23:47:40 vanitha Exp $
   * $Date: 1999/11/08 23:47:40 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   * Test for getRequestDispatcher(String)
   */
  
  public class GetRequestDispatcherTest extends ClientTest {
  
  /** getRequestDispatcher(String path) gets a RequestDispatcher
   *  object provideed the supplied path is an absolute path
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetRequestDispatcherTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetRequestDispatcher_1Test.java
  
  Index: GetRequestDispatcher_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetRequestDispatcher_1Test.java,v 1.1 1999/11/08 23:47:41 vanitha Exp $
   * $Date: 1999/11/08 23:47:41 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for getRequestDispatcher(String)
   */
  
  public class GetRequestDispatcher_1Test extends ClientTest {
  
  /** getRequestDispatcher(String path) gets a RequestDispatcher
   *  object provideed the supplied path is an absolute path
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetRequestDispatcher_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			// connect to the servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetResourceAsStreamTest.java
  
  Index: GetResourceAsStreamTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetResourceAsStreamTest.java,v 1.1 1999/11/08 23:47:42 vanitha Exp $
   * $Date: 1999/11/08 23:47:42 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for GetResourceAsStream(String)
   */
  
  public class GetResourceAsStreamTest extends ClientTest {
  
  /** getResourceAsStream(String path) returns an InputStream object
   *   that refers to the content known too the ServletContext
   *  If there are no resources in the given path known to the
   *  servlet null is returned
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetResourceAsStreamTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		//connect to the servlet
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetResourceAsStream_1Test.java
  
  Index: GetResourceAsStream_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetResourceAsStream_1Test.java,v 1.1 1999/11/08 23:47:44 vanitha Exp $
   * $Date: 1999/11/08 23:47:44 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   * Negative Test for GetResourceAsStream(String)
   */
  
  public class GetResourceAsStream_1Test extends ClientTest {
  
  /** getResourceAsStream(String path) returns an InputStream object
   *   that refers to the content known too the ServletContext
   *  If there are no resources in the given path known to the
   *  servlet null is returned
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetResourceAsStream_1Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetResourceTest.java
  
  Index: GetResourceTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetResourceTest.java,v 1.1 1999/11/08 23:47:49 vanitha Exp $
   * $Date: 1999/11/08 23:47:49 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getResource(String)
   */
  
  public class GetResourceTest extends ClientTest {
  
  /** getResource returns an URL object to the
   * specified resource located at the given path known to
   * the ServletContext
   */
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetResourceTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			// connect to the Servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetResource_1Test.java
  
  Index: GetResource_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetResource_1Test.java,v 1.1 1999/11/08 23:47:50 vanitha Exp $
   * $Date: 1999/11/08 23:47:50 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   * 	Negative Test for GetResource(String)
   */
  
  public class GetResource_1Test extends ClientTest {
  
  /** getResource(String path) retrieves the URL object for
   *  the specified path.
   *  If there are no resources in the given path known to the
   *  servlet null is returned
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetResource_1Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		// connect to the servlet
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetServerInfoTest.java
  
  Index: GetServerInfoTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetServerInfoTest.java,v 1.1 1999/11/08 23:47:51 vanitha Exp $
   * $Date: 1999/11/08 23:47:51 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getServletInfo method
   */
  
  public class GetServerInfoTest extends ClientTest {
  
  /** getServerInfo() returns somne information about
   * the server.
   */
  
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetServerInfoTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetServletNamesTest.java
  
  Index: GetServletNamesTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetServletNamesTest.java,v 1.1 1999/11/08 23:47:52 vanitha Exp $
   * $Date: 1999/11/08 23:47:52 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for  getServletNames method
   */
  
  public class GetServletNamesTest extends ClientTest {
  
  /**	Deprecated Method:
  
   * Actually returned an Enumeration of ServletNames known to
   * the ServletContext
   */
  
   // This implementation should return null
  
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetServletNamesTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetServletTest.java
  
  Index: GetServletTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetServletTest.java,v 1.1 1999/11/08 23:47:53 vanitha Exp $
   * $Date: 1999/11/08 23:47:53 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getServlet method
   */
  
  public class GetServletTest extends ClientTest {
  
  /** Deprecated
  
   * Originally returned the  Servlet object associated with the path
   * this implementation should return null
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetServletTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetServletsTest.java
  
  Index: GetServletsTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/GetServletsTest.java,v 1.1 1999/11/08 23:47:53 vanitha Exp $
   * $Date: 1999/11/08 23:47:53 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for  getServlet(String) method
   */
  
  public class GetServletsTest extends ClientTest {
  
  /** Deprecated
  
   * Originally returned an Enumeration of Servlets known to
   * the ServletContext
   * this implementation should return null
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetServletsTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/Log_1Test.java
  
  Index: Log_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/Log_1Test.java,v 1.1 1999/11/08 23:47:54 vanitha Exp $
   * $Date: 1999/11/08 23:47:54 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for log(String)
   */
  
  /**
   * 	We are just passing the test. To verify
   * 	please have a look at the specific log file
   */
  
  public class Log_1Test extends ClientTest {
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Log_1Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/Log_2Test.java
  
  Index: Log_2Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/Log_2Test.java,v 1.1 1999/11/08 23:47:54 vanitha Exp $
   * $Date: 1999/11/08 23:47:54 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for log(String,Throwable)
   */
  
  /**
   * 	We are just passing the test. To verify
   * 	please have a look at the specific log file
   */
  
  public class Log_2Test extends ClientTest {
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Log_2Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/Log_3Test.java
  
  Index: Log_3Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/Log_3Test.java,v 1.1 1999/11/08 23:47:55 vanitha Exp $
   * $Date: 1999/11/08 23:47:55 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for log(Exception,String)
   */
  
  /**
   * 	We are just passing the test. To verify
   * 	please have a look at the specific log file
   */
  
  public class Log_3Test extends ClientTest {
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Log_3Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/RemoveAttributeTest.java
  
  Index: RemoveAttributeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/RemoveAttributeTest.java,v 1.1 1999/11/08 23:47:56 vanitha Exp $
   * $Date: 1999/11/08 23:47:56 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   * 	Test For RemoveAttribute(String)
   */
  
  public class RemoveAttributeTest extends ClientTest {
  
  /**
   *	 removeAttribute(String attrname) disassociates a value from its
   *	 attributes by removing the attribute name itself
   */
  
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SCRemoveAttributeTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		//connect to the servlet
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/SetAttributeTest.java
  
  Index: SetAttributeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletContext/SetAttributeTest.java,v 1.1 1999/11/08 23:47:56 vanitha Exp $
   * $Date: 1999/11/08 23:47:56 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletContext;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for setAttribute(String name,Object obj);
   */
  
  public class SetAttributeTest extends ClientTest {
  
  /**
   *	setAttribute(String attrName,Object value) associates "value"
   *	with the attribute name "attrName"
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SCSetAttributeTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		//connect to the servlet
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletException/Constructor1Test.java
  
  Index: Constructor1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletException/Constructor1Test.java,v 1.1 1999/11/08 23:48:19 vanitha Exp $
   * $Date: 1999/11/08 23:48:19 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *  	Test for ServletException()
   */
  
  public class Constructor1Test extends ClientTest {
  
  	/*
  	 * ServletException constructs a new ServletException object.
  	 * Testing the ServletException constructor with no arguments
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Constructor1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			// just connect, its all Servlet's job
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletException/Constructor2Test.java
  
  Index: Constructor2Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletException/Constructor2Test.java,v 1.1 1999/11/08 23:48:21 vanitha Exp $
   * $Date: 1999/11/08 23:48:21 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   * 	Test for ServletException(java.lang.String)
   */
  
  public class Constructor2Test extends ClientTest {
  
  	/**
  	 *	ServletException(Java.lang.String) constructs a new
  	 * 	ServletException object with the specified message
  	 *
  	 */
  
  	public String getDescription() {
  
  		// Description about the test
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Constructor2Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//just connecting to the Servlet
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletException/Constructor3Test.java
  
  Index: Constructor3Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletException/Constructor3Test.java,v 1.1 1999/11/08 23:48:22 vanitha Exp $
   * $Date: 1999/11/08 23:48:22 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   * 	Test for ServletException(java.lang.String,Throwable)
   */
  
  public class Constructor3Test extends ClientTest {
  
  
  	/**
  	 *	ServletException(Java.lang.String mesg,Throwable cause) constructs a new
  	 * 	ServletException object with the specified message and
  	 *	a throwable object
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Constructor3Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletException/Constructor4Test.java
  
  Index: Constructor4Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletException/Constructor4Test.java,v 1.1 1999/11/08 23:48:25 vanitha Exp $
   * $Date: 1999/11/08 23:48:25 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   * 	Test for ServletException(Throwable)
   */
  
  
  public class Constructor4Test extends ClientTest {
  
  	/**
  	 *	Constructs a ServletException Object with
  	 * 	a Throwable object
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Constructor4Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			// connect to the servlet, it will do the rest
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletException/GetRootCauseTest.java
  
  Index: GetRootCauseTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletException/GetRootCauseTest.java,v 1.1 1999/11/08 23:48:31 vanitha Exp $
   * $Date: 1999/11/08 23:48:31 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletException.GetRootCause()
   */
  
  public class GetRootCauseTest extends ClientTest {
  
  	/**
  	 *	GetRootCause method gets the root cause in the form
  	 * 	of a throwable object when invoked against any
  	 * 	ServletException object constructed with a throwable
  	 *	object
  	 */
  
  
  	// Description about the test
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetRootCauseTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletException/GetRootCause_1Test.java
  
  Index: GetRootCause_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletException/GetRootCause_1Test.java,v 1.1 1999/11/08 23:48:33 vanitha Exp $
   * $Date: 1999/11/08 23:48:33 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test For getRootCause() method
   */
  
  public class GetRootCause_1Test extends ClientTest {
  
  	/**
  	 *	GetRootCause method gets the root cause in the form
  	 * 	of a throwable object when invoked against any
  	 * 	ServletException object constructed with a throwable
  	 *	object
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetRootCause_1Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		// servlet does actual testing
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletInputStream/ReadLineTest.java
  
  Index: ReadLineTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletInputStream/ReadLineTest.java,v 1.1 1999/11/08 23:48:36 vanitha Exp $
   * $Date: 1999/11/08 23:48:36 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletInputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.OutputStreamWriter;
  import java.io.DataOutputStream;
  import java.io.BufferedWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test For readLine(byte,int,int) method
   */
  
  public class ReadLineTest extends ClientTest {
  
  	/**	readLine(byte buffer,int off,int len) method reads
  	 *	into the buffer the given part specified by offset
  	 * 	and len till a new line char is encountered
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("ReadLineTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  
  			Hashtable headers = new Hashtable();
  
  			byte b[] = new byte[64];
  
  			String st = new String("ULTRA SPARC");
  
  			b = st.getBytes();
  
  			headers.put("Content-Length",String.valueOf(st.length()));
  			headers.put("Content-Type","text/plain");
  
  			HttpURLConnection connection = getConnection(headers,null,null,"POST");
  
  			BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(connection.getOutputStream()));
  			// Writing into the stream
  
  			bw.write(st,0,st.length());
  			bw.flush();
  			bw.close();
  
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print1Test.java
  
  Index: Print1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print1Test.java,v 1.1 1999/11/08 23:48:37 vanitha Exp $
   * $Date: 1999/11/08 23:48:37 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletOutputStream.print(String) 
   *	@author Nikesh Anand
   */
  
  
  public class Print1Test extends ClientTest {
  
  /** 	print(java.lang.String);	*/
  
  	public String getDescription() {
  	
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Print1Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  
  		try {
  		
  			boolean pass=false;
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = new TestResult();
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line=null;
  
  			while((line=br.readLine())!=null) {
  
  				if(line.trim().equals("HiThere")) {
  
  					pass=true;
  					break;
  				}
  			}
  
  			if(pass) {
  
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with print(java.lang.String)");
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print2Test.java
  
  Index: Print2Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print2Test.java,v 1.1 1999/11/08 23:48:38 vanitha Exp $
   * $Date: 1999/11/08 23:48:38 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletOutputStream.print(boolean) 
   *	@author Nikesh Anand
   */
  
  
  public class Print2Test extends ClientTest {
  
  /* print(boolean) */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Print2Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			boolean pass=false;
  
  			HttpURLConnection connection = getConnection();
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line = null;
  
  			while((line=br.readLine())!=null) {
  
  
  				if(line.trim().equals("truetrue")) {
  
  					pass=true;
  					break;
  				}
  			}
  
  			br.close();
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with prin(boolean)");
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print3Test.java
  
  Index: Print3Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print3Test.java,v 1.1 1999/11/08 23:48:38 vanitha Exp $
   * $Date: 1999/11/08 23:48:38 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  
  /**
   *	Test for ServletOutputStream.print(char) 
   *	@author Nikesh Anand
   */
  
  
  public class Print3Test extends ClientTest {
  
  /* print(char)*/
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Print3Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			boolean pass=false;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line = null;
  
  			while((line=br.readLine())!=null) {
  
  				if(line.trim().equals("VW")) {
  
  					pass=true;
  					break;
  				}
  			}
  
  			br.close();
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with prin(char)");
  			}
  
  
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print4Test.java
  
  Index: Print4Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print4Test.java,v 1.1 1999/11/08 23:48:40 vanitha Exp $
   * $Date: 1999/11/08 23:48:40 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletOutputStream.print(int) 
   *	@author Nikesh Anand
   */
  
  public class Print4Test extends ClientTest {
  
  /* print(int) */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Print4Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			boolean pass=false;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line = null;
  
  			while((line=br.readLine())!=null) {
  
  
  				if(line.trim().equals("12")) {
  
  					pass=true;
  					break;
  				}
  			}
  
  			br.close();
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with prin(int)");
  			}
  			
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print5Test.java
  
  Index: Print5Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print5Test.java,v 1.1 1999/11/08 23:48:40 vanitha Exp $
   * $Date: 1999/11/08 23:48:40 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletOutputStream.print(long) 
   *	@author Nikesh Anand
   */
  
  public class Print5Test extends ClientTest {
  
  //print(long)
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Print5Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  
  			boolean pass=false;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line = null;
  
  			while((line=br.readLine())!=null) {
  
  				if(line.trim().equals("12345678901234567890")) {
  
  					pass=true;
  					break;
  				}
  			}
  
  			br.close();
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with prin(long)");
  			}
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print6Test.java
  
  Index: Print6Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print6Test.java,v 1.1 1999/11/08 23:48:41 vanitha Exp $
   * $Date: 1999/11/08 23:48:41 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.InputStream;
  
  
  /**
   *	Test for ServletOutputStream.print(float) 
   *	@author Nikesh Anand
   */
  
  public class Print6Test extends ClientTest {
  
  
  /*print(float);*/
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Print6Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			boolean pass=false;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line = null;
  
  			while((line=br.readLine())!=null) {
  
  				if(line.trim().equals("1234.56789.1")) {
  
  					pass=true;
  					break;
  				}
  			}
  
  			br.close();
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with prin(float)");
  			}
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print7Test.java
  
  Index: Print7Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Print7Test.java,v 1.1 1999/11/08 23:48:42 vanitha Exp $
   * $Date: 1999/11/08 23:48:42 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletOutputStream.print(double) 
   *	@author Nikesh Anand
   */
  
  /* print(double) */
  
  public class Print7Test extends ClientTest {
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Print7Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  
  
  			boolean pass=false;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line = null;
  
  			while((line=br.readLine())!=null) {
  
  				if(line.trim().equals("12345.66789.1")) {
  
  					pass=true;
  					break;
  				}
  			}
  
  			br.close();
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with prin(boolean)");
  			}
  
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println1Test.java
  
  Index: Println1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println1Test.java,v 1.1 1999/11/08 23:48:42 vanitha Exp $
   * $Date: 1999/11/08 23:48:42 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletOutputStream.println() 
   *	@author Nikesh Anand
   */
  
  /* println() */
  
  public class Println1Test extends ClientTest {
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Println1Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			boolean pass=false;
  
  			int val=0;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			while(val!=-1) {
  
  				val=(int)br.read();
  
  				if(val==10) {
  
  					pass=true;
  					break;
  				}
  			}
  			br.close();
  
  			testResult = new TestResult();
  			if(pass) {
  
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with println()");
  			}
  
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println2Test.java
  
  Index: Println2Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println2Test.java,v 1.1 1999/11/08 23:48:43 vanitha Exp $
   * $Date: 1999/11/08 23:48:43 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.StringTokenizer;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletOutputStream.println(String) 
   *	@author Nikesh Anand
   */
  
  public class Println2Test extends ClientTest {
  
  /* println(java.lang.String) */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Println2Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			boolean pass=false;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line = null;
  
  			while((line=br.readLine())!=null) {
  
  				if(line.trim().equals("To the Moon and Back")) {
  					pass=true;
  					break;
  				}
  			}
  
  			br.close();
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with print(String)");
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println3Test.java
  
  Index: Println3Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println3Test.java,v 1.1 1999/11/08 23:48:43 vanitha Exp $
   * $Date: 1999/11/08 23:48:43 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletOutputStream.print(boolean) 
   *	@author Nikesh Anand
   */
  
  public class Println3Test extends ClientTest {
  
  /* println(boolean) */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Println3Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			boolean pass=false;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line = null;
  
  			while((line=br.readLine())!=null) {
  
  
  				if(line.trim().equals("true")) {
  					pass=true;
  					break;
  				}
  			}
  
  			br.close();
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with print(boolean)");
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println4Test.java
  
  Index: Println4Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println4Test.java,v 1.1 1999/11/08 23:48:44 vanitha Exp $
   * $Date: 1999/11/08 23:48:44 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletOutputStream.print(char) 
   *	@author Nikesh Anand
   */
  
  public class Println4Test extends ClientTest {
  
  /* println(char) */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Println4Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			boolean pass=false;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line = null;
  
  			while((line=br.readLine())!=null) {
  
  				if(line.trim().equals("V")) {
  					pass=true;
  					break;
  				}
  			}
  
  			br.close();
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with print(char)");
  			}
  
  		return testResult; 
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println5Test.java
  
  Index: Println5Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println5Test.java,v 1.1 1999/11/08 23:48:45 vanitha Exp $
   * $Date: 1999/11/08 23:48:45 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletOutputStream.print(int) 
   *	@author Nikesh Anand
   */
  
  public class Println5Test extends ClientTest {
  
  /* println(int) */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Println5Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			boolean pass=false;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line = null;
  
  			while((line=br.readLine())!=null) {
  
  				if(line.trim().equals("1")) {
  					pass=true;
  					break;
  				}
  			}
  
  			br.close();
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with print(int)");
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println6Test.java
  
  Index: Println6Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println6Test.java,v 1.1 1999/11/08 23:48:45 vanitha Exp $
   * $Date: 1999/11/08 23:48:45 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletOutputStream.print(long) 
   *	@author Nikesh Anand
   */
  
  public class Println6Test extends ClientTest {
  
  /* println(long) */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Println6Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			boolean pass=false;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line = null;
  
  			while((line=br.readLine())!=null) {
  
  				if(line.trim().equals("1234567890")) {
  					pass=true;
  					break;
  				}
  			}
  
  			br.close();
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with print(long)");
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
  
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println7Test.java
  
  Index: Println7Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println7Test.java,v 1.1 1999/11/08 23:48:46 vanitha Exp $
   * $Date: 1999/11/08 23:48:46 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletOutputStream.print(float) 
   *	@author Nikesh Anand
   */
  
  public class Println7Test extends ClientTest {
  
  /* println(float) */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Println7Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			boolean pass=false;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line = null;
  
  			while((line=br.readLine())!=null) {
  
  				if(line.trim().equals("12345.6")) {
  					pass=true;
  					break;
  				}
  			}
  
  			br.close();
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with print(float)");
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
  
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println8Test.java
  
  Index: Println8Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletOutputStream/Println8Test.java,v 1.1 1999/11/08 23:48:46 vanitha Exp $
   * $Date: 1999/11/08 23:48:46 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletOutputStream;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for ServletOutputStream.print(double) 
   *	@author Nikesh Anand
   */
  
  public class Println8Test extends ClientTest {
  
  /* println(double) */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("Println8Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  
  			boolean pass=false;
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line = null;
  
  			while((line=br.readLine())!=null) {
  
  
  				if(line.trim().equals("1234567.8")) {
  
  					pass=true;
  					break;
  				}
  			}
  
  			br.close();
  
  			testResult = new TestResult();
  
  			if(pass) {
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with print(double)");
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult; 
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/Encoder.java
  
  Index: Encoder.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/Encoder.java,v 1.1 1999/11/08 23:48:49 vanitha Exp $
   * $Date: 1999/11/08 23:48:49 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  
  import java.net.URLEncoder;
  import java.util.Properties;
  import java.util.Enumeration;
  
  public class Encoder {
  
  	String encode(Properties args) {
  
  		StringBuffer sb = new StringBuffer();
  
  		if(args != null) {
  
  			String sep = ".";
  			Enumeration names = args.propertyNames();
  	    		while(names.hasMoreElements()) {
  
  			    String name = (String)names.nextElement();
  			    sb.append(sep + URLEncoder.encode(name) +
  	     			"=" + URLEncoder.encode(args.getProperty(name)));
  			     sep = "&";
  			}
  		}
  	 	return sb.toString();
  	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetAttributeNamesTest.java
  
  Index: GetAttributeNamesTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetAttributeNamesTest.java,v 1.1 1999/11/08 23:48:50 vanitha Exp $
   * $Date: 1999/11/08 23:48:50 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	A Test for getAttributeNames method
   */
  
  public class GetAttributeNamesTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  
  		return sm.getString("GetAttributeNamesTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		// do nothing other than connecting to the servlet
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetAttributeTest.java
  
  Index: GetAttributeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetAttributeTest.java,v 1.1 1999/11/08 23:48:51 vanitha Exp $
   * $Date: 1999/11/08 23:48:51 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	A Test For getAttribute(String) method
   */
  
  public class GetAttributeTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  
  		return sm.getString("GetAttributeTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		// just need to connect to the servlet
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetCharacterEncodingTest.java
  
  Index: GetCharacterEncodingTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetCharacterEncodingTest.java,v 1.1 1999/11/08 23:48:52 vanitha Exp $
   * $Date: 1999/11/08 23:48:52 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	A Test For getCharacterEncoding() method
   */
  
  public class GetCharacterEncodingTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  
  		return sm.getString("GetCharacterEncodingTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//for headers
  			Hashtable headers = new Hashtable();
  
  			//set charset to ISO-8859-1
  
  			headers.put("Content-Type","text/plain; charset=ISO-8859-1");
  			HttpURLConnection connection = getConnection(headers);
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetCharacterEncoding_1Test.java
  
  Index: GetCharacterEncoding_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetCharacterEncoding_1Test.java,v 1.1 1999/11/08 23:48:53 vanitha Exp $
   * $Date: 1999/11/08 23:48:53 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	A Negative Test For getCharacterEncoding() method
   */
  
  
  public class GetCharacterEncoding_1Test extends GenericClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  
  		return sm.getString("GetCharacterEncoding_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			// we don't set any content type and char encoding here
  			// just connect and see what happens
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetContentLengthTest.java
  
  Index: GetContentLengthTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetContentLengthTest.java,v 1.1 1999/11/08 23:48:53 vanitha Exp $
   * $Date: 1999/11/08 23:48:53 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	A Negative Test For getCharacterEncoding() method
   */
  
  public class GetContentLengthTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetContentLengthTest.description");
  
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//for headers
  			Hashtable headers = new Hashtable();
  
  			// setting content length
  			headers.put("Content-Length","20");
  
  			// setting content Type
  			headers.put("Content-Type","text/plain");
  
  			HttpURLConnection connection = getConnection(headers);
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetContentLength_1Test.java
  
  Index: GetContentLength_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetContentLength_1Test.java,v 1.1 1999/11/08 23:48:54 vanitha Exp $
   * $Date: 1999/11/08 23:48:54 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	A Negative Test For getContentLength() method
   */
  
  
  public class GetContentLength_1Test extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetContentLength_1Test.description");
  
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// writing nothing
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetContentTypeTest.java
  
  Index: GetContentTypeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetContentTypeTest.java,v 1.1 1999/11/08 23:48:54 vanitha Exp $
   * $Date: 1999/11/08 23:48:54 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	A  Test for getContentType method
   */
  
  public class GetContentTypeTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetContentTypeTest.description");
  
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			Hashtable headers = new Hashtable();
  
  			// setting content type to text/plain
  
  			headers.put("Content-Type","text/plain");
  
  			HttpURLConnection connection = getConnection(headers);
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetContentType_1Test.java
  
  Index: GetContentType_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetContentType_1Test.java,v 1.1 1999/11/08 23:48:56 vanitha Exp $
   * $Date: 1999/11/08 23:48:56 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	A Negative Test for getContentType method
   */
  
  public class GetContentType_1Test extends GenericClientTest {
  
  /**
   *	When no data is sent ,i,e if the content length is 0 
   *	the server cannot find the exact content-type
   */
  
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetContentType_1Test.description");
  
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			// for headers
  
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetInputStreamTest.java
  
  Index: GetInputStreamTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetInputStreamTest.java,v 1.1 1999/11/08 23:48:56 vanitha Exp $
   * $Date: 1999/11/08 23:48:56 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	A  Test for getInputStream method
   */
  
  
  public class GetInputStreamTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetInputStreamTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetInputStream_1Test.java
  
  Index: GetInputStream_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetInputStream_1Test.java,v 1.1 1999/11/08 23:48:57 vanitha Exp $
   * $Date: 1999/11/08 23:48:57 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	A Negative Test for getInputStream method
   */
  
  
  public class GetInputStream_1Test extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetInputStream_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			//servlets work so just wait and watch
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetLocaleTest.java
  
  Index: GetLocaleTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetLocaleTest.java,v 1.1 1999/11/08 23:48:58 vanitha Exp $
   * $Date: 1999/11/08 23:48:58 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.util.Hashtable;
  
  
  /**
   *	Test For getLocale method
   */
  
  public class GetLocaleTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetLocaleTest.description");
  
  	}
  
  	public void setStream(java.io.OutputStream os) {}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		Hashtable headers= new Hashtable();
  
  		try {
  
  			//make a connection to the servlet
  
  			headers.put("Accept-Language","en-gb");
  			HttpURLConnection connection = getConnection(headers);
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetLocalesTest.java
  
  Index: GetLocalesTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetLocalesTest.java,v 1.1 1999/11/08 23:48:58 vanitha Exp $
   * $Date: 1999/11/08 23:48:58 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.util.Hashtable;
  
  
  /**
   *	Test For getLocales method
   */
  
  public class GetLocalesTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetLocalesTest.description");
  
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		Hashtable headers= new Hashtable();
  
  		try {
  
  
  			//Two Preffered Locales & Languages are
  
  			//english ,US
  			headers.put("Accept-Language","en-us,en-gb");
  
  			//english ,GreatBritan
  			//headers.put("Accept-Language","en-gb");
  
  			//make a connection to the servlet
  
  			HttpURLConnection connection = getConnection(headers);
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetLocales_1Test.java
  
  Index: GetLocales_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetLocales_1Test.java,v 1.1 1999/11/08 23:49:00 vanitha Exp $
   * $Date: 1999/11/08 23:49:00 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Negative Test For getLocales method
   */
  
  public class GetLocales_1Test extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetLocales_1Test.description");
  
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  
  			//we are not setting any header here
  
  			//make a connection to the servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetParameterNamesTest.java
  
  Index: GetParameterNamesTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetParameterNamesTest.java,v 1.1 1999/11/08 23:49:01 vanitha Exp $
   * $Date: 1999/11/08 23:49:01 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.util.Properties;
  import java.io.PrintWriter;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	A Test for getParameterNames method
   */
  
  public class GetParameterNamesTest extends GenericClientTest {
  
  
  	public String getDescription() {
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetParameterNamesTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			//Sending QueryString
  
  			String queryString="org=sun&loc=cal";
  
  			HttpURLConnection connection=getConnection(null,queryString,null,null);
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetParameterNames_1Test.java
  
  Index: GetParameterNames_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetParameterNames_1Test.java,v 1.1 1999/11/08 23:49:02 vanitha Exp $
   * $Date: 1999/11/08 23:49:02 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	A Negative Test for getParameterNames method
   */
  
  public class GetParameterNames_1Test extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetParameterNames_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//no parameter will be passed on to the server
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetParameterTest.java
  
  Index: GetParameterTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetParameterTest.java,v 1.1 1999/11/08 23:49:04 vanitha Exp $
   * $Date: 1999/11/08 23:49:04 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Properties;
  import java.net.HttpURLConnection;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	A  Test for getParameter(String) method
   */
  
  public class GetParameterTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetParameterTest.description");
  	}
  
  
  	public void setStream(java.io.OutputStream os){}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			String qs="org=sun&loc=cal";
  			HttpURLConnection connection = getConnection(null,qs,null,null);
  
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetParameterValuesTest.java
  
  Index: GetParameterValuesTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetParameterValuesTest.java,v 1.1 1999/11/08 23:49:05 vanitha Exp $
   * $Date: 1999/11/08 23:49:05 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.net.URLEncoder;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	A  Test for getParameterValues(String) method
   */
  
  public class GetParameterValuesTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetParameterValuesTest.description");
  	}
  
  	public void setStream(java.io.OutputStream os) {}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			String qs="org=sun&org=javasoft";
  			HttpURLConnection connection = getConnection(null,qs,null,null);
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetParameterValues_1Test.java
  
  Index: GetParameterValues_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetParameterValues_1Test.java,v 1.1 1999/11/08 23:49:10 vanitha Exp $
   * $Date: 1999/11/08 23:49:10 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	A  Negative Test for getParameterValues(String) method
   */
  
  public class GetParameterValues_1Test extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetParameterValues_1Test.description");
  	}
  
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// no parameter set
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetParameter_1Test.java
  
  Index: GetParameter_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetParameter_1Test.java,v 1.1 1999/11/08 23:49:12 vanitha Exp $
   * $Date: 1999/11/08 23:49:12 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	A Negative Test for getParameter(String) method
   */
  
  public class GetParameter_1Test extends GenericClientTest {
  
  	public String getDescription() {
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetParameter_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  
  		TestResult testResult = null;
  
  		try {
  			// we don't send any parameter
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetProtocolTest.java
  
  Index: GetProtocolTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetProtocolTest.java,v 1.1 1999/11/08 23:49:13 vanitha Exp $
   * $Date: 1999/11/08 23:49:13 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test For getProtocol method
   */
  
  public class GetProtocolTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetProtocolTest.description");
  	}
  
  	public void setStream(java.io.OutputStream os) {}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// just connect to the servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetReaderTest.java
  
  Index: GetReaderTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetReaderTest.java,v 1.1 1999/11/08 23:49:14 vanitha Exp $
   * $Date: 1999/11/08 23:49:14 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test For getReader method
   */
  
  public class GetReaderTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetReaderTest.description");
  
  	}
  
  	public void setStream(java.io.OutputStream os) {}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			//make a connection to the servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetReader_1Test.java
  
  Index: GetReader_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetReader_1Test.java,v 1.1 1999/11/08 23:49:16 vanitha Exp $
   * $Date: 1999/11/08 23:49:16 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test For getProtocol method
   */
  
  public class GetReader_1Test extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return "GetReader_1Test";
  	}
  
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetRealPathTest.java
  
  Index: GetRealPathTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetRealPathTest.java,v 1.1 1999/11/08 23:49:17 vanitha Exp $
   * $Date: 1999/11/08 23:49:17 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test For getRealPath method
   */
  
  public class GetRealPathTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  
  		return sm.getString("GetRealPathTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		try {
  			//servlet's work
  			// connect and wait
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetRemoteAddrTest.java
  
  Index: GetRemoteAddrTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetRemoteAddrTest.java,v 1.1 1999/11/08 23:49:18 vanitha Exp $
   * $Date: 1999/11/08 23:49:18 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test For getRemoteAddr method
   */
  
  public class GetRemoteAddrTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetRemoteAddrTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			// servlet's job
  			// just need to connect
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetRemoteHostTest.java
  
  Index: GetRemoteHostTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetRemoteHostTest.java,v 1.1 1999/11/08 23:49:19 vanitha Exp $
   * $Date: 1999/11/08 23:49:19 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test For getRemoteHosr method
   */
  
  public class GetRemoteHostTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetRemoteHostTest.description");
  
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// no work done here
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetRequestDispatcherTest.java
  
  Index: GetRequestDispatcherTest.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetRequestDispatcherTest.java,v 1.1 1999/11/08 23:49:20 vanitha Exp $
   * $Date: 1999/11/08 23:49:20 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   * Test for getRequestDispatcher(String)
   */
  
  public class GetRequestDispatcherTest extends GenericClientTest {
  
  /** getRequestDispatcher(String path) gets a RequestDispatcher
   *  object provideed the supplied path is an absolute path
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SRGetRequestDispatcherTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetSchemeTest.java
  
  Index: GetSchemeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetSchemeTest.java,v 1.1 1999/11/08 23:49:21 vanitha Exp $
   * $Date: 1999/11/08 23:49:21 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test For getScheme method
   */
  
  public class GetSchemeTest extends GenericClientTest {
  
  	public String getDescription() {
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetSchemeTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetServerNameTest.java
  
  Index: GetServerNameTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetServerNameTest.java,v 1.1 1999/11/08 23:49:22 vanitha Exp $
   * $Date: 1999/11/08 23:49:22 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test For getServerName method
   */
  
  public class GetServerNameTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  
  		return sm.getString("GetServerNameTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetServerPortTest.java
  
  Index: GetServerPortTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/GetServerPortTest.java,v 1.1 1999/11/08 23:49:23 vanitha Exp $
   * $Date: 1999/11/08 23:49:23 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test For getServerPort method
   */
  
  public class GetServerPortTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetServerPortTest.description");
  
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/SetAttributeTest.java
  
  Index: SetAttributeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletRequest/SetAttributeTest.java,v 1.1 1999/11/08 23:49:24 vanitha Exp $
   * $Date: 1999/11/08 23:49:24 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletRequest;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test For setAttribute(String,Object) method
   */
  
  public class SetAttributeTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  
  		return sm.getString("SetAttributeTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  
  		}
  
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/FlushBufferTest.java
  
  Index: FlushBufferTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/FlushBufferTest.java,v 1.1 1999/11/08 23:49:41 vanitha Exp $ 
   * $Date: 1999/11/08 23:49:41 $ 
   * $Revision: 1.1 $
   * 
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:  
   *       "This product includes software developed by the 
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.util.Hashtable;
  import java.io.BufferedReader;
  import java.io.InputStream;
  import java.io.InputStreamReader;
  
  /**
   *  This Test for ServletResponse.flushBuffer method
   */
  
  public class FlushBufferTest extends GenericClientTest {
  
  
  	public String getDescription () {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("FlushBufferTest.description");
  	}
  
  	public TestResult runTest () {
  		
  		TestResult testResult = null;       
  	
  		try {	  
  
  			HttpURLConnection connection = getConnection(); 
  			testResult = getTestResult(connection);    
  	     
  			String msg;
  
  			BufferedReader reader = new BufferedReader( new InputStreamReader(connection.getInputStream()));
  	     
  		/*	InputStream is = connection.getInputStream();
  
  			System.out.println("Avail:"+is.available());
  			byte buffer[] = new byte[is.available()];
  			int len = is.read(buffer,0,buffer.length);
  
  			String mesg = new String(buffer,0,len);*/
  
  			StringBuffer sb = new StringBuffer();
  
  			/*while((msg=reader.readLine())!=null) 
  				sb.append(msg);
  
  			System.out.println("Buffer:"+sb); */
  
  			if(connection.getContentType().equals("text/html")) {
  
  				testResult = new TestResult();
  
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  
  			}
  			else{ 
  
  				Exception e = new Exception("Problem with flushBuffer method");
  				testResult = getTestResult(testResult,e);
  			}                  	  	     	     
  	   
  	} catch (Exception e) {
  
  		testResult = getTestResult(testResult, e);
  	}
  	return testResult;
      }
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/GetBufferSizeTest.java
  
  Index: GetBufferSizeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/GetBufferSizeTest.java,v 1.1 1999/11/08 23:49:43 vanitha Exp $ 
   * $Date: 1999/11/08 23:49:43 $ 
   * $Revision: 1.1 $
   * 
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:  
   *       "This product includes software developed by the 
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.util.Hashtable;
  
  /**
   *  Test for GetBufferSize method
   */
  
  public class GetBufferSizeTest extends ClientTest {
  
  	public String getDescription () {
      	
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetBufferSizeTest.description");
  	}
  
  	public TestResult runTest () {
  
  		TestResult testResult = null;       
  	
  		try {	  
  
  		     HttpURLConnection connection = getConnection();    
  		     testResult = getTestResult(connection);    
  	    
  		} catch (Exception e) {
  
  		    testResult = getTestResult(testResult, e);
  		}
  
  		return testResult;
  	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/GetCharacterEncodingTest.java
  
  Index: GetCharacterEncodingTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/GetCharacterEncodingTest.java,v 1.1 1999/11/08 23:49:44 vanitha Exp $
   * $Date: 1999/11/08 23:49:44 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /*
   *	Test for ServletResponse.getCharacterEncoding
   */
  
  
  public class GetCharacterEncodingTest extends GenericClientTest {
  
  	/** GetCharacterEncoding()
  	 *  returns the  character set encoding used for this MIME body.
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SRGetCharacterEncodingTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		try {
  			//just connect to the servlet
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/GetOutputStreamTest.java
  
  Index: GetOutputStreamTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/GetOutputStreamTest.java,v 1.1 1999/11/08 23:49:44 vanitha Exp $
   * $Date: 1999/11/08 23:49:44 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  public class GetOutputStreamTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetOutputStreamTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/GetOutputStream_1Test.java
  
  Index: GetOutputStream_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/GetOutputStream_1Test.java,v 1.1 1999/11/08 23:49:45 vanitha Exp $
   * $Date: 1999/11/08 23:49:45 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  
  /**  A Negative Test for ServletResponse.getOutputStream()
   */
  
  public class GetOutputStream_1Test extends GenericClientTest {
  
  	/**
  	 *	GetOutputStream returns a ServletOutputStream object of
  	 * 	the response object. Throws IllegalAcessException if
  	 * 	a writer object has already been god.
  	 *
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetOutputStream_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			boolean pass=false;
  
  			// just connecting to the servlet
  
  			HttpURLConnection connection = getConnection();
  
  			String nul="\n";
  
  			byte[] b = nul.getBytes();
  
  			BufferedReader br=new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			
  			String line=null;
  
  			while((line=br.readLine())!=null) {
  
  				if(line.equals("Passed")) {
  					
  					pass=true;
  				}
  			}
  
  			testResult = new TestResult();
  
  			if(pass) {
  
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("FAIL");
  			}
  
  		}catch(Exception e) {
  
  			//Unexpected Exception
  
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/GetWriterTest.java
  
  Index: GetWriterTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/GetWriterTest.java,v 1.1 1999/11/08 23:49:46 vanitha Exp $
   * $Date: 1999/11/08 23:49:46 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  public class GetWriterTest extends GenericClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetWriterTest.description");
  	}
  
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		boolean pass=false;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
  
  			String line=null;
  
  			while((line=br.readLine())!=null) {
  
  				if(line.trim().equals("Long Long ago")) {
  					pass=true;
  
  					break;
  				}
  
  			}
  
  			testResult = new TestResult();
  
  			if(pass) {
  
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  
  			}
  
  
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/GetWriter_1Test.java
  
  Index: GetWriter_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/GetWriter_1Test.java,v 1.1 1999/11/08 23:49:46 vanitha Exp $
   * $Date: 1999/11/08 23:49:46 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**  A Negative Test for ServletResponse.getWriter()
   */
  
  
  public class GetWriter_1Test extends GenericClientTest {
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetWriter_1Test.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/IsCommittedTest.java
  
  Index: IsCommittedTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/IsCommittedTest.java,v 1.1 1999/11/08 23:49:47 vanitha Exp $ 
   * $Date: 1999/11/08 23:49:47 $ 
   * $Revision: 1.1 $
   * 
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:  
   *       "This product includes software developed by the 
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.util.Hashtable;
  
  /**
   *	Test for isCommitted method
   *	@author Biju K Jos
   */
  
  public class IsCommittedTest extends GenericClientTest {
  
  
  	public String getDescription () {
  		
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("IsCommittedTest.description");
  	}
  
  	public TestResult runTest () {
  		
  		TestResult testResult = null;       
  	
  		try {	  
  			
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);    
  	    
  		} catch (Exception e) {
  			
  			testResult = getTestResult(testResult, e);
  		}
  		
  		return testResult;
      }
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/ResetTest.java
  
  Index: ResetTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/ResetTest.java,v 1.1 1999/11/08 23:49:48 vanitha Exp $ 
   * $Date: 1999/11/08 23:49:48 $ 
   * $Revision: 1.1 $
   * 
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:  
   *       "This product includes software developed by the 
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.util.Hashtable;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  
  /**
   *  Test for ServletResponse.Reset method
   */
  
  public class ResetTest extends GenericClientTest {
  
  	public String getDescription () {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("ResetTest.description");
      	}
  
  	public TestResult runTest () {
  
  		TestResult testResult = null;       
  	
  		try {	  
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);    
  	     
  		/**
  		 *	The Servlet set the content-type header to
  		 *	"text/html" and then it called reset.
  		 *	We should get the default content type 
  		 *	(text/plain) here
  		 */
  
  			if(connection.getContentType().equals("text/html")) {
  				Exception e = new Exception("Problem with clearBuffer");
  				testResult = getTestResult(testResult,e);
  			}	     		     	
  			else {
  
  				// if it comes here it is 
  				// obvious that it passes
  
  				testResult = new TestResult();
  
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  	} catch (Exception e) {
              testResult = getTestResult(testResult, e);
  	}
  
  	return testResult;
      }
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/Reset_1Test.java
  
  Index: Reset_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/Reset_1Test.java,v 1.1 1999/11/08 23:49:48 vanitha Exp $ 
   * $Date: 1999/11/08 23:49:48 $ 
   * 
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:  
   *       "This product includes software developed by the 
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.util.Hashtable;
  import java.io.FileNotFoundException;
  
  /**
   *	Negative Test for ServletResponse.clearBuffer method
   */
  
  public class Reset_1Test extends ClientTest {
  
      public String getDescription () {
  
      	StringManager sm = StringManager.getManager(UtilConstants.Package);
  	return sm.getString("Reset_1Test.description");
      }
  
      public TestResult runTest () {
  
          TestResult testResult = new TestResult();       
  	
  	try {	  
  
  	     //Just connect
  
               HttpURLConnection connection = getConnection();    
  
  	     testResult = getTestResult(connection);    
  	    
  	}catch (Exception e) {
              testResult = getTestResult(testResult, e);
  	}
  	return testResult;
      }
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/SetBufferSizeTest.java
  
  Index: SetBufferSizeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/SetBufferSizeTest.java,v 1.1 1999/11/08 23:49:49 vanitha Exp $ 
   * $Date: 1999/11/08 23:49:49 $ 
   * $Revision: 1.1 $
   * 
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:  
   *       "This product includes software developed by the 
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.util.Hashtable;
  
  /**
   *  This Test for setBufferSize method
   */
  
  public class SetBufferSizeTest extends ClientTest {
  
  	public String getDescription () {
      	
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetBufferSizeTest.description");
  	}
  
  	public TestResult runTest () {
  
  		TestResult testResult = null;       
  	
  		try {	  
  
  		     HttpURLConnection connection = getConnection();    
  		     testResult = getTestResult(connection);    
  	    
  		} catch (Exception e) {
  
  		    testResult = getTestResult(testResult, e);
  		}
  
  		return testResult;
  	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/SetBufferSize_2Test.java
  
  Index: SetBufferSize_2Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/SetBufferSize_2Test.java,v 1.1 1999/11/08 23:49:50 vanitha Exp $ 
   * $Date: 1999/11/08 23:49:50 $ 
   * $Revision: 1.1 $
   * 
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:  
   *       "This product includes software developed by the 
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.util.Hashtable;
  
  /**
   *  Negative Test for setBufferSize method
   */
  
  public class SetBufferSize_2Test extends GenericClientTest {
  
  
  	public String getDescription () {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetBufferSize_2Test.description");
  	}
  
  	public TestResult runTest () {
  
  		TestResult testResult = null;       
  	
  		try {	  
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);    
  	    
  		} catch (Exception e) {
  
  		testResult = getTestResult(testResult, e);
  	}
  	return testResult;
      }
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/SetContentLengthTest.java
  
  Index: SetContentLengthTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/SetContentLengthTest.java,v 1.1 1999/11/08 23:49:51 vanitha Exp $
   * $Date: 1999/11/08 23:49:51 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /*
   *	Test for ServletResponse.setContentLength().
   */
  
  public class SetContentLengthTest extends GenericClientTest {
  
  	/*
  	 *	setContentLength(int) sets the content length of the
  	 * 	Response object.
  	 */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetContentLengthTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  
  			/**
  			 *	just getting the content length and checking
  			 *	if it is equal to 10. It was set as 10 in the
  			 *  	server side.
  			 */
  
  			if(connection.getContentLength()==10) {
  				testResult = getTestResult(connection);
  			}
  			else { //nope it is not 10
  
  				Exception e = new Exception("problem getting ContentLength");
  				testResult = getTestResult(testResult,e);
  			}
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/SetContentTypeTest.java
  
  Index: SetContentTypeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/SetContentTypeTest.java,v 1.1 1999/11/08 23:49:51 vanitha Exp $ * $Date: 1999/11/08 23:49:51 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.GenericClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
  *	Test for  ServletResponse.SetContentType(java.lang.String);
  */
  
  public class SetContentTypeTest extends GenericClientTest {
  
  	/*
  	 *	setContentType(java.lang.String) sets the type of the
  	 *	Response content.
  	 *
  	*/
  
  	public String getDescription() {
  
  		/*
  		 *	 Desription about the Test
  		 */
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetContentTypeTest.description");
  	}
  
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			/*
  			*	Getting content type of the response
  			* 	Should be "text/html" as it was set so
  			*
  			*/
  
  			HttpURLConnection connection = getConnection();
  
  			String type = connection.getContentType();
  
  			if(type == null) {	//Fails
  
  				Exception e = new Exception("problem setting ContentLength");
  				testResult = getTestResult(testResult,e);
  			}
  			else if(type.equals("text/html"))
  				testResult = getTestResult(connection);
  			else {
  
  				// Wrong Content Type. Something other than "text/html"
  
  				Exception e = new Exception("problem setting ContentLength");
  				testResult = getTestResult(testResult,e);
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/SetLocaleTest.java
  
  Index: SetLocaleTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/ServletResponse/SetLocaleTest.java,v 1.1 1999/11/08 23:49:52 vanitha Exp $ 
   * $Date: 1999/11/08 23:49:52 $ 
   * $Revision: 1.1 $
   * 
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:  
   *       "This product includes software developed by the 
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  package org.apache.jcheck.servlet.client.javax_servlet.ServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.util.Hashtable;
  
  /**
   *  Test for ServletResponse.setLocale method
   */
  
  public class SetLocaleTest extends ClientTest {
  
  	public String getDescription () {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetLocaleTest.description");
  	}
  
  	public TestResult runTest () {
  
  		TestResult testResult = null;       
  
  		try {	  
  
  			HttpURLConnection connection = getConnection();    
  			String locale = connection.getHeaderField("Content-Language");
  			if(locale.toLowerCase().equals("en")){
  				
  				testResult=getTestResult(connection);
  			}	  
  			else{
  
  				Exception e=new Exception("Problem with SetLocale method");
  				testResult=getTestResult(testResult,e);
  			}
  	    
  		} catch (Exception e) {
  
  			testResult = getTestResult(testResult, e);
  		}
  
  		return testResult;
      }
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/SingleThreadModel/SingleModelTest.java
  
  Index: SingleModelTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/SingleThreadModel/SingleModelTest.java,v 1.1 1999/11/08 23:49:57 vanitha Exp $
   * $Date: 1999/11/08 23:49:57 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.SingleThreadModel;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.IOException;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for SingleThreadModel
   */
  
  public class SingleModelTest extends ClientTest {
  
  	/* The Empty SingleThreadModel  interface ensures that only one
  	 * thread is allowed to access the service method of the servlet
  	 * that implements this interface
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SingleThreadModelTest.description");
  	}
  
  	/*
  	 * Creating two threads which connect to the same servlet that
  	 * implements SingleThreadModel.
  	 *
  	 */
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			/* start thread */
  
  			Connector conn = new Connector(this);
  
  			Connector anotherConn= new Connector(this);
  
  			try {
  				// wait for both the threads to complete
  
  				conn.join();
  				anotherConn.join();
  
  			}catch(InterruptedException ie) {
  			}
  
  			// getting the connection object fromthe Connector class
  
  			HttpURLConnection connection = conn.returnConnection();
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  /*
   *	class Connector connects to the servlet.
   */
  
  class Connector extends Thread {
  
  	SingleModelTest smt;
  	java.net.HttpURLConnection conn;
  
  	public Connector(SingleModelTest smt) {
  
  		this.smt=smt;
  
  		start(); //  Get Set Go
  
  	}
  
  	public void run() { //no galloping
  
  		try {
  			conn=smt.getConnection();
  		}catch(Exception e) {
  		}
  	}
  
  	java.net.HttpURLConnection returnConnection() {
  
  		return this.conn;
  	}
  
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/Constructor1Test.java
  
  Index: Constructor1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/Constructor1Test.java,v 1.1 1999/11/08 23:49:59 vanitha Exp $
   * $Date: 1999/11/08 23:49:59 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.UnavailableException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for UnavailableException(Servlet,String)
   */
  
  public class Constructor1Test extends ClientTest {
  
  	/**
  	 * UnavailableException(Servlet,String) constructs a new  Unavailable
  	 * Exception object.This is thrown to show the permanent
  	 * Unavailablability of the servlet
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("UConstructor1Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/Constructor2Test.java
  
  Index: Constructor2Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/Constructor2Test.java,v 1.1 1999/11/08 23:50:00 vanitha Exp $
   * $Date: 1999/11/08 23:50:00 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.UnavailableException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for UnavailableException.UnavailableException(int,Servlet,String)
   */
  
  
  public class Constructor2Test extends ClientTest {
  
  	/**
  	 * UnavailableException(int secs,Servlet servlet,String mesg) constructs
  	 * a new  UnavailableException object.This is thrown to show the temporary
  	 * Unavailablability of the servlet. It prompts that the servlet will
  	 * not be available for another sesc seconds
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("UConstructor2Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/Constructor3Test.java
  
  Index: Constructor3Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/Constructor3Test.java,v 1.1 1999/11/08 23:50:01 vanitha Exp $
   * $Date: 1999/11/08 23:50:01 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.UnavailableException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for UnavailableException(String)
   */
  
  public class Constructor3Test extends ClientTest {
  
  	/**
  	 * UnavailableException(String) constructs a new  Unavailable
  	 * Exception object.This is thrown to show permanent
  	 * Unavailablability of the servlet
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("UConstructor3Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/Constructor4Test.java
  
  Index: Constructor4Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/Constructor4Test.java,v 1.1 1999/11/08 23:50:02 vanitha Exp $
   * $Date: 1999/11/08 23:50:02 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.UnavailableException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for UnavailableException(String)
   */
  
  public class Constructor4Test extends ClientTest {
  
  	/**
  	 * UnavailableException(String,int) constructs a new  Unavailable
  	 * Exception object.This is thrown to show Temporary
  	 * Unavailablability of the servlet
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("UConstructor4Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/GetServletTest.java
  
  Index: GetServletTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/GetServletTest.java,v 1.1 1999/11/08 23:50:03 vanitha Exp $
   * $Date: 1999/11/08 23:50:03 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.UnavailableException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for UnavailableException.getServlet();
   */
  
  public class GetServletTest extends ClientTest {
  
  	/**
  	 *	GetServlet method gets the servlet that is reporting
  	 *	Unavailability
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("UGetServletTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  
  		}
  
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/GetUnavailableSecondsTest.java
  
  Index: GetUnavailableSecondsTest.java
  ===================================================================
  package org.apache.jcheck.servlet.client.javax_servlet.UnavailableException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Positive Test for UnavailableException.GetUnavailableSeconds()
   */
  
  public class GetUnavailableSecondsTest extends ClientTest {
  
  	/** IsPermanent retruns the Unavailabilty of
  	 *  the Servlet if it is permanent otherwise it
  	 *  returns a negative value.
  	 *  Testing the  UnavailableException(int,Servlet,String)
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetUnavailableSecondsTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/GetUnavailableSeconds_1Test.java
  
  Index: GetUnavailableSeconds_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/GetUnavailableSeconds_1Test.java,v 1.1 1999/11/08 23:50:05 vanitha Exp $
   * $Date: 1999/11/08 23:50:05 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.UnavailableException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for UnavailableException.UnavailableSeconds()
   */
  
  public class GetUnavailableSeconds_1Test extends ClientTest {
  
  	/** IsPermanent retruns the Unavailabilty of
  	 *  the Servlet if it is permanent otherwise it
  	 *  returns a negative value.
  	 *  Testing the  UnavailableException(Servlet,String)
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetUnavailableSeconds_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/GetUnavailableSeconds_3Test.java
  
  Index: GetUnavailableSeconds_3Test.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/GetUnavailableSeconds_3Test.java,v 1.1 1999/11/08 23:50:06 vanitha Exp $
   * $Date: 1999/11/08 23:50:06 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.UnavailableException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for UnavailableException.UnavailableSeconds()
   */
  
  public class GetUnavailableSeconds_3Test extends ClientTest {
  
  	/** IsPermanent retruns the Unavailabilty of
  	 *  the Servlet if it is permanent otherwise it
  	 *  returns a negative value.
  	 *  Testing the  UnavailableException(Servlet,String)
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetUnavailableSeconds_3Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/GetUnavailableSeconds_4Test.java
  
  Index: GetUnavailableSeconds_4Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/GetUnavailableSeconds_4Test.java,v 1.1 1999/11/08 23:50:06 vanitha Exp $
   * $Date: 1999/11/08 23:50:06 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.UnavailableException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for UnavailableException.UnavailableSeconds()
   */
  
  public class GetUnavailableSeconds_4Test extends ClientTest {
  
  	/** IsPermanent retruns the Unavailabilty of
  	 *  the Servlet if it is permanent otherwise it
  	 *  returns a negative value.
  	 *  Testing the  UnavailableException(Servlet,String)
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetUnavailableSeconds_4Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/IsPermanentTest.java
  
  Index: IsPermanentTest.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/IsPermanentTest.java,v 1.1 1999/11/08 23:50:07 vanitha Exp $
   * $Date: 1999/11/08 23:50:07 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.UnavailableException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for isPermanant()
   */
  
  public class IsPermanentTest extends ClientTest {
  
  
  	/* isPermanent returns true is the servlet's unavailability is
  	 * permanent  otherwise false
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("IsPermanentTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/IsPermanent_1Test.java
  
  Index: IsPermanent_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet/UnavailableException/IsPermanent_1Test.java,v 1.1 1999/11/08 23:50:09 vanitha Exp $
   * $Date: 1999/11/08 23:50:09 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet.UnavailableException;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for isPermanant()
   */
  
  public class IsPermanent_1Test extends ClientTest {
  
  
  	/* isPermanent returns true is the servlet's unavailability is
  	 * permanent  otherwise false
  	 */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("IsPermanent_1Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/ConstructorTest.java
  
  Index: ConstructorTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/ConstructorTest.java,v 1.1 1999/11/08 23:50:17 vanitha Exp $
   * $Date: 1999/11/08 23:50:17 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test For Cookie(String,String) constructor
   */
  
  public class ConstructorTest extends ClientTest {
  
  /**
   *	Cookie(String name,String value) constructs a Cookie
   *	with name,value pair.
   */
  
  	public String getDescription() {
  
  		StringManager sm=StringManager.getManager(UtilConstants.Package);
  		return sm.getString("ConstructorTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		// connect to the servlet
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/Constructor_1Test.java
  
  Index: Constructor_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/Constructor_1Test.java,v 1.1 1999/11/08 23:50:19 vanitha Exp $
   * $Date: 1999/11/08 23:50:19 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test For Cookie(String,String) constructor
   */
  
  public class Constructor_1Test extends ClientTest {
  
  /**
   *	Cookie(String name,String value) constructs a Cookie
   *	with name,value pair.
   */
  
  StringManager sm = StringManager.getManager(UtilConstants.Package);
  
  	public String getDescription() {
  
  		return sm.getString("Constructor_1Test.description");
  
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		//Tested in the server side
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/CookieCloneTest.java
  
  Index: CookieCloneTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/CookieCloneTest.java,v 1.1 1999/11/08 23:50:20 vanitha Exp $
   * $Date: 1999/11/08 23:50:20 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for Cookie.clone()
   */
  
  public class CookieCloneTest extends ClientTest {
  
  	/**
  	 * As Cookie implements cloneable, we are trying to
  	 * clone it and test for the equalities of
  	 * the name value pairs of both the Cookies
  	 */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("CookieCloneTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			//connect to servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetCommentTest.java
  
  Index: GetCommentTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetCommentTest.java,v 1.1 1999/11/08 23:50:21 vanitha Exp $
   * $Date: 1999/11/08 23:50:21 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	A Negative Test for Cookie.getComment method
   */
  
  public class GetCommentTest extends ClientTest {
  
  /**
   *	getComment() gets the comment if any had been set
   *	for the Cookie object
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetCommentTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetComment_1Test.java
  
  Index: GetComment_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetComment_1Test.java,v 1.1 1999/11/08 23:50:22 vanitha Exp $
   * $Date: 1999/11/08 23:50:22 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	A Negative Test for Cookie.getComment method
   */
  
  public class GetComment_1Test extends ClientTest {
  
  	/**
  	 *	getComment() gets the comment if any had been set
  	 *	for the Cookie object
  	 */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetComment_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  
  		}
  
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetDomainTest.java
  
  Index: GetDomainTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetDomainTest.java,v 1.1 1999/11/08 23:50:24 vanitha Exp $
   * $Date: 1999/11/08 23:50:24 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for Cookie.getDomain method
   */
  
  public class GetDomainTest extends ClientTest {
  
  
  /**
   *	getDomain method gets the domain value
   *	if any had been set already
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetDomainTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetDomain_1Test.java
  
  Index: GetDomain_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetDomain_1Test.java,v 1.1 1999/11/08 23:50:25 vanitha Exp $
   * $Date: 1999/11/08 23:50:25 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for Cookie.getDomain method
   */
  
  public class GetDomain_1Test extends ClientTest {
  
  /**
   *	getDomain method gets the domain value
   *	if any had been set already
   */
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetDomain_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			// Connect to the Servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetMaxAgeTest.java
  
  Index: GetMaxAgeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetMaxAgeTest.java,v 1.1 1999/11/08 23:50:26 vanitha Exp $
   * $Date: 1999/11/08 23:50:26 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Positive Test for getMaxAge method
   */
  
  public class GetMaxAgeTest extends ClientTest {
  
  /**
   *	getMaxAge returns the maximum time limit for the
   *	cookies aliveness
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetMaxAgeTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetMaxAge_1Test.java
  
  Index: GetMaxAge_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetMaxAge_1Test.java,v 1.1 1999/11/08 23:50:27 vanitha Exp $
   * $Date: 1999/11/08 23:50:27 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for getMaxAge method
   */
  
  public class GetMaxAge_1Test extends ClientTest {
  
  /**
   *	getMaxAge returns the maximum time limit for the
   *	cookies aliveness
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetMaxAge_1Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetNameTest.java
  
  Index: GetNameTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetNameTest.java,v 1.1 1999/11/08 23:50:29 vanitha Exp $
   * $Date: 1999/11/08 23:50:29 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getName method
   */
  
  public class GetNameTest extends ClientTest {
  
  /**
   *	Cookie.getName() returns the name of the cookie
   *
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetNameTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetPathTest.java
  
  Index: GetPathTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetPathTest.java,v 1.1 1999/11/08 23:50:30 vanitha Exp $
   * $Date: 1999/11/08 23:50:30 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   * 	POsitive Test for getPath method
   */
  
  public class GetPathTest extends ClientTest {
  
  /**
   *	getPath method returns the prefix of all the URL paths
   *	for which the Cookie is valid
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetPathTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetPath_1Test.java
  
  Index: GetPath_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetPath_1Test.java,v 1.1 1999/11/08 23:50:32 vanitha Exp $
   * $Date: 1999/11/08 23:50:32 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   * 	Negative Test for getPath method
   */
  
  public class GetPath_1Test extends ClientTest {
  
  /**
   *	getPath method returns the prefix of all the URL paths
   *	for which the Cookie is valid
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetPath_1Test.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			//connect to Servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetSecureTest.java
  
  Index: GetSecureTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetSecureTest.java,v 1.1 1999/11/08 23:50:33 vanitha Exp $
   * $Date: 1999/11/08 23:50:33 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.util.Hashtable;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   * 	Test for getSecure method
   */
  
  public class GetSecureTest extends ClientTest {
  
  /**
   * 	if the  Cookie is going to be transmitted through Secure
   * 	channel, it returns true, otherwise false
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetSecureTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		Hashtable header = new Hashtable();
  	
  		try {
  
  			header.put("Cookie","Val=20");
  			HttpURLConnection connection = getConnection(header);
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetValueTest.java
  
  Index: GetValueTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetValueTest.java,v 1.1 1999/11/08 23:50:34 vanitha Exp $
   * $Date: 1999/11/08 23:50:34 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   * 	Test for getValue method
   */
  
  public class GetValueTest extends ClientTest {
  
  /**
   *	getValue returns the value set to the Cookie Object
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetValueTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			//getConnection to the servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetVersionTest.java
  
  Index: GetVersionTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/GetVersionTest.java,v 1.1 1999/11/08 23:50:35 vanitha Exp $
   * $Date: 1999/11/08 23:50:35 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test For getVersion method
   */
  
  public class GetVersionTest extends ClientTest {
  
  /**
   * Cookie.getVersion gets the set version of Cookie
   *
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetVersionTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetCommentTest.java
  
  Index: SetCommentTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetCommentTest.java,v 1.1 1999/11/08 23:50:36 vanitha Exp $
   * $Date: 1999/11/08 23:50:36 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**	Test for Cookie.setComment(String);
   */
  
  public class SetCommentTest extends ClientTest {
  
  /**
   * 	Cookie.setComment set comment for the Cookie Object
   * 	this can be tested by getting the comment using
   * 	Cookie.getComment method
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetCommentTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetDomainTest.java
  
  Index: SetDomainTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetDomainTest.java,v 1.1 1999/11/08 23:50:37 vanitha Exp $
   * $Date: 1999/11/08 23:50:37 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for Cookie.setDomain(string) method
   */
  
  public class SetDomainTest extends ClientTest {
  
  /**
   *	Cookie.setDomain(String dom) sets the Cookie objects domain
   *	to be that of the String dom
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetDomainTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetMaxAgeTest.java
  
  Index: SetMaxAgeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetMaxAgeTest.java,v 1.1 1999/11/08 23:50:37 vanitha Exp $
   * $Date: 1999/11/08 23:50:37 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for Cookie.setMaxAge(int)
   */
  
  public class SetMaxAgeTest extends ClientTest {
  
  /**	setMaxAge(int expiry) sets the maximum age for the cookie
   *	The Cookie will expire after expiry seconds
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetMaxAgeTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetPathTest.java
  
  Index: SetPathTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetPathTest.java,v 1.1 1999/11/08 23:50:38 vanitha Exp $
   * $Date: 1999/11/08 23:50:38 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for Cookie.setPath(String)
   */
  
  public class SetPathTest extends ClientTest {
  
  /**
   * setPath(String path) sets the path attribute of the
   * Cookie
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetPathTest.description");
  
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		// connect to the Servlet
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetSecureTest.java
  
  Index: SetSecureTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetSecureTest.java,v 1.1 1999/11/08 23:50:38 vanitha Exp $
   * $Date: 1999/11/08 23:50:38 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for Cookie.setSecure(boolean)
   */
  
  public class SetSecureTest extends ClientTest {
  
  /**
   *	Cookie.setSecure(boolean val) when set to true indicates
   *	that the Cookie will only be sent over a secure layer
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetSecureTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		// Connect to the Servlet
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			String cookie=connection.getHeaderField("Set-Cookie");
  	//		testResult = getTestResult(connection);
  
  			testResult = new TestResult();
  
  			if(cookie.toLowerCase().indexOf("secure")>0) {
  
  				testResult.setStatus(true);
  				testResult.setMessage("OK");
  			}
  			else {
  				testResult.setStatus(false);
  				testResult.setMessage("Problem with setSecure method");
  			}
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetValueTest.java
  
  Index: SetValueTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetValueTest.java,v 1.1 1999/11/08 23:50:39 vanitha Exp $
   * $Date: 1999/11/08 23:50:39 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for setValue(String) method
   */
  
  public class SetValueTest extends ClientTest {
  
  /**
   *	Cookie.setValue(String val)  sets the cookie's value
   *	to val
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetValueTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		//Connect to servlet
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetVersionTest.java
  
  Index: SetVersionTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/Cookie/SetVersionTest.java,v 1.1 1999/11/08 23:50:40 vanitha Exp $
   * $Date: 1999/11/08 23:50:40 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.Cookie;
  
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for Cookie.setVersion(int)
   */
  
  public class SetVersionTest extends ClientTest {
  
  /**
   * Cookie.setVersion(int ver) sets the cookie's version to ver
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetVersionTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			// Connect to servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetAuthTypeTest.java
  
  Index: GetAuthTypeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetAuthTypeTest.java,v 1.1 1999/11/08 23:50:45 vanitha Exp $
   * $Date: 1999/11/08 23:50:45 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getAuthType method
   */
  
  public class GetAuthTypeTest extends ClientTest {
  
  /**
   *	getAuthType returns the Authorization type used in tihs
   *	request
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetAuthTypeTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		Hashtable headers = new Hashtable();
  
  		try {
  
  			//Auth code
  
  			//String code="BASIC d2VibWFzdGVyOnpycW1hNHY="
  
  			//webmaster:zrma4v. 
  			String code="BASICtd2VibWFzdGVyOnpycW1hNHY=";
  
  			//saving it in hashtable
  
  			headers.put("Authorization",code);
  
  			//get connection with headers set
  			HttpURLConnection connection = getConnection(headers);
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetContextPathTest.java
  
  Index: GetContextPathTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetContextPathTest.java,v 1.1 1999/11/08 23:50:49 vanitha Exp $
   * $Date: 1999/11/08 23:50:49 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getContextPath method
   */
  
  public class GetContextPathTest extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetContextPathTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		//just connect, its enough
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetCookiesTest.java
  
  Index: GetCookiesTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetCookiesTest.java,v 1.1 1999/11/08 23:50:50 vanitha Exp $
   * $Date: 1999/11/08 23:50:50 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.util.Hashtable;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getCookies method
   */
  
  public class GetCookiesTest extends ClientTest {
  
  	public String getDescription() {
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetCookiesTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		// for headers
  
  		Hashtable headers = new Hashtable();
  
  		try {
  
  			// setting cookie
  			headers.put("Cookie","value0=20");
  			headers.put("Cookie","value=10");
  
  			HttpURLConnection connection = getConnection(headers);
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetCookies_01Test.java
  
  Index: GetCookies_01Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetCookies_01Test.java,v 1.1 1999/11/08 23:50:51 vanitha Exp $
   * $Date: 1999/11/08 23:50:51 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for getCookies method
   */
  
  public class GetCookies_01Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetCookies_01Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  	/**
  	 * We are not sending any Cookie from the client side
  	 * In the server side we are trying to getCookies
  	 *
  	 */
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetDateHeaderTest.java
  
  Index: GetDateHeaderTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetDateHeaderTest.java,v 1.1 1999/11/08 23:50:51 vanitha Exp $
   * $Date: 1999/11/08 23:50:51 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.util.Date;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getDateHeader method
   */
  
  public class GetDateHeaderTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetDateHeaderTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		//for headers
  
  		Hashtable headers = new Hashtable();
  
  		try {
  
  			//Valid date format
  
  			//Date d = new Date();
  
  			String date= "Fri, 04 Oct 1998 18:13:30 GMT";
  
  			//headers.put("If-Modified-Since",String.valueOf(d.getTime()));
  
  			headers.put("If-Modified-Since",date);
  
  			HttpURLConnection connection = getConnection(headers);
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetDateHeader_01Test.java
  
  Index: GetDateHeader_01Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetDateHeader_01Test.java,v 1.1 1999/11/08 23:50:52 vanitha Exp $
   * $Date: 1999/11/08 23:50:52 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getDateHeader method
   */
  
  public class GetDateHeader_01Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetDateHeader_01Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		//checking done in clilent side
  		// so just connecting to the servlet
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetDateHeader_02Test.java
  
  Index: GetDateHeader_02Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetDateHeader_02Test.java,v 1.1 1999/11/08 23:50:52 vanitha Exp $
   * $Date: 1999/11/08 23:50:52 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Negative Test for getAuthType method
   */
  
  public class GetDateHeader_02Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetDateHeader_02Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		//for Headers
  
  		Hashtable headers = new Hashtable();
  
  
  		try {
  
  			/* setting non date format header */
  
  			headers.put("If-Modified-Since","Basic AvdecV8Ycbeg");
  			HttpURLConnection connection = getConnection(headers);
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetHeaderNamesTest.java
  
  Index: GetHeaderNamesTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetHeaderNamesTest.java,v 1.1 1999/11/08 23:50:53 vanitha Exp $
   * $Date: 1999/11/08 23:50:53 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getHeaderNames method
   */
  
  public class GetHeaderNamesTest extends ClientTest {
  
  
  /**
   *	 getHeaderNames gets the names of all the
   *	headers in the request and returns it as an enumeration
   */
  
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetHeaderNamesTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		//for headers
  
  		Hashtable headers = new Hashtable();
  
  		try {
  			// Setting Request Headers
  
  			headers.put("Authorization","Basic achegkliporV8y");
  			headers.put("Cookie","2");
  
  			HttpURLConnection connection = getConnection(headers);
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetHeaderTest.java
  
  Index: GetHeaderTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetHeaderTest.java,v 1.1 1999/11/08 23:50:53 vanitha Exp $
   * $Date: 1999/11/08 23:50:53 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getHeader(String) method
   */
  
  public class GetHeaderTest extends ClientTest {
  
  /**
   *	getHeader(String hdr) gets the value for the
   *	header names hdr
   */
  
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetHeaderTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		// for headers
  		Hashtable headers = new Hashtable();
  
  		try {
  			//Setting headers
  
  			headers.put("Cookie","value=10");
  			HttpURLConnection connection = getConnection(headers,null,null,null);
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetHeader_01Test.java
  
  Index: GetHeader_01Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetHeader_01Test.java,v 1.1 1999/11/08 23:50:54 vanitha Exp $
   * $Date: 1999/11/08 23:50:54 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Negative Test for getHeader method
   */
  
  public class GetHeader_01Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetHeader_01Test.description");
  	}
  	public TestResult runTest() {
  
  		//for headers
  		Hashtable headers = new Hashtable();
  
  		TestResult testResult = null;
  
  		try {
  			// passing a null header
  
  			HttpURLConnection connection = getConnection(headers,null,null,null);
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetHeadersTest.java
  
  Index: GetHeadersTest.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetHeadersTest.java,v 1.1 1999/11/08 23:50:55 vanitha Exp $
   * $Date: 1999/11/08 23:50:55 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.util.Enumeration;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getHeaders(String) method
   */
  
  public class GetHeadersTest extends ClientTest {
  
  /**
   *	getHeaders(String hdr) gets the values associated for the
   *	header name hdr
   */
  
  
  	public void setStream(java.io.OutputStream os){}
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetHeadersTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		// for headers
  		Hashtable headers = new Hashtable();
  
  		try {
  			//Setting headers
  
  			headers.put("Accept-Language","en-us,en-gb");
  
  			//Only Get and Head are cachable
  			//Default Request method is Get
  
  
  			//headers.put("Cache-Control","max-age=500,min-fresh=300");
  
  			HttpURLConnection connection = getConnection(headers);
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  
  
  		//not needed 
  /*	protected void doHeaders(Hashtable headers, HttpURLConnection connection) {
  		connection.setRequestProperty("Cache-Control","max-age=500,min-fresh=300");
  //		connection.setRequestProperty("Cache-Control","min-fresh=300");
  
  	} */
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetHeaders_01Test.java
  
  Index: GetHeaders_01Test.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetHeaders_01Test.java,v 1.1 1999/11/08 23:50:55 vanitha Exp $
   * $Date: 1999/11/08 23:50:55 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Negative Test for getHeaders method
   *	@author Nikesh Anand
   */
  
  public class GetHeaders_01Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetHeaders_01Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetIntHeaderTest.java
  
  Index: GetIntHeaderTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetIntHeaderTest.java,v 1.1 1999/11/08 23:50:56 vanitha Exp $
   * $Date: 1999/11/08 23:50:56 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getIntHeader method
   */
  
  public class GetIntHeaderTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetIntHeaderTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		//for headers
  		Hashtable headers = new Hashtable();
  
  		try {
  
  			//putting some sane int value
  
  			headers.put("Cookie","2");
  
  			HttpURLConnection connection = getConnection(headers,null,null,null);
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetIntHeader_1Test.java
  
  Index: GetIntHeader_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetIntHeader_1Test.java,v 1.1 1999/11/08 23:50:58 vanitha Exp $
   * $Date: 1999/11/08 23:50:58 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Negative Test for getIntHeader(String) method
   */
  
  public class GetIntHeader_1Test extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetIntHeader_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		// for headers
  
  		Hashtable headers = new Hashtable();
  		try {
  			//set a Header with non int type value
  
  			headers.put("Cookie","please fail");
  
  			HttpURLConnection connection = getConnection(headers);
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetIntHeader_2Test.java
  
  Index: GetIntHeader_2Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetIntHeader_2Test.java,v 1.1 1999/11/08 23:51:00 vanitha Exp $
   * $Date: 1999/11/08 23:51:00 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Negative Test for getIntHeader(String) method
   */
  
  public class GetIntHeader_2Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetIntHeader_2Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		//For headers
  		Hashtable headers = new Hashtable();
  
  		try {
  
  			headers.put("Authorization","BASIC d2VibWFzdGVyOnRyeTUndWVTUw");//just set some value
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetMethodTest.java
  
  Index: GetMethodTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetMethodTest.java,v 1.1 1999/11/08 23:51:02 vanitha Exp $
   * $Date: 1999/11/08 23:51:02 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getMethod-GET method
   */
  
  public class GetMethodTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetMethodTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//RequestMethod is GET which is also the
  			// default request method
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetMethod_HEADTest.java
  
  Index: GetMethod_HEADTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetMethod_HEADTest.java,v 1.1 1999/11/08 23:51:04 vanitha Exp $
   * $Date: 1999/11/08 23:51:04 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getMethod-HEAD method
   */
  
  public class GetMethod_HEADTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetMethod_HEADTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			// Request method is HEAD
  
  			HttpURLConnection connection=getConnection("HEAD");
  			testResult = getTestResult(connection);
  
  			//pass if we got here
  			testResult.setStatus(true);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetMethod_POSTTest.java
  
  Index: GetMethod_POSTTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetMethod_POSTTest.java,v 1.1 1999/11/08 23:51:05 vanitha Exp $
   * $Date: 1999/11/08 23:51:05 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getMethod-POST method
   */
  
  public class GetMethod_POSTTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetMethod_POSTTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		try {
  
  			// Request Method POST
  
  			HttpURLConnection connection = getConnection(null,null,null,"POST");
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetPathInfoTest.java
  
  Index: GetPathInfoTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetPathInfoTest.java,v 1.1 1999/11/08 23:51:06 vanitha Exp $
   * $Date: 1999/11/08 23:51:06 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getPathInfo method
   */
  
  public class GetPathInfoTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetPathInfoTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		String path="SOMEPATH";
  
  		try {
  
  			// Setting some extra path
  
  			HttpURLConnection connection = getConnection(null,null,path,null);
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetPathInfo_01Test.java
  
  Index: GetPathInfo_01Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetPathInfo_01Test.java,v 1.1 1999/11/08 23:51:06 vanitha Exp $
   * $Date: 1999/11/08 23:51:06 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for getPathInfo(String) method
   */
  
  public class GetPathInfo_01Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetPathInfo_01Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			// passing no extra path info so
  			// the method should return NULL
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetPathTranslatedTest.java
  
  Index: GetPathTranslatedTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetPathTranslatedTest.java,v 1.1 1999/11/08 23:51:07 vanitha Exp $
   * $Date: 1999/11/08 23:51:07 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getPathTranslated method
   */
  
  
  
  public class GetPathTranslatedTest extends ClientTest {
  
  /*
  * This method returns a translated path if any extra path
  * info is supplied along with the servlet path
  */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetPathTranslatedTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  
  			String extraPath="maybeValid";
  
  			// giving extra path info
  
  			HttpURLConnection connection=getConnection(null,null,extraPath,null);
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetQueryStringTest.java
  
  Index: GetQueryStringTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetQueryStringTest.java,v 1.1 1999/11/08 23:51:09 vanitha Exp $
   * $Date: 1999/11/08 23:51:09 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getQueryString method
   */
  
  public class GetQueryStringTest extends ClientTest {
  
  /**
   * getQueryString gets any queryString associated with the request
   *
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetQueryStringTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		String queryString="pet=cat";
  		try {
  			HttpURLConnection connection = getConnection(null,queryString,null,null);
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetQueryString_01Test.java
  
  Index: GetQueryString_01Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetQueryString_01Test.java,v 1.1 1999/11/08 23:51:10 vanitha Exp $
   * $Date: 1999/11/08 23:51:10 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  public class GetQueryString_01Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetQueryString_01Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetRemoteUserTest.java
  
  Index: GetRemoteUserTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetRemoteUserTest.java,v 1.1 1999/11/08 23:51:11 vanitha Exp $
   * $Date: 1999/11/08 23:51:11 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getRemoteUser method
   */
  
  public class GetRemoteUserTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetRemoteUserTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		try {
  
  			// for headers
  			Hashtable headers = new Hashtable();
  
  			String code1="Basic d2VibWFzdGVyOnRyeTUndWVTUw=";
  			String code="Basic d2VibWFzdGVyOnpycW1hNHY=";
  
  			// setting authentication code
  
  			headers.put("Authorization",code);
  
  			//setting From header
  
  			headers.put("From","webmaster");
  			headers.put("Logon-User","charath@eng.sun.com");
  			headers.put("Proxy-Authorization",code1);
  			headers.put("Content-Type","text/plain");
  			headers.put("Clientid","charath");
  			headers.put("Guid","charath");
  
  			HttpURLConnection connection = getConnection(headers);
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetRequestURITest.java
  
  Index: GetRequestURITest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetRequestURITest.java,v 1.1 1999/11/08 23:51:11 vanitha Exp $
   * $Date: 1999/11/08 23:51:11 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getRequestURI method
   */
  
  public class GetRequestURITest extends ClientTest {
  
  /**
   *	getRequestURI returns the part of the resource being requested
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetRequestURITest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//testing in the server side
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetRequestedSessionIdTest.java
  
  Index: GetRequestedSessionIdTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetRequestedSessionIdTest.java,v 1.1 1999/11/08 23:51:12 vanitha Exp $
   * $Date: 1999/11/08 23:51:12 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getRequestedSessionId method
   */
  
  public class GetRequestedSessionIdTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetRequestedSessionIdTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		Hashtable headers = new Hashtable();
  
  		try {
  			// nothing requested, so null means pass
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetServletPathTest.java
  
  Index: GetServletPathTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetServletPathTest.java,v 1.1 1999/11/08 23:51:12 vanitha Exp $
   * $Date: 1999/11/08 23:51:12 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getServletPath method
   */
  
  public class GetServletPathTest extends ClientTest {
  
  
  /**
   * 	getServletPath returns part of the Request URl that
   *	refers to the Servlet being called
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetServletPathTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		//just connect, its enough
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetSession_01Test.java
  
  Index: GetSession_01Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetSession_01Test.java,v 1.1 1999/11/08 23:51:13 vanitha Exp $
   * $Date: 1999/11/08 23:51:13 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for getSession(boolean) method
   */
  
  public class GetSession_01Test extends ClientTest {
  
  /**
   * 	getSession(boolean state) returns the current valid session
   *	 or creates new session if state is true
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetSession_01Test.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		//Simply connect
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetUserPrincipalTest.java
  
  Index: GetUserPrincipalTest.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/GetUserPrincipalTest.java,v 1.1 1999/11/08 23:51:13 vanitha Exp $
   * $Date: 1999/11/08 23:51:13 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for getUserPrincipal method
   */
  
  public class GetUserPrincipalTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetUserPrincipalTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		try {
  
  			// for headers
  			Hashtable headers = new Hashtable();
  
  			String code="Basic d2VibWFzdGVyOnRyeTUndWVTUw=";
  
  			// setting authentication code
  
  			headers.put("Authorization",code);
  
  			//setting From header
  
  			headers.put("From","got2be@eng.sun.com");
  
  			HttpURLConnection connection = getConnection(headers);
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/IsRequestedSessionIdFromCookieTest.java
  
  Index: IsRequestedSessionIdFromCookieTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/IsRequestedSessionIdFromCookieTest.java,v 1.1 1999/11/08 23:51:14 vanitha Exp $
   * $Date: 1999/11/08 23:51:14 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for isRequestedSessionIdValid method
   */
  
  public class IsRequestedSessionIdFromCookieTest extends ClientTest {
  
  /**
   * 	this method returns true if the requested session Id
   *	is from cookie
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("IsRequestedSessionIdFromCookieTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		//Connect to the Servlet
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/IsRequestedSessionIdFromURLTest.java
  
  Index: IsRequestedSessionIdFromURLTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/IsRequestedSessionIdFromURLTest.java,v 1.1 1999/11/08 23:51:14 vanitha Exp $
   * $Date: 1999/11/08 23:51:14 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for isRequestedSessionIdFromUrl method
   */
  
  public class IsRequestedSessionIdFromURLTest extends ClientTest {
  
  /**
   * 	This Deprecated method returns true if the requested session Id
   *	is got by URLRewriting
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("IsRequestedSessionIdFromURLTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//Connect to the servlet
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/IsRequestedSessionIdFromURL_2Test.java
  
  Index: IsRequestedSessionIdFromURL_2Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/IsRequestedSessionIdFromURL_2Test.java,v 1.1 1999/11/08 23:51:15 vanitha Exp $
   * $Date: 1999/11/08 23:51:15 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for isRequestedSessionIdFromUrl method
   */
  
  public class IsRequestedSessionIdFromURL_2Test extends ClientTest {
  
  /**
   * 	This Deprecated method returns true if the requested session Id
   *	is got by URLRewriting
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("IsRequestedSessionIdFromUrlTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//Connect to the servlet
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/IsRequestedSessionIdValidTest.java
  
  Index: IsRequestedSessionIdValidTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/IsRequestedSessionIdValidTest.java,v 1.1 1999/11/08 23:51:16 vanitha Exp $
   * $Date: 1999/11/08 23:51:16 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for isRequestedSessionIdValid method
   */
  
  
  public class IsRequestedSessionIdValidTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("IsRequestedSessionIdValidTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		//Connect
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/IsUserInRoleTest.java
  
  Index: IsUserInRoleTest.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletRequest/IsUserInRoleTest.java,v 1.1 1999/11/08 23:51:17 vanitha Exp $
   * $Date: 1999/11/08 23:51:17 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletRequest;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for IsUserInRole method
   */
  
  public class IsUserInRoleTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("IsUserInRoleTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddCookieTest.java
  
  Index: AddCookieTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddCookieTest.java,v 1.1 1999/11/08 23:51:38 vanitha Exp $
   * $Date: 1999/11/08 23:51:38 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for AddCookie Method
   */
  
  public class AddCookieTest extends ClientTest {
  
  /**
   *	AddCookie adds cookie to the Response object
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("AddCookieTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			// Accepting Cookies
  
  			String cookie = connection.getHeaderField("Set-Cookie");
  			if(cookie==null) {
  
  				testResult=getTestResult(testResult,new Exception("Add cookie failed to add cookies to the Http Header"));
  			}
  			else {
  				// We got some Cookie
  
  				if(cookie.equals("testing=1")) {
  
  					// our dear cookie
  
  					testResult=getTestResult(connection);
  				}
  				else {
  
  					//Wrong Cookie Name
  
  					testResult=getTestResult(testResult,new Exception("Cookie not added properly"));
  				}
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddDateHeaderTest.java
  
  Index: AddDateHeaderTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddDateHeaderTest.java,v 1.1 1999/11/08 23:51:40 vanitha Exp $
   * $Date: 1999/11/08 23:51:40 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for addDataHeader(String,long) method
   *	@author Nikesh Anand R
   */
  
  
  public class AddDateHeaderTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("AddDateHeaderTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			//get the set field from the reponse
  
  			int count=0;
  
  			String header = "";
  
  			for(int i=0;header!=null;i++) {
  
  				
  				if(header.equals("Thu, 15 Jan 1970 06:56:07 GMT")||header.equals("Sat, 25 Apr 1970 07:29:03 GMT")) {
  
  					if(connection.getHeaderFieldKey(i-1).equals("Set-Cookie")) 
  						count++;
  				}
  
  				header=connection.getHeaderField(i);
  			}
  
  
  			if(count==2)
  				testResult = getTestResult(connection);
  			else
  				testResult=getTestResult(testResult,new Exception("Value wrong"));
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddDateHeader_1Test.java
  
  Index: AddDateHeader_1Test.java
  ===================================================================
  /**
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddDateHeader_1Test.java,v 1.1 1999/11/08 23:51:41 vanitha Exp $
   * $Date: 1999/11/08 23:51:41 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for addDataHeader(String,long) method
   */
  
  
  public class AddDateHeader_1Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("AddDateHeader_1Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			int count=0;
  
  			String header = "";
  			String headerKey="";
  
  			for(int i=0;header!=null;i++) {
  
  				
  				if(headerKey!=null &&
  					headerKey.equals("Set-Cookie")) {
  
  					if(header.equals("Sat, 25 Apr 1970 07:29:03 GMT")) 
  						count++;
  				}
  
  				//will be null for the first Header
  
  				headerKey=connection.getHeaderFieldKey(i);
  
  				//That is why we want this
  				header=connection.getHeaderField(i);
  			}
  
  
  			if(count==1)
  				testResult = getTestResult(connection);
  			else
  				testResult=getTestResult(testResult,new Exception("Value wrong"));
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddHeaderTest.java
  
  Index: AddHeaderTest.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddHeaderTest.java,v 1.1 1999/11/08 23:51:43 vanitha Exp $
   * $Date: 1999/11/08 23:51:43 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for AddHeader(String,Object) method
   */
  
  public class AddHeaderTest extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("AddHeaderTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  
  			String header="";
  
  			int count=0;
  
  			//we set two Cookies in the servlet
  			// loop and look for our header
  
  			for(int i=0;header!=null;i++) {
  
  				if(header.trim().equals("enus=engb") ||
  					header.trim().equals("Val=20")) {
  
  					count++;
  				}
  
  				header=connection.getHeaderField(i);
  			}
  
  			if(count==2) {
  
  				//pass
  
  				testResult = getTestResult(connection);
  			}
  			else {
  				Exception e = new Exception("problem adding Header to the Response");
  				testResult = getTestResult(testResult,e);
  			}
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddHeader_1Test.java
  
  Index: AddHeader_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddHeader_1Test.java,v 1.1 1999/11/08 23:51:44 vanitha Exp $
   * $Date: 1999/11/08 23:51:44 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for AddHeader(String,Object) method
   */
  
  public class AddHeader_1Test extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("AddHeader_1Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  
  			String header="";
  			String headerKey="";
  
  			int count=0;
  
  			//we added a Cookie using addHeader the servlet
  			// loop and look for our header
  			//should not get more than on Cookie
  
  			for(int i=0;header!=null;i++) {
  
  				if(headerKey!=null &&
  					headerKey.trim().equals("Set-Cookie")) {
  					
  					count++;
  				}
  
  				headerKey=connection.getHeaderFieldKey(i);
  				header=connection.getHeaderField(i);
  			}
  
  
  			if(count==1) {
  
  				//pass
  
  				testResult = getTestResult(connection);
  			}
  			else {
  				Exception e = new Exception("problem adding Header to the Response");
  				testResult = getTestResult(testResult,e);
  			}
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddIntHeaderTest.java
  
  Index: AddIntHeaderTest.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddIntHeaderTest.java,v 1.1 1999/11/08 23:51:45 vanitha Exp $
   * $Date: 1999/11/08 23:51:45 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for AddIntHeader(String,int) method
   *	@ author Nikesh Anand
   */
  
  public class AddIntHeaderTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("AddIntHeaderTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  
  			
  			int count=0;
  
  			String header="";
  
  			// loop and look for 2 int headers we set
  			// check the header name also.
  
  			for(int i=0;header!=null;i++) {
  
  				if(header.equals("1") || 
  					header.equals("2")) {
  
  					if(connection.getHeaderFieldKey(i-1).equals("Set-Cookie")) {
  						count++;
  					}
  				}
  
  				header=connection.getHeaderField(i);
  			}
  
  			if(count==2)
  				testResult = getTestResult(connection);
  			else
  				testResult = getTestResult(testResult,new Exception("Problem adding IntHeader"));
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddIntHeader_1Test.java
  
  Index: AddIntHeader_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/AddIntHeader_1Test.java,v 1.1 1999/11/08 23:51:47 vanitha Exp $
   * $Date: 1999/11/08 23:51:47 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for AddIntHeader(String,int) method
   *	@ author Nikesh Anand
   */
  
  public class AddIntHeader_1Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("AddIntHeader_1Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			
  			int count=0;
  
  			String header="";
  			String headerKey="";
  
  			// loop and look for 2 int headers we set
  			// check the header name also.
  
  			for(int i=0;header!=null;i++) {
  
  
  				if(headerKey!=null &&
  					headerKey.equals("Set-Cookie")) {
  
  
  					if(header.equals("1"))
  						count++;
  
  				}
  
  				headerKey=connection.getHeaderFieldKey(i);
  				header=connection.getHeaderField(i);
  			}
  
  			if(count==1)
  				testResult = getTestResult(connection);
  			else
  				testResult = getTestResult(testResult,new Exception("Problem adding IntHeader"));
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/ContainsHeaderTest.java
  
  Index: ContainsHeaderTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/ContainsHeaderTest.java,v 1.1 1999/11/08 23:51:48 vanitha Exp $
   * $Date: 1999/11/08 23:51:48 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for containsHeader Method
   */
  
  public class ContainsHeaderTest extends ClientTest {
  
  /**
   *	containsHeader checks whether or not
   *	a ResponseHeader is set or not
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("ContainsHeaderTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/ContainsHeader_01Test.java
  
  Index: ContainsHeader_01Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/ContainsHeader_01Test.java,v 1.1 1999/11/08 23:51:51 vanitha Exp $
   * $Date: 1999/11/08 23:51:51 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Negative Test for ContainsHeader Method
   */
  
  public class ContainsHeader_01Test extends ClientTest {
  
  /**
   *	containsHeader checks whether or not
   *	a ResponseHeader is set or not
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("ContainsHeader_01Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		//just connect
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/EncodeRedirectURLTest.java
  
  Index: EncodeRedirectURLTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/EncodeRedirectURLTest.java,v 1.1 1999/11/08 23:51:55 vanitha Exp $
   * $Date: 1999/11/08 23:51:55 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for EncodeRedirectUrl(String) method
   */
  
  public class EncodeRedirectURLTest extends ClientTest {
  
  
  	/** DEscription aboout the Test */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("EncodeRedirectURLTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//connecting to the servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/EncodeRedirectURL_2Test.java
  
  Index: EncodeRedirectURL_2Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/EncodeRedirectURL_2Test.java,v 1.1 1999/11/08 23:51:56 vanitha Exp $
   * $Date: 1999/11/08 23:51:56 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for EncodeRedirectUrl(String) method
   */
  
  public class EncodeRedirectURL_2Test extends ClientTest {
  
  
  	/** DEscription aboout the Test */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("EncodeRedirectUrlTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//connecting to the servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/EncodeURLTest.java
  
  Index: EncodeURLTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/EncodeURLTest.java,v 1.1 1999/11/08 23:51:57 vanitha Exp $
   * $Date: 1999/11/08 23:51:57 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for EncodeURL Method
   */
  
  public class EncodeURLTest extends ClientTest {
  
  /**
   *	Deprecated method:Encodes the Specified URL
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("EncodeURLTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		try {
  
  			//get Connection to the servlet
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/EncodeURL_2Test.java
  
  Index: EncodeURL_2Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/EncodeURL_2Test.java,v 1.1 1999/11/08 23:51:59 vanitha Exp $
   * $Date: 1999/11/08 23:51:59 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for EncodeUrl Method
   */
  
  public class EncodeURL_2Test extends ClientTest {
  
  /**
   *	Deprecated method:Encodes the Specified URL
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("EncodeUrlTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		try {
  
  			//get Connection to the servlet
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SendErrorTest.java
  
  Index: SendErrorTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SendErrorTest.java,v 1.1 1999/11/08 23:52:00 vanitha Exp $
   * $Date: 1999/11/08 23:52:00 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.net.URL;
  import java.io.PrintWriter;
  import java.io.InputStream;
  import java.io.IOException;
  import java.net.MalformedURLException;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for SendError(int,String) method
   */
  
  public class SendErrorTest extends ClientTest {
  
  /**
   *	Sends an error code with a messgae and commits the Response Code
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SendErrorTest.description");
  	}
  
  	public TestResult runTest(){
  
  		TestResult testResult = null;
  
  		try {
  
  			HttpURLConnection connection = getConnection();
  
  			InputStream is = connection.getInputStream();
  
  			StringBuffer sb = new StringBuffer();
  			byte buffer[] = new byte[64];
  			int count=0;
  			String st=null;
  
  			do {
  				st = new String(buffer,0,count);
  				sb.append(st);
  				count=is.read(buffer,0,buffer.length);
  			}while(count!=-1);
  
  			st = sb.toString();
  
  
  			// if 100 is there pass it
  
  			if(st.indexOf("100")>-1) {
  				testResult = getTestResult(connection);
  			}
  			else {
  				testResult=getTestResult(testResult,new Exception(" Wrong status code"));
  			}
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SendError_01Test.java
  
  Index: SendError_01Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SendError_01Test.java,v 1.1 1999/11/08 23:52:02 vanitha Exp $
   * $Date: 1999/11/08 23:52:02 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  import java.io.InputStream;
  import java.io.FileNotFoundException;
  
  /**
   *	Test for SendError(int) method
   */
  
  public class SendError_01Test extends ClientTest {
  
  
  /**
   *	Sends an error code and commits the Response Code
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SendError_01Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		HttpURLConnection connection=null;
  
  		try {
  			connection = getConnection();
  
  			InputStream is = connection.getInputStream();
  
  			StringBuffer sb = new StringBuffer();
  			byte buffer[] = new byte[64];
  			int count=0;
  			String st=null;
  
  			int status =connection.getResponseCode();
  
  			//reading response
  
  			do {
  				st = new String(buffer,0,count);
  				sb.append(st);
  				count=is.read(buffer,0,buffer.length);
  			}while(count!=-1);
  
  			System.out.println(st);
  
  			st = sb.toString();
  
  			//if 100 is there in the read dsta pass it
  			// we SentError with code 100
  
  			if(st.indexOf("100")>-1) {
  				testResult = getTestResult(connection);
  			}
  			else
  				testResult=getTestResult(testResult,new Exception(" Wrong status code"));
  
  
  
  		} catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SendRedirectTest.java
  
  Index: SendRedirectTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SendRedirectTest.java,v 1.1 1999/11/08 23:52:03 vanitha Exp $
   * $Date: 1999/11/08 23:52:03 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  //import com.sun.moo.servlet.ClientTest;
  //import com.sun.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.InputStream;
  import java.io.PrintWriter;
  import java.io.IOException;
  import java.net.URL;
  import java.net.HttpURLConnection;
  import org.apache.tools.moo.servlet.*;
  import org.apache.tools.moo.*;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Client side for sendRedirect method
   */
  
  public class SendRedirectTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SendRedirectTest.description");
  	}
  
  	/**
  	  * Overriding the ClientTest method because
  	  * the getconnection method in ClientTest sets FollowRedirects tp false while the
  	  * default is true.
  	  */
  
  	public HttpURLConnection getConnection(Hashtable Headers,
  		String path,String query,String method) throws Exception {
  
  		HttpURLConnection connection=null;
  
  		String mapResource = this.getClass().getName(); //getting this class's name
  
  		/*
  		 * Maps client side test to the server side test
  		 */
  
  		MapManager mapManager = new MapManager();
  
  		String testResource = mapManager.get(mapResource);
  
  		if(testResource == null) {
  
  			throw new NullPointerException("bad resource:");
  		}
  
  		/* Helps to get the absolute path */
  
  		URL url = URLHelper.getURL(testResource);
  
  		connection =(HttpURLConnection) url.openConnection();
  
  		connection.setDoOutput(true);
  		connection.setDoInput(true);
  		connection.setUseCaches(false);
  
  		try {
  			connection.connect();
  		}catch(IOException ioe) {
  
  			out.println("Could not establish connection");
  			throw ioe;
  		}
  
  		return connection;
  
  	}
  
  	/**
  	 *  SendRedirect client side test:
  	 *  checks for status code 302
  	 *  which is a temporary redirect reponse from the servlet to the client
  	 */
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = this.getConnection();
  
  			/* only if it is 302 pass it */
  
  			if(connection.getResponseCode()==302)
  				testResult = getTestResult(connection);
  			else {
  
  				/**fails, setting an exception **/
  
  				Exception e=new Exception("Problem with SendRedirect");
  				testResult = getTestResult(testResult,e);
  			}
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  
  	/* considering only statuscode 302
  	 * if so setting the Status of the testResult to true
  	 */
  	public TestResult getTestResult(HttpURLConnection connection) throws Exception {
  
  
  		TestResult testResult= new TestResult();
  
  		int code = connection.getResponseCode();
  
  		if(code==302) {
  
  			testResult.setStatus(true);
  		}
  
  		return testResult;
  
  	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SendRedirect_1Test.java
  
  Index: SendRedirect_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SendRedirect_1Test.java,v 1.1 1999/11/08 23:52:04 vanitha Exp $
   * $Date: 1999/11/08 23:52:04 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Negative Test for SendRedirect(int,String) method
   */
  
  public class SendRedirect_1Test extends ClientTest {
  
  
  /**
   * SendRedirect redirects the client to a temp new location
   *
   */
  
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SendRedirect_1Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		// just connect
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetDateHeaderTest.java
  
  Index: SetDateHeaderTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetDateHeaderTest.java,v 1.1 1999/11/08 23:52:06 vanitha Exp $
   * $Date: 1999/11/08 23:52:06 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for setDataHeader(String,long) method
   */
  
  
  public class SetDateHeaderTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetDateHeaderTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  
  			//get the set field from the reponse
  
  			String ate = connection.getHeaderField("From");
  
  			if(ate==null) {
  					testResult=getTestResult(testResult,new Exception("Value wrong"));
  			}
  			else
  				testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetDateHeader_1Test.java
  
  Index: SetDateHeader_1Test.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetDateHeader_1Test.java,v 1.1 1999/11/08 23:52:08 vanitha Exp $
   * $Date: 1999/11/08 23:52:08 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test for setDataHeader(String,long) method
   */
  
  
  public class SetDateHeader_1Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetDateHeader_1Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  
  			//get the set field from the reponse
  
  			String ate = connection.getHeaderField("Set-Cookie");
  
  			if(ate==null) {
  					testResult=getTestResult(testResult,new Exception("Value wrong"));
  			}
  			else { 
  				try {
  				
  					java.util.Date.parse(ate);
  
  					if(ate.equals("Thu, 15 Jan 1970 06:56:07 GMT"))
  						testResult = getTestResult(connection);
  					else 
  						testResult=getTestResult(testResult,new Exception("Wrong Value"));
  
  				}catch(IllegalArgumentException iae) {
  
  					testResult=getTestResult(testResult,new Exception("Wrong Date Format"));
  				}
  			}
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetHeaderTest.java
  
  Index: SetHeaderTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetHeaderTest.java,v 1.1 1999/11/08 23:52:10 vanitha Exp $
   * $Date: 1999/11/08 23:52:10 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for SetHeader(int,String) method
   */
  
  public class SetHeaderTest extends ClientTest {
  
  
  /**
   * sets a header field for the response object
   */
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetHeaderTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  
  			//getting set header field
  			String header = connection.getHeaderField("From");
  			if(header!=null)
  
  				//pass
  
  				testResult = getTestResult(connection);
  			else {
  				Exception e = new Exception("problem setting Header");
  				testResult = getTestResult(testResult,e);
  			}
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetHeader_1Test.java
  
  Index: SetHeader_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetHeader_1Test.java,v 1.1 1999/11/08 23:52:12 vanitha Exp $
   * $Date: 1999/11/08 23:52:12 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for setHeader(String,Object) method
   *	@author Nikesh Anand R
   */
  
  public class SetHeader_1Test extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetHeader_1Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			//getting set header field
  
  			// In the servlet, 2 times we set different values
  			// for same name.
  			// we should get the value which was set second here.
  
  			String header = connection.getHeaderField("Set-Cookie");
  
  			if(header.equals("Preserved=true"))
  
  				//pass
  
  				testResult = getTestResult(connection);
  			else {
  				Exception e = new Exception("problem setting Header:Did not flush the first set value");
  				testResult = getTestResult(testResult,e);
  			}
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetIntHeaderTest.java
  
  Index: SetIntHeaderTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetIntHeaderTest.java,v 1.1 1999/11/08 23:52:13 vanitha Exp $
   * $Date: 1999/11/08 23:52:13 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for setIntHeader(String,int) method
   */
  
  public class SetIntHeaderTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetIntHeaderTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  
  			// getting value from the Servlet
  
  			String value=connection.getHeaderField("From");
  
  			if(value==null)
  
  				testResult = getTestResult(testResult,new Exception("failed to set int header value"));
  			else if(value.equals("20")) {
  
  				//passes
  
  				testResult = getTestResult(connection);
  			}
  			else
  				testResult = getTestResult(testResult,new Exception("setHeader set wrong value"));
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetIntHeader_1Test.java
  
  Index: SetIntHeader_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetIntHeader_1Test.java,v 1.1 1999/11/08 23:52:15 vanitha Exp $
   * $Date: 1999/11/08 23:52:15 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for setIntHeader(String,int) method
   */
  
  public class SetIntHeader_1Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetIntHeader_1Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  
  			// getting value from the Servlet
  
  			String value=connection.getHeaderField("Set-Cookie");
  
  			if(value==null)
  
  				testResult = getTestResult(testResult,new Exception("failed to set int header value"));
  			else if(value.equals("10")) {
  
  				//passes
  
  				testResult = getTestResult(connection);
  			}
  			else
  				testResult = getTestResult(testResult,new Exception("set wrong value"));
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetStatusTest.java
  
  Index: SetStatusTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetStatusTest.java,v 1.1 1999/11/08 23:52:16 vanitha Exp $
   * $Date: 1999/11/08 23:52:16 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  
  /**
   *	Test for SetStatus(int) method
   */
  
  public class SetStatusTest extends ClientTest {
  
  /**
   * 	setStatus sets the status code for the Response object
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetStatusTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  
  			//ServletTest sets responsecode to 200
  
  			if(connection.getResponseCode()!=200)
  
  				testResult=getTestResult(testResult,new Exception("Returned Wrong Status Code"));
  			else
  				testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetStatus_1Test.java
  
  Index: SetStatus_1Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpServletResponse/SetStatus_1Test.java,v 1.1 1999/11/08 23:52:17 vanitha Exp $
   * $Date: 1999/11/08 23:52:17 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpServletResponse;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.util.Vector;
  import java.util.Hashtable;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  
  /**
   *	Test for SetStatus(int,String) method
   */
  
  public class SetStatus_1Test extends ClientTest {
  
  /**
   * 	setStatus sets the status code for the Response object
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("SetStatus_1Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			HttpURLConnection connection = getConnection();
  
  			// in the servlet side we set it to 200
  
  			if(connection.getResponseCode()!=200)
  
  				testResult=getTestResult(testResult,new Exception("Returned Wrong Status Code"));
  			else
  				testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetAttributeNamesTest.java
  
  Index: GetAttributeNamesTest.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetAttributeNamesTest.java,v 1.1 1999/11/08 23:52:25 vanitha Exp $
   * $Date: 1999/11/08 23:52:25 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpSession;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for GetAttributeNames method
   */
  
  public class GetAttributeNamesTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("HSGetAttributeNamesTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			//connect to the servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetAttributeNames_01Test.java
  
  Index: GetAttributeNames_01Test.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetAttributeNames_01Test.java,v 1.1 1999/11/08 23:52:26 vanitha Exp $
   * $Date: 1999/11/08 23:52:26 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpSession;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Negative Test for GetAttributeNames  method
   */
  
  public class GetAttributeNames_01Test extends ClientTest {
  
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("HSGetAttributeNames_01Test.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			// connect to the Servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetAttributeTest.java
  
  Index: GetAttributeTest.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetAttributeTest.java,v 1.1 1999/11/08 23:52:32 vanitha Exp $
   * $Date: 1999/11/08 23:52:32 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpSession;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import java.io.ByteArrayOutputStream;
  import java.io.PrintWriter;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for GetAttribute(String)  method
   */
  
  public class GetAttributeTest extends ClientTest {
  
  
  /**
   * 	returns the value for the specified name
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("HSGetAttributeTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetAttribute_01Test.java
  
  Index: GetAttribute_01Test.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetAttribute_01Test.java,v 1.1 1999/11/08 23:52:34 vanitha Exp $
   * $Date: 1999/11/08 23:52:34 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpSession;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negative Test for GetAttribute(String)  method
   */
  
  public class GetAttribute_01Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("HSGetAttribute_01Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		// just connect
  
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetAttribute_02Test.java
  
  Index: GetAttribute_02Test.java
  ===================================================================
  
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetAttribute_02Test.java,v 1.1 1999/11/08 23:52:37 vanitha Exp $
   * $Date: 1999/11/08 23:52:37 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpSession;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Negative Test for GetAttribute(String)  method
   */
  
  public class GetAttribute_02Test extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("HSGetAttribute_02Test.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetCreationTimeTest.java
  
  Index: GetCreationTimeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetCreationTimeTest.java,v 1.1 1999/11/08 23:52:38 vanitha Exp $
   * $Date: 1999/11/08 23:52:38 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpSession;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test For GetCreationTime
   */
  
  public class GetCreationTimeTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetCreationTimeTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		try {
  			//Connect to the Servlet
  
  			HttpURLConnection connection = getConnection();
  
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetIdTest.java
  
  Index: GetIdTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetIdTest.java,v 1.1 1999/11/08 23:52:40 vanitha Exp $
   * $Date: 1999/11/08 23:52:40 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpSession;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test For GetIdTest
   */
  
  
  public class GetIdTest extends ClientTest {
  
  
  /**
   * 	getId gets the current session id
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetIdTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		try {
  			//connect to Servlet
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetLastAccessedTimeTest.java
  
  Index: GetLastAccessedTimeTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetLastAccessedTimeTest.java,v 1.1 1999/11/08 23:52:42 vanitha Exp $
   * $Date: 1999/11/08 23:52:42 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpSession;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test For getLastAccessedTime
   */
  
  
  public class GetLastAccessedTimeTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetLastAccessedTimeTest.description");
  	}
  
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		// just connect to the servlet
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetMaxInactiveIntervalTest.java
  
  Index: GetMaxInactiveIntervalTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetMaxInactiveIntervalTest.java,v 1.1 1999/11/08 23:52:44 vanitha Exp $
   * $Date: 1999/11/08 23:52:44 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpSession;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test For GetMaxInactiveInterval method
   */
  
  
  public class GetMaxInactiveIntervalTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetMaxInactiveIntervalTest.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  
  		// connect to ther Servlet
  		try {
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetMaxInactiveInterval_01Test.java
  
  Index: GetMaxInactiveInterval_01Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetMaxInactiveInterval_01Test.java,v 1.1 1999/11/08 23:52:46 vanitha Exp $
   * $Date: 1999/11/08 23:52:46 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpSession;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Negetive Test For GetMaxInactiveInterval
   */
  
  
  public class GetMaxInactiveInterval_01Test extends ClientTest {
  
  	// Description about The Test
  	public String getDescription() {
  
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetMaxInactiveInterval_01Test.description");
  	}
  	public TestResult runTest() {
  
  		TestResult testResult = null;
  		try {
  			//connecting to Servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetSessionContextTest.java
  
  Index: GetSessionContextTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetSessionContextTest.java,v 1.1 1999/11/08 23:52:48 vanitha Exp $
   * $Date: 1999/11/08 23:52:48 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpSession;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  /**
   *	Test For GetSessionContext method
   */
  
  
  public class GetSessionContextTest extends ClientTest {
  
  
  /**
   * 	Deprecated method:returns an empty HttpSessionContext Object
   */
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetSessionContextTest.description");
  	}
  	public TestResult runTest() {
  		TestResult testResult = null;
  
  		try {
  			//connect to Servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetValueNamesTest.java
  
  Index: GetValueNamesTest.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetValueNamesTest.java,v 1.1 1999/11/08 23:52:52 vanitha Exp $
   * $Date: 1999/11/08 23:52:52 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpSession;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Test for GetValueNames method
   */
  
  public class GetValueNamesTest extends ClientTest {
  
  	public String getDescription() {
  
  		StringManager sm = StringManager.getManager(UtilConstants.Package);
  		return sm.getString("GetValueNamesTest.description");
  	}
  
  	public TestResult runTest() {
  		TestResult testResult = null;
  		try {
  			//connect to the servlet
  
  			HttpURLConnection connection = getConnection();
  			testResult = getTestResult(connection);
  
  		}catch(Exception e) {
  			testResult = getTestResult(testResult,e);
  		}
  
  		return testResult;
   	}
  }
  
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetValueNames_01Test.java
  
  Index: GetValueNames_01Test.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-watchdog/src/clients/org/apache/jcheck/servlet/client/javax_servlet_http/HttpSession/GetValueNames_01Test.java,v 1.1 1999/11/08 23:52:55 vanitha Exp $
   * $Date: 1999/11/08 23:52:55 $
   *
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  package org.apache.jcheck.servlet.client.javax_servlet_http.HttpSession;
  
  import org.apache.tools.moo.servlet.ClientTest;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  import org.apache.jcheck.servlet.util.StringManager;
  import org.apache.jcheck.servlet.util.UtilConstants;
  
  
  /**
   *	Negative Test for GetValueNames  method