List of usage examples for org.springframework.web.context.request RequestContextHolder resetRequestAttributes
public static void resetRequestAttributes()
From source file:com.mtgi.analytics.servlet.SpringSessionContextTest.java
@After public void tearDown() { inst = null; RequestContextHolder.resetRequestAttributes(); }
From source file:com.nebhale.cyclinglibrary.web.json.LinkTest.java
@After public void clearRequestContext() { RequestContextHolder.resetRequestAttributes(); }
From source file:org.cloudfoundry.identity.uaa.web.ForwardAwareInternalResourceViewResolverTests.java
@After public void clean() { RequestContextHolder.resetRequestAttributes(); }
From source file:com.nebhale.cyclinglibrary.web.json.AbstractJsonSerializerTest.java
@After public final void clearRequestContext() { RequestContextHolder.resetRequestAttributes(); }
From source file:io.jmnarloch.spring.request.correlation.support.RequestCorrelationUtilsTest.java
@Test public void shouldNotRetrieveRequestId() { // given//from w ww. ja v a 2s. com RequestContextHolder.resetRequestAttributes(); // when final String correlationId = RequestCorrelationUtils.getCurrentCorrelationId(); // then assertNull(correlationId); }
From source file:io.jmnarloch.spring.request.correlation.feign.FeignCorrelationInterceptorTest.java
@After public void tearDown() throws Exception { RequestContextHolder.resetRequestAttributes(); }
From source file:org.ngrinder.common.util.HttpContainerContextTest.java
@After public void resetContext() { RequestContextHolder.resetRequestAttributes(); }
From source file:io.pivotal.strepsirrhini.chaoslemur.task.TaskResourceAssemblerTest.java
@After public void requestContextTearDown() { RequestContextHolder.resetRequestAttributes(); }
From source file:org.hobsoft.contacts.server.controller.ContactResourceAssemblerTest.java
@After public void tearDown() { RequestContextHolder.resetRequestAttributes(); }
From source file:com.mtgi.analytics.BehaviorTrackingManagerTest.java
@After public void waitForQueue() throws InterruptedException { RequestContextHolder.resetRequestAttributes(); sessionContext.reset();/*from w w w . j a v a 2 s . com*/ manager.flush(); //we add a wait job to the end of the queue to make sure //any async operations left over from the last test are finished flushTaskExecutions(); }