test fixtures - Hippoom/wechat-mp-starter GitHub Wiki
me.chanjar.weixin.mp.bean.result.WxMpUser
A fixture with builder pattern to populate me.chanjar.weixin.mp.bean.result.WxMpUser
import me.chanjar.weixin.mp.bean.result.WxMpUser;
import static com.github.hippoom.wechat.mp.test.fixture.WxMpUserFixture.aWxMpUser;
//Declare OpenId openId = ...
WxMpUser wxMpUser = aWxMpUser().with(openId).build();
me.chanjar.weixin.mp.bean.result.WxMpOAuth2AccessToken
A fixture with builder pattern to populate me.chanjar.weixin.mp.bean.result.WxMpOAuth2AccessToken
import me.chanjar.weixin.mp.bean.result.WxMpOAuth2AccessToken;
import static com.github.hippoom.wechat.mp.test.fixture.WxMpOAuth2AccessTokenFixture.aWxMpOAuth2AccessToken;
//Declare OpenId openId = ...
WxMpOAuth2AccessToken accessToken = aWxMpOAuth2AccessToken().with(openId).build();