mirror of
https://gitee.com/shuto-github/intranet_app_manager.git
synced 2026-08-11 00:00:11 +08:00
first commit
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
package org.yzr.main;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
import org.yzr.model.Package;
|
||||
import org.yzr.service.PackageService;
|
||||
import org.yzr.utils.ipa.PlistGenerator;
|
||||
import org.yzr.utils.parser.ParserClient;
|
||||
import org.yzr.vo.PackageViewModel;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class ApplicationTests {
|
||||
@Resource
|
||||
private PackageService packageService;
|
||||
@Test
|
||||
public void contextLoads() {
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSave() {
|
||||
Package aPackage = new Package();
|
||||
aPackage.setName("升学e网通");
|
||||
aPackage.setBundleID("org.yzr.test");
|
||||
aPackage.setVersion("6.9.7");
|
||||
this.packageService.save(aPackage);
|
||||
}
|
||||
|
||||
// @Test
|
||||
// public void testFileName() {
|
||||
// Package aPackage = new Package();
|
||||
// aPackage.setName("升学e网通");
|
||||
// aPackage.setBundleID("org.yzr.test");
|
||||
// aPackage.setVersion("6.9.7");
|
||||
// PackageViewModel viewModel = new PackageViewModel(aPackage);
|
||||
// PlistGenerator.generate(viewModel, "/Users/zhaorongyi/Documents/Learn/intranet_app_manager/out/test.plist");
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user