Exemplo n.º 1
0
  @Test
  public void UUIDTest() {
    System.out.println("UUID's:");
    for (int i = 0; i < 10; i++) {
      System.out.println(Utilities.generateRandomUUID());
    }

    System.out.println("cleaned UUID's:");
    for (int i = 0; i < 10; i++) {
      System.out.println(Utilities.generateNewCleanedUUID());
    }
  }
Exemplo n.º 2
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---");
 }
Exemplo n.º 3
0
 @Test
 public void mapTest() {
   String incoming = "[3=false HH:mm dd-MM-yyyy, 4=true]";
   System.out.println(Utilities.getOnlineMap(incoming).toString());
 }
Exemplo n.º 4
0
 @Test
 public void generateRandomNumbers() {
   for (int i = 0; i < 10; i++) {
     System.out.println(Utilities.generateRandomNumberBetween(5, 100));
   }
 }