Browse Source
* SPR-9431: Eliminate AJ @Async warning in test case Update Apache license headers for moved files Move namespace tests to root integration module Fix several miscellaneous compiler/Eclipse warnings Remove duplicate test resources Fix warnings due to unused import statementspull/213/head
36 changed files with 154 additions and 237 deletions
@ -1,26 +0,0 @@
@@ -1,26 +0,0 @@
|
||||
package com.foo; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
public class Component { |
||||
private String name; |
||||
private List<Component> components = new ArrayList<Component>(); |
||||
|
||||
// mmm, there is no setter method for the 'components'
|
||||
public void addComponent(Component component) { |
||||
this.components.add(component); |
||||
} |
||||
|
||||
public List<Component> getComponents() { |
||||
return components; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
} |
||||
@ -1,11 +0,0 @@
@@ -1,11 +0,0 @@
|
||||
package com.foo; |
||||
|
||||
import org.springframework.beans.factory.xml.NamespaceHandlerSupport; |
||||
|
||||
public class ComponentNamespaceHandler extends NamespaceHandlerSupport { |
||||
@Override |
||||
public void init() { |
||||
registerBeanDefinitionParser("component", |
||||
new ComponentBeanDefinitionParser()); |
||||
} |
||||
} |
||||
@ -1,24 +0,0 @@
@@ -1,24 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd"> |
||||
|
||||
<beans> |
||||
|
||||
<!-- |
||||
Whacky error codes for testing |
||||
--> |
||||
<bean id="Oracle" class="org.springframework.jdbc.support.SQLErrorCodes"> |
||||
<property name="badSqlGrammarCodes"><value>1,2</value></property> |
||||
<property name="dataIntegrityViolationCodes"><value>1,1400,1722</value></property> |
||||
<property name="customTranslations"> |
||||
<list> |
||||
<bean class="org.springframework.jdbc.support.CustomSQLErrorCodesTranslation"> |
||||
<property name="errorCodes"><value>999</value></property> |
||||
<property name="exceptionClass"> |
||||
<value>org.springframework.jdbc.support.CustomErrorCodeException</value> |
||||
</property> |
||||
</bean> |
||||
</list> |
||||
</property> |
||||
</bean> |
||||
|
||||
</beans> |
||||
@ -1,14 +0,0 @@
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd"> |
||||
|
||||
<beans> |
||||
|
||||
<!-- |
||||
Whacky error codes for testing |
||||
--> |
||||
<bean id="Oracle" class="org.springframework.jdbc.support.SQLErrorCodes"> |
||||
<property name="badSqlGrammarCodes"><value>1,2</value></property> |
||||
<property name="dataIntegrityViolationCodes"><value>1,1400,1722</value></property> |
||||
</bean> |
||||
|
||||
</beans> |
||||
@ -1,38 +0,0 @@
@@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd"> |
||||
|
||||
<beans> |
||||
|
||||
<!-- |
||||
Whacky error codes for testing |
||||
--> |
||||
<bean id="Oracle" class="org.springframework.jdbc.support.SQLErrorCodes"> |
||||
<property name="badSqlGrammarCodes"><value>1,2,942</value></property> |
||||
<property name="dataIntegrityViolationCodes"><value>1,1400,1722</value></property> |
||||
</bean> |
||||
|
||||
<bean id="DB0" class="org.springframework.jdbc.support.SQLErrorCodes"> |
||||
<property name="databaseProductName"><value>*DB0</value></property> |
||||
<property name="badSqlGrammarCodes"><value>-204,1,2</value></property> |
||||
<property name="dataIntegrityViolationCodes"><value>3,4</value></property> |
||||
</bean> |
||||
|
||||
<bean id="DB1" class="org.springframework.jdbc.support.SQLErrorCodes"> |
||||
<property name="databaseProductName"><value>DB1*</value></property> |
||||
<property name="badSqlGrammarCodes"><value>-204,1,2</value></property> |
||||
<property name="dataIntegrityViolationCodes"><value>3,4</value></property> |
||||
</bean> |
||||
|
||||
<bean id="DB2" class="org.springframework.jdbc.support.SQLErrorCodes"> |
||||
<property name="databaseProductName"><value>*DB2*</value></property> |
||||
<property name="badSqlGrammarCodes"><value>-204,1,2</value></property> |
||||
<property name="dataIntegrityViolationCodes"><value>3,4</value></property> |
||||
</bean> |
||||
|
||||
<bean id="DB3" class="org.springframework.jdbc.support.SQLErrorCodes"> |
||||
<property name="databaseProductName"><value>*DB3*</value></property> |
||||
<property name="badSqlGrammarCodes"><value>-204,1,2</value></property> |
||||
<property name="dataIntegrityViolationCodes"><value>3,4</value></property> |
||||
</bean> |
||||
|
||||
</beans> |
||||
@ -1,30 +0,0 @@
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd"> |
||||
|
||||
<beans> |
||||
|
||||
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBeanTests$FilterTestLocalSessionFactoryBean"> |
||||
<property name="filterDefinitions"> |
||||
<list> |
||||
<bean class="org.springframework.orm.hibernate3.FilterDefinitionFactoryBean"> |
||||
<property name="filterName" value="filter1"/> |
||||
<property name="parameterTypes"> |
||||
<props> |
||||
<prop key="param1">string</prop> |
||||
<prop key="otherParam">long</prop> |
||||
</props> |
||||
</property> |
||||
<property name="defaultFilterCondition" value="someCondition"/> |
||||
</bean> |
||||
<bean id="filter2" class="org.springframework.orm.hibernate3.FilterDefinitionFactoryBean"> |
||||
<property name="parameterTypes"> |
||||
<props> |
||||
<prop key="myParam">integer</prop> |
||||
</props> |
||||
</property> |
||||
</bean> |
||||
</list> |
||||
</property> |
||||
</bean> |
||||
|
||||
</beans> |
||||
@ -1,32 +0,0 @@
@@ -1,32 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd"> |
||||
|
||||
<beans> |
||||
|
||||
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBeanTests$TypeTestLocalSessionFactoryBean"> |
||||
<property name="typeDefinitions"> |
||||
<list> |
||||
<bean class="org.springframework.orm.hibernate3.TypeDefinitionBean"> |
||||
<property name="typeName" value="type1"/> |
||||
<property name="typeClass" value="mypackage.MyTypeClass"/> |
||||
<property name="parameters"> |
||||
<props> |
||||
<prop key="param1">value1</prop> |
||||
<prop key="otherParam">othervalue</prop> |
||||
</props> |
||||
</property> |
||||
</bean> |
||||
<bean id="type2" class="org.springframework.orm.hibernate3.TypeDefinitionBean"> |
||||
<property name="typeName" value="type2"/> |
||||
<property name="typeClass" value="mypackage.MyOtherTypeClass"/> |
||||
<property name="parameters"> |
||||
<props> |
||||
<prop key="myParam">myvalue</prop> |
||||
</props> |
||||
</property> |
||||
</bean> |
||||
</list> |
||||
</property> |
||||
</bean> |
||||
|
||||
</beans> |
||||
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
myKey=myValue |
||||
@ -1,12 +0,0 @@
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd"> |
||||
|
||||
<beans> |
||||
|
||||
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"/> |
||||
|
||||
<bean id="servletContextAwareBean" class="org.springframework.web.context.ServletContextAwareBean"/> |
||||
|
||||
<bean id="servletConfigAwareBean" class="org.springframework.web.context.ServletConfigAwareBean"/> |
||||
|
||||
</beans> |
||||
@ -1,16 +0,0 @@
@@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd"> |
||||
|
||||
<beans> |
||||
|
||||
<bean id="rob" class="org.springframework.tests.sample.beans.TestBean"> |
||||
<property name="name" value="dummy"/> |
||||
<property name="age" value="-1"/> |
||||
</bean> |
||||
|
||||
<bean id="rodProto" class="org.springframework.tests.sample.beans.TestBean" scope="prototype"> |
||||
<property name="name" value="dummy"/> |
||||
<property name="age" value="-1"/> |
||||
</bean> |
||||
|
||||
</beans> |
||||
@ -1,3 +0,0 @@
@@ -1,3 +0,0 @@
|
||||
form.(class)=org.springframework.web.servlet.view.InternalResourceView |
||||
form.requestContextAttribute=rc |
||||
form.url=myform.jsp |
||||
@ -0,0 +1,42 @@
@@ -0,0 +1,42 @@
|
||||
/* |
||||
* Copyright 2002-2013 the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package com.foo; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
public class Component { |
||||
private String name; |
||||
private List<Component> components = new ArrayList<Component>(); |
||||
|
||||
// mmm, there is no setter method for the 'components'
|
||||
public void addComponent(Component component) { |
||||
this.components.add(component); |
||||
} |
||||
|
||||
public List<Component> getComponents() { |
||||
return components; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
} |
||||
@ -1,3 +1,19 @@
@@ -1,3 +1,19 @@
|
||||
/* |
||||
* Copyright 2002-2013 the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package com.foo; |
||||
|
||||
import java.util.List; |
||||
@ -1,3 +1,19 @@
@@ -1,3 +1,19 @@
|
||||
/* |
||||
* Copyright 2002-2013 the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package com.foo; |
||||
|
||||
import java.util.List; |
||||
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
/* |
||||
* Copyright 2002-2013 the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package com.foo; |
||||
|
||||
import org.springframework.beans.factory.xml.NamespaceHandlerSupport; |
||||
|
||||
public class ComponentNamespaceHandler extends NamespaceHandlerSupport { |
||||
@Override |
||||
public void init() { |
||||
registerBeanDefinitionParser("component", |
||||
new ComponentBeanDefinitionParser()); |
||||
} |
||||
} |
||||
Loading…
Reference in new issue