You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
3.1 KiB

7 years ago
  1. package hsfulda.de;
  2. /**
  3. * Hello world!
  4. *
  5. */
  6. public class App
  7. {
  8. public static void main(String[] args) {
  9. String usernameTest = "VDBS41";
  10. String passwordTest = "VDBS41";
  11. String usernameValidation = "VDBS42";
  12. String passwordValidation = "VDBS42";
  13. FedConnection fedConnection;
  14. /*
  15. * Test schema
  16. */
  17. try {
  18. fedConnection = (new FedPseudoDriver()).getConnection(usernameTest, passwordTest);
  19. FedTestEnvironment fedTestEvironment = new FedTestEnvironment(fedConnection);
  20. fedTestEvironment.run("Test/DRPTABS.SQL", false);
  21. fedTestEvironment.run("Test/CREPARTABS.SQL", false);
  22. fedTestEvironment.run("Test/INSERTAIRPORTS.SQL", false);
  23. fedTestEvironment.run("Test/INSERTAIRLINES.SQL", false);
  24. fedTestEvironment.run("Test/INSERTPASSENGERS.SQL", false);
  25. fedTestEvironment.run("Test/INSERTFLIGHTS.SQL", false);
  26. fedTestEvironment.run("Test/INSERTBOOKINGS.SQL", false);
  27. fedTestEvironment.run("Test/PARSELS1T.SQL", true);
  28. fedTestEvironment.run("Test/PARSELS1TGP.SQL", true);
  29. fedTestEvironment.run("Test/PARSELS1OR.SQL", true);
  30. fedTestEvironment.run("Test/PARSELSJOIN1.SQL", true);
  31. fedTestEvironment.run("Test/PARUPDS.SQL", true);
  32. fedTestEvironment.run("Test/PARINSERTS.SQL", true);
  33. fedTestEvironment.run("Test/PARDELS.SQL", true);
  34. } catch (FedException fedException) {
  35. fedException.printStackTrace();
  36. }
  37. /*
  38. * Validation schema
  39. */
  40. try {
  41. fedConnection = (new FedPseudoDriver()).getConnection(usernameValidation, passwordValidation);
  42. FedTestEnvironment fedTestEvironment = new FedTestEnvironment(fedConnection);
  43. fedTestEvironment.run("Validation/DRPTABS.SQL", false);
  44. fedTestEvironment.run("Validation/CREPARTABS.SQL", false);
  45. fedTestEvironment.run("Validation/INSERTAIRPORTS.SQL", false);
  46. fedTestEvironment.run("Validation/INSERTAIRLINES.SQL", false);
  47. fedTestEvironment.run("Validation/INSERTPASSENGERS.SQL", false);
  48. fedTestEvironment.run("Validation/INSERTFLIGHTS.SQL", false);
  49. fedTestEvironment.run("Validation/INSERTBOOKINGS.SQL", false);
  50. fedTestEvironment.run("Validation/INSERT-PASSAGIER-10K-5.SQL", false);
  51. fedTestEvironment.run("Validation/INSERT-BUCHUNG-10K-5.SQL", false);
  52. fedTestEvironment.run("Validation/PARSEL1TSmall.SQL", true);
  53. fedTestEvironment.run("Validation/PARSEL1TLarge.SQL", true);
  54. fedTestEvironment.run("Validation/PARSEL1TGPSmall.SQL", true);
  55. fedTestEvironment.run("Validation/PARSEL1TGPLarge.SQL", true);
  56. fedTestEvironment.run("Validation/PARSEL1TOR.SQL", true);
  57. fedTestEvironment.run("Validation/PARSELJOINNormal.SQL", true);
  58. fedTestEvironment.run("Validation/PARSELJOINSpecial.SQL", true);
  59. } catch (FedException fedException) {
  60. fedException.printStackTrace();
  61. }
  62. }}