|
@@ -11,7 +11,6 @@ import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig;
|
|
|
import org.jasypt.salt.StringFixedSaltGenerator;
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.boot.test.context.SpringBootTest;
|
|
|
import org.springframework.test.context.ActiveProfiles;
|
|
|
|
|
|
import javax.persistence.EntityManager;
|
|
@@ -22,10 +21,11 @@ import java.time.LocalDateTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
+import java.util.Optional;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
@Slf4j
|
|
|
-@SpringBootTest
|
|
|
+//@SpringBootTest
|
|
|
@ActiveProfiles(profiles = "dev")
|
|
|
public class ItsOpServerApplicationTests {
|
|
|
// @Autowired
|
|
@@ -37,6 +37,13 @@ public class ItsOpServerApplicationTests {
|
|
|
@Autowired
|
|
|
private SqlSessionFactory sqlSessionFactory;
|
|
|
|
|
|
+ @Test
|
|
|
+ void tt1() {
|
|
|
+ String sss = "data";
|
|
|
+ //Optional<String> ss = Optional.empty();
|
|
|
+ Optional<String> ss = Optional.of(sss);
|
|
|
+ log.error("{}", ss.ofNullable(ss.get()));
|
|
|
+ }
|
|
|
@Test
|
|
|
void res() {
|
|
|
//Result result = new Result(1, null);
|