Codota Logo
MergedContextConfiguration.nullSafeClassName
Code IndexAdd Codota to your IDE (free)

How to use
nullSafeClassName
method
in
org.springframework.test.context.MergedContextConfiguration

Best Java code snippets using org.springframework.test.context.MergedContextConfiguration.nullSafeClassName (Showing top 6 results out of 315)

  • Common ways to obtain MergedContextConfiguration
private void myMethod () {
MergedContextConfiguration m =
  • Codota IconMergedContextConfiguration mergedContextConfiguration;mergedContextConfiguration.getParent()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-framework

/**
 * Generate a unique hash code for all properties of this
 * {@code MergedContextConfiguration} excluding the
 * {@linkplain #getTestClass() test class}.
 */
@Override
public int hashCode() {
  int result = Arrays.hashCode(this.locations);
  result = 31 * result + Arrays.hashCode(this.classes);
  result = 31 * result + this.contextInitializerClasses.hashCode();
  result = 31 * result + Arrays.hashCode(this.activeProfiles);
  result = 31 * result + Arrays.hashCode(this.propertySourceLocations);
  result = 31 * result + Arrays.hashCode(this.propertySourceProperties);
  result = 31 * result + this.contextCustomizers.hashCode();
  result = 31 * result + (this.parent != null ? this.parent.hashCode() : 0);
  result = 31 * result + nullSafeClassName(this.contextLoader).hashCode();
  return result;
}
origin: spring-projects/spring-framework

if (!nullSafeClassName(this.contextLoader).equals(nullSafeClassName(otherConfig.contextLoader))) {
  return false;
origin: spring-projects/spring-framework

/**
 * Provide a String representation of the {@linkplain #getTestClass() test class},
 * {@linkplain #getLocations() locations}, {@linkplain #getClasses() annotated classes},
 * {@linkplain #getContextInitializerClasses() context initializer classes},
 * {@linkplain #getActiveProfiles() active profiles},
 * {@linkplain #getPropertySourceLocations() property source locations},
 * {@linkplain #getPropertySourceProperties() property source properties},
 * {@linkplain #getContextCustomizers() context customizers},
 * the name of the {@link #getContextLoader() ContextLoader}, and the
 * {@linkplain #getParent() parent configuration}.
 */
@Override
public String toString() {
  return new ToStringCreator(this)
      .append("testClass", this.testClass)
      .append("locations", ObjectUtils.nullSafeToString(this.locations))
      .append("classes", ObjectUtils.nullSafeToString(this.classes))
      .append("contextInitializerClasses", ObjectUtils.nullSafeToString(this.contextInitializerClasses))
      .append("activeProfiles", ObjectUtils.nullSafeToString(this.activeProfiles))
      .append("propertySourceLocations", ObjectUtils.nullSafeToString(this.propertySourceLocations))
      .append("propertySourceProperties", ObjectUtils.nullSafeToString(this.propertySourceProperties))
      .append("contextCustomizers", this.contextCustomizers)
      .append("contextLoader", nullSafeClassName(this.contextLoader))
      .append("parent", this.parent)
      .toString();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-test

/**
 * Generate a unique hash code for all properties of this
 * {@code MergedContextConfiguration} excluding the
 * {@linkplain #getTestClass() test class}.
 */
@Override
public int hashCode() {
  int result = Arrays.hashCode(this.locations);
  result = 31 * result + Arrays.hashCode(this.classes);
  result = 31 * result + this.contextInitializerClasses.hashCode();
  result = 31 * result + Arrays.hashCode(this.activeProfiles);
  result = 31 * result + Arrays.hashCode(this.propertySourceLocations);
  result = 31 * result + Arrays.hashCode(this.propertySourceProperties);
  result = 31 * result + this.contextCustomizers.hashCode();
  result = 31 * result + (this.parent != null ? this.parent.hashCode() : 0);
  result = 31 * result + nullSafeClassName(this.contextLoader).hashCode();
  return result;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-test

if (!nullSafeClassName(this.contextLoader).equals(nullSafeClassName(otherConfig.contextLoader))) {
  return false;
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-test

/**
 * Provide a String representation of the {@linkplain #getTestClass() test class},
 * {@linkplain #getLocations() locations}, {@linkplain #getClasses() annotated classes},
 * {@linkplain #getContextInitializerClasses() context initializer classes},
 * {@linkplain #getActiveProfiles() active profiles},
 * {@linkplain #getPropertySourceLocations() property source locations},
 * {@linkplain #getPropertySourceProperties() property source properties},
 * {@linkplain #getContextCustomizers() context customizers},
 * the name of the {@link #getContextLoader() ContextLoader}, and the
 * {@linkplain #getParent() parent configuration}.
 */
@Override
public String toString() {
  return new ToStringCreator(this)
      .append("testClass", this.testClass)
      .append("locations", ObjectUtils.nullSafeToString(this.locations))
      .append("classes", ObjectUtils.nullSafeToString(this.classes))
      .append("contextInitializerClasses", ObjectUtils.nullSafeToString(this.contextInitializerClasses))
      .append("activeProfiles", ObjectUtils.nullSafeToString(this.activeProfiles))
      .append("propertySourceLocations", ObjectUtils.nullSafeToString(this.propertySourceLocations))
      .append("propertySourceProperties", ObjectUtils.nullSafeToString(this.propertySourceProperties))
      .append("contextCustomizers", this.contextCustomizers)
      .append("contextLoader", nullSafeClassName(this.contextLoader))
      .append("parent", this.parent)
      .toString();
}
org.springframework.test.contextMergedContextConfigurationnullSafeClassName

Javadoc

Generate a null-safe String representation of the supplied ContextLoader based solely on the fully qualified name of the loader or "null" if the supplied loader is null.

Popular methods of MergedContextConfiguration

  • getLocations
    Get the merged resource locations for ApplicationContextconfiguration files for the #getTestClass().
  • getTestClass
    Get the Class associated with this MergedContextConfiguration.
  • getActiveProfiles
    Get the merged active bean definition profiles for the #getTestClass().
  • getClasses
    Get the merged annotated classes for the #getTestClass().
  • getContextLoader
    Get the resolved ContextLoader for the #getTestClass().
  • <init>
    Create a new MergedContextConfiguration instance by copying all fields from the supplied MergedConte
  • getParent
    Get the MergedContextConfiguration for the parent application context in a context hierarchy.
  • getParentApplicationContext
    Get the parent ApplicationContext for the context defined by this MergedContextConfiguration from th
  • getContextInitializerClasses
    Get the merged ApplicationContextInitializer classes for the #getTestClass().
  • getPropertySourceProperties
    Get the merged test PropertySource properties for the #getTestClass().Properties will be loaded into
  • hasLocations
    Determine if this MergedContextConfiguration instance has path-based context resource locations.
  • getContextCustomizers
    Get the merged ContextCustomizer that will be applied when the application context is loaded.
  • hasLocations,
  • getContextCustomizers,
  • getPropertySourceLocations,
  • hasClasses,
  • hashCode,
  • equals,
  • processActiveProfiles,
  • processClasses,
  • processContextCustomizers

Popular in Java

  • Start an intent from android
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • onCreateOptionsMenu (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now