package com.riversoft.weixin.app.user;

import org.junit.Test;

import com.riversoft.weixin.app.base.AppSetting;

/**
 * @borball on 11/7/2016.
 */
public class UsersTest {

	@Test
	public void testCode2Session() {
		SessionKey sessionKey = Users.with(new AppSetting("appid", "screctkey"))
				.code2Session("011RedXY1NegvX0eLWXY1vVfXY1RedXu");
		System.out.println(sessionKey.getOpenId());
		System.out.println(sessionKey.getSessionKey());
		System.out.println(sessionKey.getExpiresTill());
	}
}

@@ -33,16 +33,88 @@
 .user;%0A%0A
+import static org.junit.Assert.assertNotNull;%0A%0Aimport org.junit.Ignore;%0A
 import o
@@ -128,16 +128,16 @@
 t.Test;%0A
-
 %0Aimport 
@@ -246,16 +246,25 @@
 %0A%09@Test%0A
+%09@Ignore%0A
 %09public 
@@ -425,150 +425,32 @@
 ;%0A%09%09
-System.out.println(sessionKey.getOpenId());%0A%09%09System.out.println(sessionKey.getSessionKey());%0A%09%09System.out.println(sessionKey.getExpiresTill()
+assertNotNull(sessionKey
 );%0A%09

upgrade test case