Exemplo n.º 1
0
  private void initAgent(WrapperMapper agent, String name) {
    Properties props = getWrapperProps();

    agent.init(name, props);
    AgentConnector connector = new MockAgentConnector(orb, agent);
    agent.setConnector(connector);
  }
Exemplo n.º 2
0
 @Override
 void initCache() throws CacheException {
   if (throwCacheException) {
     throw new CacheException("Fake exception. Totally expected.");
   } else {
     super.initCache();
   }
 }