create web application
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package org.lucares.pdbui;
|
||||
|
||||
import org.lucares.pdbui.MySpringConfiguration;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.context.annotation.Import;
|
||||
|
||||
@SpringBootTest
|
||||
@Import(MySpringConfiguration.class)
|
||||
public class MySpringTestConfiguration {
|
||||
|
||||
}
|
||||
24
pdb-ui/src/test/java/org/lucares/pdbui/TimeTest.java
Normal file
24
pdb-ui/src/test/java/org/lucares/pdbui/TimeTest.java
Normal file
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user