package org.ovirt.engine.core.utils;

import junit.framework.TestCase;

public class TicketingTest extends TestCase {
    public void testNoRepeats() {
        String sample = Ticketing.GenerateOTP();
        for (int x = 0; x < 1000; x++) {
            String other = Ticketing.GenerateOTP();
            assertNotSame(sample, other);
        }
    }
}

@@ -42,32 +42,69 @@
 ort 
-junit.framework
+static org.junit.Assert.assertNotSame;%0A%0Aimport org.junit
 .Test
-Case
 ;%0A%0Ap
@@ -133,26 +133,19 @@
 est 
-extends TestCase %7B
+%7B%0A    @Test
 %0A   

Convert TicketingTest to JUnit4 syntax