KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > impl > drda > TestFile


1 /*
2
3    Derby - Class org.apache.derby.impl.drda.TestFile
4
5    Licensed to the Apache Software Foundation (ASF) under one or more
6    contributor license agreements. See the NOTICE file distributed with
7    this work for additional information regarding copyright ownership.
8    The ASF licenses this file to You under the Apache License, Version 2.0
9    (the "License"); you may not use this file except in compliance with
10    the License. You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14    Unless required by applicable law or agreed to in writing, software
15    distributed under the License is distributed on an "AS IS" BASIS,
16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17    See the License for the specific language governing permissions and
18    limitations under the License.
19
20  */

21
22 package org.apache.derby.impl.drda;
23
24
25 /**
26     This tests protocol errors and protocol not used by JCC
27     The file containing the test is given as an argument
28 */

29
30 public class TestFile{
31
32     
33     // constructor
34
private TestFile() {}
35     
36
37     /**
38      * main routine
39      */

40     public static void main(String JavaDoc[] args) {
41         
42         if (args.length != 1)
43         {
44             System.err.println ("Usage: testFile <filename>");
45             System.exit(1);
46         }
47         executeFile(args[0]);
48     }
49     /**
50      * Execute a command file against a network server
51      *
52      * @param filename name of file to execute
53      */

54     public static void executeFile(String JavaDoc filename)
55     {
56         TestProto t = new TestProto(filename);
57     }
58 }
59
Popular Tags