diff --git a/maxkey-dao/src/test/java/org/apache/mybatis/jpa/test/AppsServiceTest.java b/maxkey-dao/src/test/java/org/apache/mybatis/jpa/test/AppsServiceTest.java new file mode 100644 index 0000000000000000000000000000000000000000..cb77b7b3e77e7222fce6710f0f9ee2373b950c92 --- /dev/null +++ b/maxkey-dao/src/test/java/org/apache/mybatis/jpa/test/AppsServiceTest.java @@ -0,0 +1,81 @@ +package org.apache.mybatis.jpa.test; + +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import org.apache.mybatis.jpa.util.WebContext; +import org.junit.Before; +import org.junit.Test; +import org.maxkey.dao.service.AccountsService; +import org.maxkey.dao.service.AppsFormBasedDetailsService; +import org.maxkey.dao.service.AppsService; +import org.maxkey.domain.Accounts; +import org.maxkey.domain.apps.Apps; +import org.maxkey.domain.apps.AppsFormBasedDetails; +import org.maxkey.util.PathUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.context.ApplicationContext; +import org.springframework.context.support.ClassPathXmlApplicationContext; + +public class AppsServiceTest { + + private static final Logger _logger = LoggerFactory.getLogger(AppsServiceTest.class); + + public static ApplicationContext context; + + public static AppsService service; + + public AppsService getservice() { + service=(AppsService)WebContext.getBean("appsService"); + return service; + } + + + @Test + public void get() throws Exception{ + _logger.info("get..."); + Apps a=new Apps(); + a.setPageNumber(2); + a.setPageSize(10); + ; + getservice().queryPageResults(a); + // _logger.info("apps "+); + + } + + + + @Before + public void initSpringContext(){ + if(context!=null) return; + _logger.info("init Spring Context..."); + SimpleDateFormat sdf_ymdhms =new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + String startTime=sdf_ymdhms.format(new Date()); + + try{ + AppsServiceTest runner=new AppsServiceTest(); + runner.init(); + + }catch(Exception e){ + e.printStackTrace(); + } + + _logger.info("-- --Init Start at " + startTime+" , End at "+sdf_ymdhms.format(new Date())); + } + + //Initialization ApplicationContext for Project + public void init(){ + _logger.info("init ..."); + + _logger.info("Application dir "+System.getProperty("user.dir")); + context = new ClassPathXmlApplicationContext(new String[] {"spring/applicationContext.xml"}); + WebContext.applicationContext=context; + getservice(); + System.out.println("init ..."); + + } + +} diff --git a/maxkey-lib/other/mybatis-jpa-extra-1.0.jar b/maxkey-lib/other/mybatis-jpa-extra-1.0.jar index 2566c7eba7ce06af55e5fd7165fcb2cfba7ad4c9..9d0a3867eed342e95bf931dfc1567691ba9e2c20 100644 Binary files a/maxkey-lib/other/mybatis-jpa-extra-1.0.jar and b/maxkey-lib/other/mybatis-jpa-extra-1.0.jar differ diff --git a/maxkey-lib/other/mybatis-jpa-extra-2.1-api-1.0.jar b/maxkey-lib/other/mybatis-jpa-extra-2.1-api-1.0.jar index 9211fcfa3caef5b7d30f76f45105d754cfc05b87..9bf9165576e205ada0e2120d9ba45fa36008dadc 100644 Binary files a/maxkey-lib/other/mybatis-jpa-extra-2.1-api-1.0.jar and b/maxkey-lib/other/mybatis-jpa-extra-2.1-api-1.0.jar differ diff --git a/maxkey-protocols/maxkey-protocol-authorize/bin/main/.gitignore b/maxkey-protocols/maxkey-protocol-authorize/bin/main/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..59d60644b4b20c86a3761ebd029d638e07834723 --- /dev/null +++ b/maxkey-protocols/maxkey-protocol-authorize/bin/main/.gitignore @@ -0,0 +1,2 @@ +/META-INF/ +/org/ diff --git a/maxkey-protocols/maxkey-protocol-cas/bin/main/.gitignore b/maxkey-protocols/maxkey-protocol-cas/bin/main/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..59d60644b4b20c86a3761ebd029d638e07834723 --- /dev/null +++ b/maxkey-protocols/maxkey-protocol-cas/bin/main/.gitignore @@ -0,0 +1,2 @@ +/META-INF/ +/org/ diff --git a/maxkey-protocols/maxkey-protocol-cas/bin/test/.gitignore b/maxkey-protocols/maxkey-protocol-cas/bin/test/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..c2d9872a163058f798b9d0d7e3b38f8d6f1c1a01 --- /dev/null +++ b/maxkey-protocols/maxkey-protocol-cas/bin/test/.gitignore @@ -0,0 +1 @@ +/com/ diff --git a/maxkey-protocols/maxkey-protocol-cas/build/libs/maxkey-protocol-cas-1.0.0.RELEASE.jar b/maxkey-protocols/maxkey-protocol-cas/build/libs/maxkey-protocol-cas-1.0.0.RELEASE.jar index 7ae5bd6af6ab9370a49c367ada727832abd35ab5..b2482d23d93691309c04b639e1c61a70e617f824 100644 Binary files a/maxkey-protocols/maxkey-protocol-cas/build/libs/maxkey-protocol-cas-1.0.0.RELEASE.jar and b/maxkey-protocols/maxkey-protocol-cas/build/libs/maxkey-protocol-cas-1.0.0.RELEASE.jar differ diff --git a/maxkey-protocols/maxkey-protocol-cas/build/reports/tests/test/index.html b/maxkey-protocols/maxkey-protocol-cas/build/reports/tests/test/index.html index bb47baaec645ce33808e93716e687ad41b467ce3..2bc82560c1fe8622c421dd134082a31af756d0af 100644 --- a/maxkey-protocols/maxkey-protocol-cas/build/reports/tests/test/index.html +++ b/maxkey-protocols/maxkey-protocol-cas/build/reports/tests/test/index.html @@ -85,7 +85,7 @@ Generated by -Gradle 5.4.1 at 2019-11-10 12:36:07
+Gradle 5.4.1 at 2019-11-27 22:38:38