result = (StandardSession) manager.createEmptySession(); result.setCreationTime(((Long) obj).longValue()); result.readRemainingObject(ois);
StandardSession standardSession = (StandardSession) this.manager.createEmptySession(); standardSession.readObjectData(in);
StandardSession standardSession = (StandardSession) this.manager.createEmptySession(); standardSession.readObjectData(in);
(StandardSession) manager.createEmptySession(); session.readObjectData(ois); session.setManager(manager);
(StandardSession) manager.createEmptySession(); session.readObjectData(ois); session.setManager(manager);
(StandardSession) manager.createEmptySession(); session.readObjectData(ois); session.setManager(manager);
(StandardSession) manager.createEmptySession(); session.readObjectData(ois); session.setManager(manager);
_session = (StandardSession) manager.createEmptySession(); _session.readObjectData(ois); _session.setManager(manager);
ObjectInputStream ois = getObjectInputStream(fis)) { StandardSession session = (StandardSession) manager.createEmptySession(); session.readObjectData(ois); session.setManager(manager);
(StandardSession) manager.createEmptySession(); session.readObjectData(ois); session.setManager(manager);
(StandardSession) manager.createEmptySession(); session.readObjectData(ois); session.setManager(manager);
(StandardSession) manager.createEmptySession(); session.readObjectData(ois); session.setManager(manager);
(StandardSession) manager.createEmptySession(); session.readObjectData(ois); session.setManager(manager);
(StandardSession) manager.createEmptySession(); session.readObjectData(ois); session.setManager(manager);
ObjectInputStream ois = getObjectInputStream(fis)) { StandardSession session = (StandardSession) manager.createEmptySession(); session.readObjectData(ois); session.setManager(manager);
_session = (StandardSession) manager.createEmptySession(); _session.readObjectData(ois); _session.setManager(manager);
_session = (StandardSession) manager.createEmptySession(); _session.readObjectData(ois); _session.setManager(manager);
_session = (StandardSession) manager.createEmptySession(); _session.readObjectData(ois); _session.setManager(manager);
_session = (StandardSession) manager.createEmptySession(); _session.readObjectData(ois); _session.setManager(manager);
@Test public void test() throws IOException, ClassNotFoundException { Session initial = this.manager.createEmptySession(); initial.setValid(true); initial.getSession().setAttribute("test-key", "test-value"); SampleSessionObject obj = new SampleSessionObject(); obj.setSampleField("field-set"); obj.setNonSerializableField(40L); initial.getSession().setAttribute("test-key-2", obj); Session result = this.sessionSerializationUtils.deserialize(this.sessionSerializationUtils.serialize(initial)); assertEquals("test-value", result.getSession().getAttribute("test-key")); SampleSessionObject obj2 = (SampleSessionObject) result.getSession().getAttribute("test-key-2"); assertEquals("field-set", obj2.getSampleField()); assertNotEquals(40L, obj2.getNonSerializableField()); }