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/jsp/client/core_syntax/implicitobjects checkApplication.java checkConfig.java checkException.java checkOut.java checkPage.java checkPageContext.java checkRequest.java checkResponse.java checkSession.java
Date Fri, 05 Nov 1999 05:50:09 GMT
vanitha     99/11/04 21:50:09

  Added:       src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects
                        checkApplication.java checkConfig.java
                        checkException.java checkOut.java checkPage.java
                        checkPageContext.java checkRequest.java
                        checkResponse.java checkSession.java
  Log:
  Add jsp tests
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkApplication.java
  
  Index: checkApplication.java
  ===================================================================
  /*
  
     $Header: /home/cvs/jakarta-check/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkApplication
   * 
   *  
   * 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/>.
   *
   */
  
  
  
  
  
  /*  checkApplication.java  */
  
  
  
  
  
  
  package org.apache.jcheck.jsp.client.core_syntax.implicitobjects;
  
  import org.apache.tools.moo.jsp.*;
  import org.apache.jcheck.jsp.util.*;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  
  public class checkApplication extends PositiveJspCheckTest{
  
       StringManager sm= StringManager.getManager(UtilConstants.Package);
       
       public String getDescription()
         {
            return sm.getString("checkApplication.description");
         }
         
       public String getGoldenFile()   
       
         {
             return sm.getString("checkApplication.goldenFile");  
             
         }
         
         
       public TestResult runTest()      
       
          {
              TestResult tr=new TestResult();
              
              try{
              
                      
                      setGoldenFileName(getGoldenFile());
                      HttpURLConnection conn=getConnection(null,null,null,"GET");
                      tr=getTestResult(conn);
                      
                  }catch(Exception e){
                      
                        tr= getTestResult(tr,e);
                        
                   }
                   
               return tr;
                                     
           } 
     }                         
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkConfig.java
  
  Index: checkConfig.java
  ===================================================================
  /*
  
     $Header: /home/cvs/jakarta-check/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkConfig
   * 
   *  
   * 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/>.
   *
   */
  
  
  
  /*   checkConfig  */
  
  
  
  
  
  
  
  package org.apache.jcheck.jsp.client.core_syntax.implicitobjects;
  
  import org.apache.tools.moo.jsp.*;
  import org.apache.tools.moo.TestResult;
  import org.apache.jcheck.jsp.util.*;
  import java.net.HttpURLConnection;
  
  public class checkConfig extends PositiveJspCheckTest{
  
       StringManager sm= StringManager.getManager(UtilConstants.Package);
       
       public String getDescription()
         {
            return sm.getString("checkConfig.description");
         }
         
       public String getGoldenFile()   
       
         {
             return sm.getString("checkConfig.goldenFile");  
             
         }
         
         
       public TestResult runTest()      
       
          {
              TestResult tr=new TestResult();
              
              try{
              
                      
                      setGoldenFileName(getGoldenFile());
                      HttpURLConnection conn=getConnection(null,null,null,"GET");
                      tr=getTestResult(conn);
                      
                  }catch(Exception e){
                      
                        tr= getTestResult(tr,e);
                        
                   }
                   
               return tr;
                                     
           } 
     }                         
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkException.java
  
  Index: checkException.java
  ===================================================================
  /*
  
     $Header: /home/cvs/jakarta-check/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkException
   * 
   *  
   * 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/>.
   *
   */
  
  
  
  /*    checkException   */
  
  
  
  
  
  
  package org.apache.jcheck.jsp.client.core_syntax.implicitobjects;
  
  import org.apache.tools.moo.jsp.*;
  import org.apache.tools.moo.TestResult;
  import org.apache.jcheck.jsp.util.*;
  import java.net.HttpURLConnection;
  
  public class checkException extends PositiveJspCheckTest{
  
       StringManager sm= StringManager.getManager(UtilConstants.Package);
       
       public String getDescription()
         {
            return sm.getString("checkException.description");
         }
         
       public String getGoldenFile()   
       
         {
             return sm.getString("checkException.goldenFile");  
             
         }
         
         
       public TestResult runTest()      
       
          {
              TestResult tr=new TestResult();
              
              try{
              
                      
                      setGoldenFileName(getGoldenFile());
                      HttpURLConnection conn=getConnection(null,null,null,"GET");
                      tr=getTestResult(conn);
                      
                  }catch(Exception e){
                      
                        tr= getTestResult(tr,e);
                        
                   }
                   
               return tr;
                                     
           } 
     }                         
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkOut.java
  
  Index: checkOut.java
  ===================================================================
  /*
  
     $Header: /home/cvs/jakarta-check/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkOut
   * 
   *  
   * 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/>.
   *
   */
  
  
  
  
  /*   checkOut   */
  
  
  
  
  
  
  package org.apache.jcheck.jsp.client.core_syntax.implicitobjects;
  
  import org.apache.tools.moo.jsp.*;
  import org.apache.tools.moo.TestResult;
  import org.apache.jcheck.jsp.util.*;
  import java.net.HttpURLConnection;
  
  public class checkOut extends PositiveJspCheckTest{
  
       StringManager sm= StringManager.getManager(UtilConstants.Package);
       
       public String getDescription()
         {
            return sm.getString("checkOut.description");
         }
         
       public String getGoldenFile()   
       
         {
             return sm.getString("checkOut.goldenFile");  
             
         }
         
         
       public TestResult runTest()      
       
          {
              TestResult tr=new TestResult();
              
              try{
              
              
                      setGoldenFileName(getGoldenFile());
                      HttpURLConnection conn=getConnection(null,null,null,"GET");
                      tr=getTestResult(conn);
                      
                  }catch(Exception e){
                      
                        tr= getTestResult(tr,e);
                        
                   }
                   
               return tr;
                                     
           } 
     }                         
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkPage.java
  
  Index: checkPage.java
  ===================================================================
  /*
  
     $Header: /home/cvs/jakarta-check/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkPage
   * 
   *  
   * 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/>.
   *
   */
  
  
  
  /*  checkPage   */
  
  
  
  
  
  
  package org.apache.jcheck.jsp.client.core_syntax.implicitobjects;
  
  import org.apache.tools.moo.jsp.*;
  import org.apache.tools.moo.TestResult;
  import org.apache.jcheck.jsp.util.*;
  import java.net.HttpURLConnection;
  
  public class checkPage extends PositiveJspCheckTest{
  
       StringManager sm= StringManager.getManager(UtilConstants.Package);
       
       public String getDescription()
         {
            return sm.getString("checkPage.description");
         }
         
       public String getGoldenFile()   
       
         {
             return sm.getString("checkPage.goldenFile");  
             
         }
         
         
       public TestResult runTest()      
       
          {
              TestResult tr=new TestResult();
              
              try{
              
                      
                      setGoldenFileName(getGoldenFile());
                      HttpURLConnection conn=getConnection(null,null,null,"GET");
                      tr=getTestResult(conn);
                      
                  }catch(Exception e){
                      
                        tr= getTestResult(tr,e);
                        
                   }
                   
               return tr;
                                     
           } 
     }                         
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkPageContext.java
  
  Index: checkPageContext.java
  ===================================================================
  /*
  
     $Header: /home/cvs/jakarta-check/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkPageContext
   * 
   *  
   * 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/>.
   *
   */
  
  
  
  
  /*   checkPageContext  */
  
  
  
  
  
  
  package org.apache.jcheck.jsp.client.core_syntax.implicitobjects;
  
  import org.apache.tools.moo.jsp.*;
  import org.apache.tools.moo.TestResult;
  import org.apache.jcheck.jsp.util.*;
  import java.net.HttpURLConnection;
  
  public class checkPageContext extends PositiveJspCheckTest{
  
       StringManager sm= StringManager.getManager(UtilConstants.Package);
       
       public String getDescription()
         {
            return sm.getString("checkPageContext.description");
         }
         
       public String getGoldenFile()   
       
         {
             return sm.getString("checkPageContext.goldenFile");  
             
         }
         
         
       public TestResult runTest()      
       
          {
              TestResult tr=new TestResult();
              
              try{
              
                      
                      setGoldenFileName(getGoldenFile());
                      HttpURLConnection conn=getConnection(null,null,null,"GET");
                      tr=getTestResult(conn);
                      
                  }catch(Exception e){
                      
                        tr= getTestResult(tr,e);
                        
                   }
                   
               return tr;
                                     
           } 
     }                         
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkRequest.java
  
  Index: checkRequest.java
  ===================================================================
  /*
  
     $Header: /home/cvs/jakarta-check/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkRequest
   * 
   *  
   * 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/>.
   *
   */
  
  
  
  /*  checkRequest  */
  
  
  
  
  package org.apache.jcheck.jsp.client.core_syntax.implicitobjects;
  
  import org.apache.tools.moo.jsp.*;
  import org.apache.tools.moo.TestResult;
  import org.apache.jcheck.jsp.util.*;
  import java.net.HttpURLConnection;
  import java.util.Hashtable;
  
  public class checkRequest extends PositiveJspCheckTest{
  
       StringManager sm= StringManager.getManager(UtilConstants.Package);
       Hashtable query=new Hashtable();
       String key="Years";
       String value="2";
       
       
       public String getDescription()
         {
            return sm.getString("checkRequest.description");
         }
         
       public String getGoldenFile()   
       
         {
             return sm.getString("checkRequest.goldenFile");  
             
         }
         
         
       public TestResult runTest()      
       
          {
              TestResult tr=new TestResult();
              query.put(key,value);
              
              try{
              
                      
                      setGoldenFileName(getGoldenFile());
                      HttpURLConnection conn=getConnection(null,query,null,"GET");
                      tr=getTestResult(conn);
                      
                  }catch(Exception e){
                      
                        tr= getTestResult(tr,e);
                        
                   }
                   
               return tr;
                                     
           } 
     }                         
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkResponse.java
  
  Index: checkResponse.java
  ===================================================================
  /*
  
     $Header: /home/cvs/jakarta-check/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkResponse
   * 
   *  
   * 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/>.
   *
   */
  
  
  
  /* checkResponse   */
  
  
  
  
  
  package org.apache.jcheck.jsp.client.core_syntax.implicitobjects;
  
  import org.apache.tools.moo.jsp.*;
  import org.apache.tools.moo.TestResult;
  import org.apache.jcheck.jsp.util.*;
  import java.net.HttpURLConnection;
  
  public class checkResponse extends PositiveJspCheckTest{
  
       StringManager sm= StringManager.getManager(UtilConstants.Package);
       
       public String getDescription()
         {
            return sm.getString("checkResponse.description");
         }
         
       public String getGoldenFile()   
       
         {
             return sm.getString("checkResponse.goldenFile");  
             
         }
         
         
       public TestResult runTest()      
       
          {
              TestResult tr=new TestResult();
              
              try{
              
                      
                      setGoldenFileName(getGoldenFile());
                      HttpURLConnection conn=getConnection(null,null,null,"GET");
                      tr=getTestResult(conn);
                      
                  }catch(Exception e){
                      
                        tr= getTestResult(tr,e);
                        
                   }
                   
               return tr;
                                     
           } 
     }                         
  
  
  1.1                  jakarta-watchdog/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkSession.java
  
  Index: checkSession.java
  ===================================================================
  /*
  
     $Header: /home/cvs/jakarta-check/src/clients/org/apache/jcheck/jsp/client/core_syntax/implicitobjects/checkSession
   * 
   *  
   * 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/>.
   *
   */
  
  
  /*  checkSession   */
  
  
  
  
  package org.apache.jcheck.jsp.client.core_syntax.implicitobjects;
  
  
  
  import org.apache.jcheck.jsp.util.*;
  import org.apache.tools.moo.jsp.*;
  import org.apache.tools.moo.TestResult;
  import java.net.HttpURLConnection;
  
  public class checkSession extends PositiveJspCheckTest{
  
       StringManager sm= StringManager.getManager(UtilConstants.Package);
       
       public String getDescription()
         {
            return sm.getString("checkSession.description");
         }
         
       public String getGoldenFile()   
       
         {
             return sm.getString("checkSession.goldenFile");  
             
         }
         
         
       public TestResult runTest()      
       
          {
              TestResult tr=new TestResult();
              
              try{
              
                      
                      setGoldenFileName(getGoldenFile());
                      HttpURLConnection conn=getConnection(null,null,null,"GET");
                      tr=getTestResult(conn);
                      
                  }catch(Exception e){
                      
                        tr= getTestResult(tr,e);
                        
                   }
                   
               return tr;
                                     
           } 
     }                         
  
  

Mime
View raw message