|
|
@@ -1,8 +1,5 @@
|
|
|
import com.izouma.awesomeadmin.model.*;
|
|
|
-import com.izouma.awesomeadmin.service.ApplyInfoService;
|
|
|
-import com.izouma.awesomeadmin.service.MatchDataService;
|
|
|
-import com.izouma.awesomeadmin.service.MatchStageService;
|
|
|
-import com.izouma.awesomeadmin.service.UserInfoService;
|
|
|
+import com.izouma.awesomeadmin.service.*;
|
|
|
import com.izouma.awesomeadmin.service.impl.MatchInfoServiceImpl;
|
|
|
import com.izouma.awesomeadmin.util.RandomDataUtil;
|
|
|
import org.junit.Test;
|
|
|
@@ -13,6 +10,9 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
|
import org.springframework.test.context.support.GenericXmlContextLoader;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import java.io.File;
|
|
|
+import java.io.FileInputStream;
|
|
|
+import java.io.FileNotFoundException;
|
|
|
import java.util.List;
|
|
|
|
|
|
@RunWith(value = SpringJUnit4ClassRunner.class)
|
|
|
@@ -20,15 +20,17 @@ import java.util.List;
|
|
|
@Transactional
|
|
|
public class MatchTest {
|
|
|
@Autowired
|
|
|
- UserInfoService userInfoService;
|
|
|
+ UserInfoService userInfoService;
|
|
|
@Autowired
|
|
|
- ApplyInfoService applyInfoService;
|
|
|
+ ApplyInfoService applyInfoService;
|
|
|
@Autowired
|
|
|
MatchInfoServiceImpl matchInfoService;
|
|
|
@Autowired
|
|
|
- MatchDataService matchDataService;
|
|
|
+ MatchDataService matchDataService;
|
|
|
@Autowired
|
|
|
- MatchStageService matchStageService;
|
|
|
+ MatchStageService matchStageService;
|
|
|
+ @Autowired
|
|
|
+ OSSFileService ossFileService;
|
|
|
|
|
|
@Test
|
|
|
public void createMatch() {
|
|
|
@@ -54,4 +56,10 @@ public class MatchTest {
|
|
|
public void testRank() {
|
|
|
System.out.println(matchInfoService.getRank(46));
|
|
|
}
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void uploadApk() throws FileNotFoundException {
|
|
|
+ String url = ossFileService.upload(new FileInputStream(""), "");
|
|
|
+ System.out.println(url);
|
|
|
+ }
|
|
|
}
|