org.springframework.test.context.support.AnnotationConfigContextLoader Java Examples
The following examples show how to use
org.springframework.test.context.support.AnnotationConfigContextLoader.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MergedContextConfigurationTests.java From spring-analysis-note with MIT License | 5 votes |
@Test public void hashCodeWithEmptyArraysAndDifferentLoaders() { MergedContextConfiguration mergedConfig1 = new MergedContextConfiguration(getClass(), EMPTY_STRING_ARRAY, EMPTY_CLASS_ARRAY, EMPTY_STRING_ARRAY, loader); MergedContextConfiguration mergedConfig2 = new MergedContextConfiguration(getClass(), EMPTY_STRING_ARRAY, EMPTY_CLASS_ARRAY, EMPTY_STRING_ARRAY, new AnnotationConfigContextLoader()); assertNotEquals(mergedConfig1.hashCode(), mergedConfig2.hashCode()); }
Example #2
Source File: MergedContextConfigurationTests.java From spring-analysis-note with MIT License | 5 votes |
@Test public void equalsWithEmptyArraysAndDifferentLoaders() { MergedContextConfiguration mergedConfig1 = new MergedContextConfiguration(getClass(), EMPTY_STRING_ARRAY, EMPTY_CLASS_ARRAY, EMPTY_STRING_ARRAY, loader); MergedContextConfiguration mergedConfig2 = new MergedContextConfiguration(getClass(), EMPTY_STRING_ARRAY, EMPTY_CLASS_ARRAY, EMPTY_STRING_ARRAY, new AnnotationConfigContextLoader()); assertNotEquals(mergedConfig1, mergedConfig2); assertNotEquals(mergedConfig2, mergedConfig1); }
Example #3
Source File: MergedContextConfigurationTests.java From java-technology-stack with MIT License | 5 votes |
@Test public void hashCodeWithEmptyArraysAndDifferentLoaders() { MergedContextConfiguration mergedConfig1 = new MergedContextConfiguration(getClass(), EMPTY_STRING_ARRAY, EMPTY_CLASS_ARRAY, EMPTY_STRING_ARRAY, loader); MergedContextConfiguration mergedConfig2 = new MergedContextConfiguration(getClass(), EMPTY_STRING_ARRAY, EMPTY_CLASS_ARRAY, EMPTY_STRING_ARRAY, new AnnotationConfigContextLoader()); assertNotEquals(mergedConfig1.hashCode(), mergedConfig2.hashCode()); }
Example #4
Source File: MergedContextConfigurationTests.java From java-technology-stack with MIT License | 5 votes |
@Test public void equalsWithEmptyArraysAndDifferentLoaders() { MergedContextConfiguration mergedConfig1 = new MergedContextConfiguration(getClass(), EMPTY_STRING_ARRAY, EMPTY_CLASS_ARRAY, EMPTY_STRING_ARRAY, loader); MergedContextConfiguration mergedConfig2 = new MergedContextConfiguration(getClass(), EMPTY_STRING_ARRAY, EMPTY_CLASS_ARRAY, EMPTY_STRING_ARRAY, new AnnotationConfigContextLoader()); assertNotEquals(mergedConfig1, mergedConfig2); assertNotEquals(mergedConfig2, mergedConfig1); }
Example #5
Source File: MergedContextConfigurationTests.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Test public void hashCodeWithEmptyArraysAndDifferentLoaders() { MergedContextConfiguration mergedConfig1 = new MergedContextConfiguration(getClass(), EMPTY_STRING_ARRAY, EMPTY_CLASS_ARRAY, EMPTY_STRING_ARRAY, loader); MergedContextConfiguration mergedConfig2 = new MergedContextConfiguration(getClass(), EMPTY_STRING_ARRAY, EMPTY_CLASS_ARRAY, EMPTY_STRING_ARRAY, new AnnotationConfigContextLoader()); assertNotEquals(mergedConfig1.hashCode(), mergedConfig2.hashCode()); }
Example #6
Source File: MergedContextConfigurationTests.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Test public void equalsWithEmptyArraysAndDifferentLoaders() { MergedContextConfiguration mergedConfig1 = new MergedContextConfiguration(getClass(), EMPTY_STRING_ARRAY, EMPTY_CLASS_ARRAY, EMPTY_STRING_ARRAY, loader); MergedContextConfiguration mergedConfig2 = new MergedContextConfiguration(getClass(), EMPTY_STRING_ARRAY, EMPTY_CLASS_ARRAY, EMPTY_STRING_ARRAY, new AnnotationConfigContextLoader()); assertNotEquals(mergedConfig1, mergedConfig2); assertNotEquals(mergedConfig2, mergedConfig1); }