|
@@ -1,26 +1,40 @@
|
|
|
-//package com.fdkankan.scene;
|
|
|
-//
|
|
|
-//import com.fdkankan.scene.entity.Folder;
|
|
|
-//import com.fdkankan.scene.service.IFolderService;
|
|
|
-//import org.junit.jupiter.api.Test;
|
|
|
-//import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-//import org.springframework.boot.test.context.SpringBootTest;
|
|
|
-//
|
|
|
-//import java.util.List;
|
|
|
-//
|
|
|
-//@SpringBootTest
|
|
|
-//class ApplicationTests {
|
|
|
-//
|
|
|
-// @Test
|
|
|
-// void contextLoads() {
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Autowired
|
|
|
-// private IFolderService folderService;
|
|
|
-//
|
|
|
-// @Test
|
|
|
-// public List<Folder> test(){
|
|
|
-// return folderService.list();
|
|
|
-// }
|
|
|
-//
|
|
|
-//}
|
|
|
+package com.fdkankan.scene;
|
|
|
+
|
|
|
+import com.fdkankan.common.util.LogoConfig;
|
|
|
+import com.fdkankan.scene.entity.Folder;
|
|
|
+import com.fdkankan.scene.service.IFolderService;
|
|
|
+import org.junit.jupiter.api.Test;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+
|
|
|
+import java.awt.image.BufferedImage;
|
|
|
+import java.io.IOException;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@SpringBootTest
|
|
|
+class ApplicationTests {
|
|
|
+
|
|
|
+ @Test
|
|
|
+ void contextLoads() {
|
|
|
+ }
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IFolderService folderService;
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public List<Folder> test(){
|
|
|
+ return folderService.list();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public String test2() throws IOException {
|
|
|
+
|
|
|
+ LogoConfig logoConfig = new LogoConfig();
|
|
|
+
|
|
|
+ logoConfig.LogoMatrix(new BufferedImage(1,1,1), null);
|
|
|
+
|
|
|
+ return "123";
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+}
|