@Test public void testMockSigned() throws Exception { NullAclEntryCache cacheMock = createMock(NullAclEntryCache.class); AcegiSecurityUser tested = new AcegiSecurityUser(cacheMock); final BasicAclEntry[] basicAclEntries = new BasicAclEntry[0]; expect(cacheMock.getEntriesFromCache(null)).andReturn(basicAclEntries); replay(cacheMock); assertSame(basicAclEntries, tested.getDecisionVoters()); verify(cacheMock); }
public BasicAclEntry[] getDecisionVoters() { return cache.getEntriesFromCache(null); }
AcegiSecurityUser { public BasicAclEntry[] getDecisionVoters() { return cache.getEntriesFromCache(null); } }
AcegiSecurityUser { public BasicAclEntry[] getDecisionVoters() { return cache.getEntriesFromCache(null); } AcegiSecurityUser(NullAclEntryCache cache); }
AcegiSecurityUser { public BasicAclEntry[] getDecisionVoters() { return cache.getEntriesFromCache(null); } AcegiSecurityUser(NullAclEntryCache cache); BasicAclEntry[] getDecisionVoters(); }
AcegiSecurityUser { public BasicAclEntry[] getDecisionVoters() { return cache.getEntriesFromCache(null); } AcegiSecurityUser(NullAclEntryCache cache); BasicAclEntry[] getDecisionVoters();  }