Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/apache/derby/impl/drda/TestFile.java


1   /*
2   
3      Derby - Class org.apache.derby.impl.drda.TestFile
4   
5      Copyright 2002, 2004 The Apache Software Foundation or its licensors, as applicable.
6   
7      Licensed under the Apache License, Version 2.0 (the "License");
8      you may not use this file except in compliance with the License.
9      You may obtain a copy of the License at
10  
11        http://www.apache.org/licenses/LICENSE-2.0
12  
13     Unless required by applicable law or agreed to in writing, software
14     distributed under the License is distributed on an "AS IS" BASIS,
15     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16     See the License for the specific language governing permissions and
17     limitations under the License.
18  
19   */
20  
21  package org.apache.derby.impl.drda;
22  
23  
24  /**
25    This tests protocol errors and protocol not used by JCC
26    The file containing the test is given as an argument
27  */
28  
29  public class TestFile{
30  
31    
32    // constructor
33    private TestFile() {}
34    
35  
36    /**
37     * main routine
38     */
39      public static void main(String[] args) {
40      
41      if (args.length != 1)
42      {
43        System.err.println ("Usage: testFile <filename>");
44        System.exit(1);
45      }
46      executeFile(args[0]);
47    }
48    /**
49     * Execute a command file against a network server
50     *
51     * @param filename name of file to execute
52     */
53    public static void executeFile(String filename)
54    {
55      TestProto t = new TestProto(filename);
56    }
57  }