Shreyas arya

Generation

generate functionThu, 09 Feb 2023

Print string "Shreyas" and wait for 10 seconds. The duration between all the 3 attempts doesn't exceed 10 seconds.

@Test(retryAnalyzer = CustomRetry.class) public void test1() { System.out.println("Shreyas"); try { Thread.sleep(10000); } catch (InterruptedException e) { e.printStackTrace(); } Assert.fail(); } @Test(retryAnalyzer = CustomRetry.class) public void test2() { System.out.println("Shreyas"); try { Thread.sleep(10000); } catch (InterruptedException e) { e.printStackTrace(); } Assert.fail(); } @Test(retryAnalyzer = CustomRetry.class) public void test3() { System.out.println("Shreyas"); try { Thread.sleep(10000); } catch (InterruptedException e) { e.printStackTrace(); } Assert.fail(); }

Questions about programming?Chat with your personal AI assistant