Issue #2267 Added extra asserts to o.e.j.s.session.CreationTest
This commit is contained in:
parent
076f3a8ab2
commit
1ecf774912
|
@ -19,7 +19,6 @@
|
|||
|
||||
package org.eclipse.jetty.server.session;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
|
@ -102,8 +101,6 @@ public class TestSessionDataStore extends AbstractSessionDataStore
|
|||
set.add(d.getId());
|
||||
}
|
||||
return set;
|
||||
|
||||
//return Collections.emptySet();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -265,7 +265,7 @@ public class CreationTest
|
|||
assertEquals(HttpServletResponse.SC_OK,response.getStatus());
|
||||
|
||||
//ensure work has finished on the server side
|
||||
_synchronizer.await();
|
||||
_synchronizer.await(2*inactivePeriod, TimeUnit.SECONDS);
|
||||
|
||||
//check that the sessions exist persisted
|
||||
assertTrue(contextHandler.getSessionHandler().getSessionCache().getSessionDataStore().exists(_servlet._id));
|
||||
|
@ -370,6 +370,8 @@ public class CreationTest
|
|||
{
|
||||
session = request.getSession(false);
|
||||
assertNotNull(session);
|
||||
assertEquals(_id, session.getId());
|
||||
assertNotNull(session.getAttribute("value"));
|
||||
assertNull(session.getAttribute("B")); //check we don't see stuff from other context
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue