Esempio n. 1
0
 @Test
 public void calcTest() {
   System.out.println("---Start Calculation- Tests---");
   for (int y = 0; y < 10; y++) {
     System.out.println("----" + y + "----");
     String number = String.valueOf(Utilities.generateRandomNumberBetween(2, 10));
     System.out.println("RandomNumber: " + number);
     String cleaned = Utilities.generateNewCleanedUUID();
     System.out.println("CleanedUUID: " + cleaned);
     String result = "";
     result = Utilities.calculateSecret(cleaned + " " + number);
     System.out.println("Result: " + result);
     System.out.println("");
   }
   System.out.println("---End Calculation- Tests---");
 }
Esempio n. 2
0
 @Test
 public void generateRandomNumbers() {
   for (int i = 0; i < 10; i++) {
     System.out.println(Utilities.generateRandomNumberBetween(5, 100));
   }
 }