Spring 5 reff (#1786)

* Fix Spring5 snippets

* Refactor Spring 5 samples

* Refactor Spring 5 samples

* Enable Spring5
This commit is contained in:
Grzegorz Piwowarek
2017-05-05 16:26:25 +02:00
committed by GitHub
parent 67968089a0
commit 30df1541a1
10 changed files with 161 additions and 196 deletions
@@ -0,0 +1,29 @@
package com.baeldung;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class Example2IntegrationTest {
@Test
public void test1a() {
block(3000);
}
@Test
public void test1b() {
block(3000);
}
public static void block(long ms) {
try {
Thread.sleep(ms);
} catch (InterruptedException e) {
System.out.println("Thread Interrupted");
}
}
}