Tabnine Logo
MockPageContext.removeAttribute
Code IndexAdd Tabnine to your IDE (free)

How to use
removeAttribute
method
in
org.springframework.mock.web.MockPageContext

Best Java code snippets using org.springframework.mock.web.MockPageContext.removeAttribute (Showing top 4 results out of 315)

origin: spring-projects/spring-framework

@Override
public void removeAttribute(String name) {
  Assert.notNull(name, "Attribute name must not be null");
  this.removeAttribute(name, PageContext.PAGE_SCOPE);
  this.removeAttribute(name, PageContext.REQUEST_SCOPE);
  this.removeAttribute(name, PageContext.SESSION_SCOPE);
  this.removeAttribute(name, PageContext.APPLICATION_SCOPE);
}
origin: spring-projects/spring-framework

@Test
public void removeAttributeWithNoScopeSpecifiedRemovesValueFromAllScopes() throws Exception {
  ctx.setAttribute(key, value, PageContext.APPLICATION_SCOPE);
  ctx.removeAttribute(key);
  assertNull(ctx.getAttribute(key, PageContext.PAGE_SCOPE));
  assertNull(ctx.getAttribute(key, PageContext.APPLICATION_SCOPE));
  assertNull(ctx.getAttribute(key, PageContext.REQUEST_SCOPE));
  assertNull(ctx.getAttribute(key, PageContext.SESSION_SCOPE));
}
origin: apache/servicemix-bundles

@Override
public void removeAttribute(String name) {
  Assert.notNull(name, "Attribute name must not be null");
  this.removeAttribute(name, PageContext.PAGE_SCOPE);
  this.removeAttribute(name, PageContext.REQUEST_SCOPE);
  this.removeAttribute(name, PageContext.SESSION_SCOPE);
  this.removeAttribute(name, PageContext.APPLICATION_SCOPE);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-test

@Override
public void removeAttribute(String name) {
  Assert.notNull(name, "Attribute name must not be null");
  this.removeAttribute(name, PageContext.PAGE_SCOPE);
  this.removeAttribute(name, PageContext.REQUEST_SCOPE);
  this.removeAttribute(name, PageContext.SESSION_SCOPE);
  this.removeAttribute(name, PageContext.APPLICATION_SCOPE);
}
org.springframework.mock.webMockPageContextremoveAttribute

Popular methods of MockPageContext

  • <init>
    Create new MockServletConfig.
  • getAttribute
  • setAttribute
  • getAttributeNames

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now