@Test public void testStripJvmRoute3() { final InfinispanSessionManager ispnSM = new InfinispanSessionManager(); new Expectations() { { } }; ispnSM.setContainer(engine); String sessionId = "testtest1.bla"; String newSessionId = ispnSM.stripDotSuffix(sessionId); assertEquals("testtest1", newSessionId); }
protected String stripDotSuffix(String sessionId){ if (sessionId == null){ return null; } int index = sessionId.indexOf("."); if (index > 0) { sessionId = sessionId.substring(0, index); } return sessionId; }
InfinispanSessionManager extends ManagerBase { protected String stripDotSuffix(String sessionId){ if (sessionId == null){ return null; } int index = sessionId.indexOf("."); if (index > 0) { sessionId = sessionId.substring(0, index); } return sessionId; } }
InfinispanSessionManager extends ManagerBase { protected String stripDotSuffix(String sessionId){ if (sessionId == null){ return null; } int index = sessionId.indexOf("."); if (index > 0) { sessionId = sessionId.substring(0, index); } return sessionId; }  }
InfinispanSessionManager extends ManagerBase { protected String stripDotSuffix(String sessionId){ if (sessionId == null){ return null; } int index = sessionId.indexOf("."); if (index > 0) { sessionId = sessionId.substring(0, index); } return sessionId; }  @Override String getInfo(); @Override String getName(); @Override void load(); @Override void unload(); @Override Session createEmptySession(); @Override Session createSession(String sessionId ); @Override void add(Session session); @Override Session findSession(String sessionId); @Override void remove(Session session, boolean update); Engine getEngine(); String getJvmRoute(); String getCacheName(); }
InfinispanSessionManager extends ManagerBase { protected String stripDotSuffix(String sessionId){ if (sessionId == null){ return null; } int index = sessionId.indexOf("."); if (index > 0) { sessionId = sessionId.substring(0, index); } return sessionId; }  @Override String getInfo(); @Override String getName(); @Override void load(); @Override void unload(); @Override Session createEmptySession(); @Override Session createSession(String sessionId ); @Override void add(Session session); @Override Session findSession(String sessionId); @Override void remove(Session session, boolean update); Engine getEngine(); String getJvmRoute(); String getCacheName();  }