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