|
|
package hsfulda.de;
/** * Hello world! * */ public class App { public static void main(String[] args) {
String usernameTest = "VDBS41"; String passwordTest = "VDBS41";
String usernameValidation = "VDBS42"; String passwordValidation = "VDBS42";
FedConnection fedConnection;
/* * Test schema */ try { fedConnection = (new FedPseudoDriver()).getConnection(usernameTest, passwordTest);
FedTestEnvironment fedTestEvironment = new FedTestEnvironment(fedConnection);
fedTestEvironment.run("Test/DRPTABS.SQL", false); fedTestEvironment.run("Test/CREPARTABS.SQL", false); fedTestEvironment.run("Test/INSERTAIRPORTS.SQL", false); fedTestEvironment.run("Test/INSERTAIRLINES.SQL", false); fedTestEvironment.run("Test/INSERTPASSENGERS.SQL", false); fedTestEvironment.run("Test/INSERTFLIGHTS.SQL", false); fedTestEvironment.run("Test/INSERTBOOKINGS.SQL", false);
fedTestEvironment.run("Test/PARSELS1T.SQL", true); fedTestEvironment.run("Test/PARSELS1TGP.SQL", true); fedTestEvironment.run("Test/PARSELS1OR.SQL", true); fedTestEvironment.run("Test/PARSELSJOIN1.SQL", true); fedTestEvironment.run("Test/PARUPDS.SQL", true); fedTestEvironment.run("Test/PARINSERTS.SQL", true); fedTestEvironment.run("Test/PARDELS.SQL", true); } catch (FedException fedException) { fedException.printStackTrace(); }
/* * Validation schema */ try { fedConnection = (new FedPseudoDriver()).getConnection(usernameValidation, passwordValidation);
FedTestEnvironment fedTestEvironment = new FedTestEnvironment(fedConnection);
fedTestEvironment.run("Validation/DRPTABS.SQL", false); fedTestEvironment.run("Validation/CREPARTABS.SQL", false); fedTestEvironment.run("Validation/INSERTAIRPORTS.SQL", false); fedTestEvironment.run("Validation/INSERTAIRLINES.SQL", false); fedTestEvironment.run("Validation/INSERTPASSENGERS.SQL", false); fedTestEvironment.run("Validation/INSERTFLIGHTS.SQL", false); fedTestEvironment.run("Validation/INSERTBOOKINGS.SQL", false);
fedTestEvironment.run("Validation/INSERT-PASSAGIER-10K-5.SQL", false); fedTestEvironment.run("Validation/INSERT-BUCHUNG-10K-5.SQL", false);
fedTestEvironment.run("Validation/PARSEL1TSmall.SQL", true); fedTestEvironment.run("Validation/PARSEL1TLarge.SQL", true); fedTestEvironment.run("Validation/PARSEL1TGPSmall.SQL", true); fedTestEvironment.run("Validation/PARSEL1TGPLarge.SQL", true); fedTestEvironment.run("Validation/PARSEL1TOR.SQL", true); fedTestEvironment.run("Validation/PARSELJOINNormal.SQL", true); fedTestEvironment.run("Validation/PARSELJOINSpecial.SQL", true);
} catch (FedException fedException) { fedException.printStackTrace(); } }}
|