Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. public static Application chooseAppTest(String[] args)
  2. {
  3. Application application = null;
  4.  
  5. switch (Application.valueOf(args[0]))
  6. {
  7. case ACCOUNTINVENTORY:
  8. new AccountInventory(Environment.valueOf(args[1]));
  9. AccountInventory.accountInventoryDatabaseTests(testResults);
  10. break;
  11.  
  12. public static void main(String[] args)
  13. {
  14. // run tests and collect results
  15. if (args.length == 0)
  16. {
  17. LogIn.loginTest(testResults);
  18. DatabaseTest.testResults(testResults);
  19. LinkTest.linkTests(testResults);
  20. }
  21. else
  22. {
  23. // First choose application, then choose environment
  24. Application.chooseAppTest(args);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement