@Before
 public void setUp() {
   MockitoAnnotations.initMocks(this);
   User user = new User();
   user.setUsername("admin");
   ShiroTestUtils.mockSubject(user);
 }
예제 #2
0
 @Before
 public void setUp() {
   MockitoAnnotations.initMocks(this);
   ShiroTestUtils.mockSubject(new ShiroUser(3L, "foo", "Foo"));
 }