polishing

This commit is contained in:
Sam Brannen 2011-04-09 21:40:08 +00:00
parent 0584c26b2c
commit 522a879496
7 changed files with 4 additions and 26 deletions

View File

@ -20,17 +20,14 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
import org.junit.Test; import org.junit.Test;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;
/** /**
* <p>
* JUnit 4 based unit test for verifying support for the * JUnit 4 based unit test for verifying support for the
* {@link ContextConfiguration#inheritLocations() inheritLocations} flag of * {@link ContextConfiguration#inheritLocations() inheritLocations} flag of
* {@link ContextConfiguration @ContextConfiguration} indirectly proposed in <a * {@link ContextConfiguration @ContextConfiguration} indirectly proposed in <a
* href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896" * href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896"
* target="_blank">SPR-3896</a>. * target="_blank">SPR-3896</a>.
* </p>
* *
* @author Sam Brannen * @author Sam Brannen
* @since 2.5 * @since 2.5

View File

@ -20,22 +20,19 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
import org.junit.Test; import org.junit.Test;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;
/** /**
* <p>
* JUnit 4 based unit test for verifying support for the * JUnit 4 based unit test for verifying support for the
* {@link ContextConfiguration#inheritLocations() inheritLocations} flag of * {@link ContextConfiguration#inheritLocations() inheritLocations} flag of
* {@link ContextConfiguration @ContextConfiguration} indirectly proposed in <a * {@link ContextConfiguration @ContextConfiguration} indirectly proposed in <a
* href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896" * href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896"
* target="_blank">SPR-3896</a>. * target="_blank">SPR-3896</a>.
* </p>
* *
* @author Sam Brannen * @author Sam Brannen
* @since 2.5 * @since 2.5
*/ */
@ContextConfiguration(locations = { "BeanOverridingDefaultLocationsInheritedTests-context.xml" }) @ContextConfiguration("BeanOverridingDefaultLocationsInheritedTests-context.xml")
public class BeanOverridingExplicitLocationsInheritedTests extends ExplicitLocationsBaseTests { public class BeanOverridingExplicitLocationsInheritedTests extends ExplicitLocationsBaseTests {
@Test @Test

View File

@ -27,13 +27,11 @@ import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/** /**
* <p>
* JUnit 4 based unit test for verifying support for the * JUnit 4 based unit test for verifying support for the
* {@link ContextConfiguration#inheritLocations() inheritLocations} flag of * {@link ContextConfiguration#inheritLocations() inheritLocations} flag of
* {@link ContextConfiguration @ContextConfiguration} indirectly proposed in <a * {@link ContextConfiguration @ContextConfiguration} indirectly proposed in <a
* href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896" * href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896"
* target="_blank">SPR-3896</a>. * target="_blank">SPR-3896</a>.
* </p>
* *
* @author Sam Brannen * @author Sam Brannen
* @since 2.5 * @since 2.5

View File

@ -20,19 +20,16 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
import org.junit.Test; import org.junit.Test;
import org.springframework.beans.Pet; import org.springframework.beans.Pet;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;
/** /**
* <p>
* JUnit 4 based unit test for verifying support for the * JUnit 4 based unit test for verifying support for the
* {@link ContextConfiguration#inheritLocations() inheritLocations} flag of * {@link ContextConfiguration#inheritLocations() inheritLocations} flag of
* {@link ContextConfiguration @ContextConfiguration} indirectly proposed in <a * {@link ContextConfiguration @ContextConfiguration} indirectly proposed in <a
* href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896" * href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896"
* target="_blank">SPR-3896</a>. * target="_blank">SPR-3896</a>.
* </p>
* *
* @author Sam Brannen * @author Sam Brannen
* @since 2.5 * @since 2.5

View File

@ -21,29 +21,23 @@ import static org.junit.Assert.assertNotNull;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.beans.Employee; import org.springframework.beans.Employee;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestExecutionListeners;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.DependencyInjectionTestExecutionListener;
/** /**
* <p>
* JUnit 4 based unit test for verifying support for the * JUnit 4 based unit test for verifying support for the
* {@link ContextConfiguration#inheritLocations() inheritLocations} flag of * {@link ContextConfiguration#inheritLocations() inheritLocations} flag of
* {@link ContextConfiguration @ContextConfiguration} indirectly proposed in <a * {@link ContextConfiguration @ContextConfiguration} indirectly proposed in <a
* href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896" * href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896"
* target="_blank">SPR-3896</a>. * target="_blank">SPR-3896</a>.
* </p>
* *
* @author Sam Brannen * @author Sam Brannen
* @since 2.5 * @since 2.5
*/ */
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "DefaultLocationsBaseTests-context.xml" }) @ContextConfiguration("DefaultLocationsBaseTests-context.xml")
@TestExecutionListeners( { DependencyInjectionTestExecutionListener.class })
public class ExplicitLocationsBaseTests { public class ExplicitLocationsBaseTests {
@Autowired @Autowired

View File

@ -20,24 +20,21 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
import org.junit.Test; import org.junit.Test;
import org.springframework.beans.Pet; import org.springframework.beans.Pet;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;
/** /**
* <p>
* JUnit 4 based unit test for verifying support for the * JUnit 4 based unit test for verifying support for the
* {@link ContextConfiguration#inheritLocations() inheritLocations} flag of * {@link ContextConfiguration#inheritLocations() inheritLocations} flag of
* {@link ContextConfiguration @ContextConfiguration} indirectly proposed in <a * {@link ContextConfiguration @ContextConfiguration} indirectly proposed in <a
* href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896" * href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896"
* target="_blank">SPR-3896</a>. * target="_blank">SPR-3896</a>.
* </p>
* *
* @author Sam Brannen * @author Sam Brannen
* @since 2.5 * @since 2.5
*/ */
@ContextConfiguration(locations = { "DefaultLocationsInheritedTests-context.xml" }) @ContextConfiguration("DefaultLocationsInheritedTests-context.xml")
public class ExplicitLocationsInheritedTests extends ExplicitLocationsBaseTests { public class ExplicitLocationsInheritedTests extends ExplicitLocationsBaseTests {
@Autowired @Autowired

View File

@ -21,18 +21,16 @@ import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses; import org.junit.runners.Suite.SuiteClasses;
/** /**
* <p>
* JUnit 4 based test suite for functionality proposed in <a * JUnit 4 based test suite for functionality proposed in <a
* href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896" * href="http://opensource.atlassian.com/projects/spring/browse/SPR-3896"
* target="_blank">SPR-3896</a>. * target="_blank">SPR-3896</a>.
* </p>
* *
* @author Sam Brannen * @author Sam Brannen
* @since 2.5 * @since 2.5
*/ */
@RunWith(Suite.class) @RunWith(Suite.class)
// Note: the following 'multi-line' layout is for enhanced code readability. // Note: the following 'multi-line' layout is for enhanced code readability.
@SuiteClasses( { @SuiteClasses({
DefaultLocationsBaseTests.class, DefaultLocationsBaseTests.class,