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