Rename test fixture package in spring-beans
See gh-23550
This commit is contained in:
@@ -19,7 +19,7 @@ package org.springframework.test.context.configuration;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.ContextLoader;
|
||||
import org.springframework.test.context.junit4.PropertiesBasedSpringJUnit4ClassRunnerAppCtxTests;
|
||||
|
||||
@@ -19,7 +19,7 @@ package org.springframework.test.context.configuration;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.ContextLoader;
|
||||
import org.springframework.test.context.junit4.PropertiesBasedSpringJUnit4ClassRunnerAppCtxTests;
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Profile;
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.test.context.configuration.interfaces;
|
||||
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.configuration.interfaces.ContextConfigurationTestInterface.Config;
|
||||
|
||||
@@ -19,8 +19,8 @@ package org.springframework.test.context.groovy;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@@ -18,8 +18,8 @@ package org.springframework.test.context.groovy;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.support.GenericGroovyApplicationContext;
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@ import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.springframework.beans.factory.BeanNameAware;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
|
||||
@@ -20,8 +20,8 @@ import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@ import org.junit.Test;
|
||||
import org.springframework.beans.factory.BeanNameAware;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.transaction.AfterTransaction;
|
||||
import org.springframework.test.context.transaction.BeforeTransaction;
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.BootstrapWith;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.ContextLoader;
|
||||
|
||||
@@ -28,8 +28,8 @@ import org.junit.runners.Parameterized.Parameter;
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.TestContextManager;
|
||||
|
||||
@@ -22,7 +22,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.support.GenericPropertiesContextLoader;
|
||||
|
||||
@@ -28,8 +28,8 @@ import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ApplicationContextAware;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
@@ -18,7 +18,7 @@ package org.springframework.test.context.junit4.annotation;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
@@ -19,7 +19,7 @@ package org.springframework.test.context.junit4.annotation;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
@@ -18,7 +18,7 @@ package org.springframework.test.context.junit4.annotation;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
@@ -19,7 +19,7 @@ package org.springframework.test.context.junit4.annotation;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.test.context.support.DelegatingSmartContextLoader;
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.test.context.support.DelegatingSmartContextLoader;
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
package org.springframework.test.context.junit4.annotation;
|
||||
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.test.context.junit4.annotation.PojoAndStringConfig;
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.test.context.junit4.profile.annotation;
|
||||
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.test.context.junit4.profile.annotation;
|
||||
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Profile;
|
||||
|
||||
@@ -20,8 +20,8 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.test.context.junit4.profile.importresource;
|
||||
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.ImportResource;
|
||||
|
||||
@@ -20,8 +20,8 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ import org.junit.runners.Parameterized.Parameter;
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ package org.springframework.test.context.junit4.spr3896;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ package org.springframework.test.context.junit4.spr3896;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
|
||||
import org.springframework.test.annotation.DirtiesContext;
|
||||
|
||||
@@ -20,7 +20,7 @@ import javax.sql.DataSource;
|
||||
|
||||
import org.junit.Before;
|
||||
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
|
||||
|
||||
@@ -20,7 +20,7 @@ import javax.sql.DataSource;
|
||||
|
||||
import org.junit.Before;
|
||||
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
|
||||
@@ -19,8 +19,8 @@ package org.springframework.test.context.testng;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
@@ -25,8 +25,8 @@ import org.testng.annotations.BeforeMethod;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
|
||||
|
||||
@@ -27,8 +27,8 @@ import org.testng.annotations.Test;
|
||||
import org.springframework.beans.factory.BeanNameAware;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.Employee;
|
||||
import org.springframework.beans.test.fixtures.beans.Pet;
|
||||
import org.springframework.beans.testfixture.beans.Employee;
|
||||
import org.springframework.beans.testfixture.beans.Pet;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.transaction.AfterTransaction;
|
||||
import org.springframework.test.context.transaction.BeforeTransaction;
|
||||
|
||||
@@ -19,7 +19,7 @@ package org.springframework.test.context.web;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.test.fixtures.beans.TestBean;
|
||||
import org.springframework.beans.testfixture.beans.TestBean;
|
||||
import org.springframework.mock.web.MockHttpServletRequest;
|
||||
import org.springframework.mock.web.MockHttpSession;
|
||||
import org.springframework.test.context.junit.jupiter.web.SpringJUnitWebConfig;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
dog.(class)=org.springframework.beans.test.fixtures.beans.Pet
|
||||
dog.(class)=org.springframework.beans.testfixture.beans.Pet
|
||||
dog.$0=Fido
|
||||
|
||||
testString2.(class)=java.lang.String
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
dog.(class)=org.springframework.beans.test.fixtures.beans.Pet
|
||||
dog.(class)=org.springframework.beans.testfixture.beans.Pet
|
||||
dog.$0=Fido
|
||||
|
||||
testString2.(class)=java.lang.String
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
package org.springframework.test.context.groovy
|
||||
|
||||
import org.springframework.beans.test.fixtures.beans.Employee
|
||||
import org.springframework.beans.test.fixtures.beans.Pet
|
||||
import org.springframework.beans.testfixture.beans.Employee
|
||||
import org.springframework.beans.testfixture.beans.Pet
|
||||
|
||||
/**
|
||||
* Groovy script for defining Spring beans for integration tests.
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
package org.springframework.test.context.groovy
|
||||
|
||||
import org.springframework.beans.test.fixtures.beans.Employee
|
||||
import org.springframework.beans.test.fixtures.beans.Pet
|
||||
import org.springframework.beans.testfixture.beans.Employee
|
||||
import org.springframework.beans.testfixture.beans.Pet
|
||||
|
||||
/**
|
||||
* Groovy script for defining Spring beans for integration tests.
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
|
||||
<bean id="employee" class="org.springframework.beans.test.fixtures.beans.Employee">
|
||||
<bean id="employee" class="org.springframework.beans.testfixture.beans.Employee">
|
||||
<property name="name" value="Dilbert" />
|
||||
<property name="age" value="42" />
|
||||
<property name="company" value="???" />
|
||||
</bean>
|
||||
|
||||
<bean id="pet" class="org.springframework.beans.test.fixtures.beans.Pet">
|
||||
<bean id="pet" class="org.springframework.beans.testfixture.beans.Pet">
|
||||
<constructor-arg value="Dogbert" />
|
||||
</bean>
|
||||
|
||||
|
||||
@@ -10,13 +10,13 @@
|
||||
<jdbc:script location="classpath:/org/springframework/test/jdbc/data.sql"/>
|
||||
</jdbc:initialize-database>
|
||||
|
||||
<bean id="employee" class="org.springframework.beans.test.fixtures.beans.Employee">
|
||||
<bean id="employee" class="org.springframework.beans.testfixture.beans.Employee">
|
||||
<property name="name" value="John Smith" />
|
||||
<property name="age" value="42" />
|
||||
<property name="company" value="Acme Widgets, Inc." />
|
||||
</bean>
|
||||
|
||||
<bean id="pet" class="org.springframework.beans.test.fixtures.beans.Pet">
|
||||
<bean id="pet" class="org.springframework.beans.testfixture.beans.Pet">
|
||||
<constructor-arg value="Fido" />
|
||||
</bean>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<bean id="employee" class="org.springframework.beans.test.fixtures.beans.Employee">
|
||||
<bean id="employee" class="org.springframework.beans.testfixture.beans.Employee">
|
||||
<property name="name" value="John Smith" />
|
||||
<property name="age" value="42" />
|
||||
<property name="company" value="Acme Widgets, Inc." />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<bean id="pet" class="org.springframework.beans.test.fixtures.beans.Pet">
|
||||
<bean id="pet" class="org.springframework.beans.testfixture.beans.Pet">
|
||||
<constructor-arg value="Fido" />
|
||||
</bean>
|
||||
|
||||
|
||||
@@ -2,19 +2,19 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
|
||||
<bean id="employee1" class="org.springframework.beans.test.fixtures.beans.Employee">
|
||||
<bean id="employee1" class="org.springframework.beans.testfixture.beans.Employee">
|
||||
<property name="name" value="John Smith" />
|
||||
<property name="age" value="42" />
|
||||
<property name="company" value="Acme Widgets, Inc." />
|
||||
</bean>
|
||||
|
||||
<bean id="employee2" class="org.springframework.beans.test.fixtures.beans.Employee">
|
||||
<bean id="employee2" class="org.springframework.beans.testfixture.beans.Employee">
|
||||
<property name="name" value="Jane Smith" />
|
||||
<property name="age" value="38" />
|
||||
<property name="company" value="Acme Widgets, Inc." />
|
||||
</bean>
|
||||
|
||||
<bean id="pet" class="org.springframework.beans.test.fixtures.beans.Pet">
|
||||
<bean id="pet" class="org.springframework.beans.testfixture.beans.Pet">
|
||||
<constructor-arg value="Fido" />
|
||||
</bean>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
cat.(class)=org.springframework.beans.test.fixtures.beans.Pet
|
||||
cat.(class)=org.springframework.beans.testfixture.beans.Pet
|
||||
cat.$0=Garfield
|
||||
|
||||
testString.(class)=java.lang.String
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<bean id="employee" class="org.springframework.beans.test.fixtures.beans.Employee">
|
||||
<bean id="employee" class="org.springframework.beans.testfixture.beans.Employee">
|
||||
<property name="name" value="John Smith" />
|
||||
<property name="age" value="42" />
|
||||
<property name="company" value="Acme Widgets, Inc." />
|
||||
</bean>
|
||||
|
||||
<bean id="pet" class="org.springframework.beans.test.fixtures.beans.Pet">
|
||||
<bean id="pet" class="org.springframework.beans.testfixture.beans.Pet">
|
||||
<constructor-arg value="Fido" />
|
||||
</bean>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||
|
||||
<beans profile="dev">
|
||||
<bean id="employee" class="org.springframework.beans.test.fixtures.beans.Employee">
|
||||
<bean id="employee" class="org.springframework.beans.testfixture.beans.Employee">
|
||||
<property name="name" value="John Smith" />
|
||||
<property name="age" value="42" />
|
||||
<property name="company" value="Acme Widgets, Inc." />
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
|
||||
|
||||
<bean id="pet" class="org.springframework.beans.test.fixtures.beans.Pet">
|
||||
<bean id="pet" class="org.springframework.beans.testfixture.beans.Pet">
|
||||
<constructor-arg value="Fido" />
|
||||
</bean>
|
||||
|
||||
<beans profile="dev">
|
||||
<bean id="employee" class="org.springframework.beans.test.fixtures.beans.Employee">
|
||||
<bean id="employee" class="org.springframework.beans.testfixture.beans.Employee">
|
||||
<property name="name" value="John Smith" />
|
||||
<property name="age" value="42" />
|
||||
<property name="company" value="Acme Widgets, Inc." />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<bean id="employee" class="org.springframework.beans.test.fixtures.beans.Employee">
|
||||
<bean id="employee" class="org.springframework.beans.testfixture.beans.Employee">
|
||||
<property name="name" value="Yoda" />
|
||||
<property name="age" value="900" />
|
||||
<property name="company" value="The Force" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<bean id="employee" class="org.springframework.beans.test.fixtures.beans.Employee">
|
||||
<bean id="employee" class="org.springframework.beans.testfixture.beans.Employee">
|
||||
<property name="name" value="John Smith" />
|
||||
<property name="age" value="42" />
|
||||
<property name="company" value="Acme Widgets, Inc." />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<bean id="pet" class="org.springframework.beans.test.fixtures.beans.Pet">
|
||||
<bean id="pet" class="org.springframework.beans.testfixture.beans.Pet">
|
||||
<constructor-arg value="Fido" />
|
||||
</bean>
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/jdbc https://www.springframework.org/schema/jdbc/spring-jdbc.xsd">
|
||||
|
||||
<bean id="employee" class="org.springframework.beans.test.fixtures.beans.Employee" p:name="John Smith" p:age="42"
|
||||
<bean id="employee" class="org.springframework.beans.testfixture.beans.Employee" p:name="John Smith" p:age="42"
|
||||
p:company="Acme Widgets, Inc." />
|
||||
|
||||
<bean id="pet" class="org.springframework.beans.test.fixtures.beans.Pet" c:_="Fido" />
|
||||
<bean id="pet" class="org.springframework.beans.testfixture.beans.Pet" c:_="Fido" />
|
||||
|
||||
<bean id="foo" class="java.lang.String" c:_="Foo" />
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
|
||||
<bean id="requestScopedTestBean" class="org.springframework.beans.test.fixtures.beans.TestBean" scope="request">
|
||||
<bean id="requestScopedTestBean" class="org.springframework.beans.testfixture.beans.TestBean" scope="request">
|
||||
<property name="name" value="#{request.contextPath}" />
|
||||
</bean>
|
||||
|
||||
<bean id="sessionScopedTestBean" class="org.springframework.beans.test.fixtures.beans.TestBean" scope="session" />
|
||||
<bean id="sessionScopedTestBean" class="org.springframework.beans.testfixture.beans.TestBean" scope="session" />
|
||||
|
||||
</beans>
|
||||
|
||||
Reference in New Issue
Block a user