25 lines
681 B
Java
25 lines
681 B
Java
package org.lucares.pdbui;
|
|
|
|
import org.junit.runner.RunWith;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
|
|
@RunWith(SpringJUnit4ClassRunner.class)
|
|
@SpringBootTest(classes = MySpringTestConfiguration.class)
|
|
public class TimeTest {
|
|
|
|
// @Autowired
|
|
// private PdbController timeController;
|
|
//
|
|
// @Test
|
|
// public void testReturnedTimeIsNow() throws Exception {
|
|
// final Date before = new Date();
|
|
//
|
|
// final Date now = timeController.time();
|
|
// final Date after = new Date();
|
|
//
|
|
// Assert.assertTrue(before.compareTo(now) <= 0);
|
|
// Assert.assertTrue(now.compareTo(after) <= 0);
|
|
// }
|
|
}
|