01: /*
02:
03: Derby - org.apache.derbyTesting.functionTests.tests.upgradeTests.Upgrade_10_1_10_2
04:
05: Licensed to the Apache Software Foundation (ASF) under one or more
06: contributor license agreements. See the NOTICE file distributed with
07: this work for additional information regarding copyright ownership.
08: The ASF licenses this file to You under the Apache License, Version 2.0
09: (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: package org.apache.derbyTesting.functionTests.tests.upgradeTests;
22:
23: import java.net.MalformedURLException;
24: import java.sql.SQLException;
25:
26: /**
27: * Test upgrade from 10.1 to 10.2
28: */
29: public class Upgrade_10_1_10_2 {
30:
31: public static void main(String[] args) {
32:
33: int oldMajorVersion = 10;
34: int oldMinorVersion = 1;
35: int newMajorVersion = 10;
36: int newMinorVersion = 2;
37: boolean allowPreReleaseUpgrade = true;
38:
39: try {
40: UpgradeTester upgradeTester = new UpgradeTester(
41: oldMajorVersion, oldMinorVersion, newMajorVersion,
42: newMinorVersion, allowPreReleaseUpgrade);
43: upgradeTester.runUpgradeTests();
44: } catch (MalformedURLException mue) {
45: System.out.println("MalformedURLException: "
46: + mue.getMessage());
47: mue.printStackTrace();
48: } catch (SQLException sqle) {
49: System.out.println("SQLException:");
50: UpgradeTester.dumpSQLExceptions(sqle);
51: } catch (Exception e) {
52: System.out.println("Exception: " + e.getMessage());
53: e.printStackTrace();
54: }
55: }
56: }
|