From f7953fd65dc9f45b30fc693a20f94b9a3befff04 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Fri, 22 Jun 2018 16:39:57 +0530 Subject: [PATCH] BAEL-6506: Added IntTest to pmd and poms (#4525) --- .gitignore | 6 + core-java-io/pom.xml | 2 + core-java-sun/pom.xml | 1 + core-java/pom.xml | 2 + custom-pmd-0.0.1.jar | Bin 3311 -> 4357 bytes .../pmd/UnitTestNamingConventionRule.java | 1 + .../com/baeldung/jaxb/gen/ObjectFactory.java | 96 +++--- .../com/baeldung/jaxb/gen/UserRequest.java | 174 +++++----- .../com/baeldung/jaxb/gen/UserResponse.java | 298 +++++++++--------- .../com/baeldung/jaxb/gen/package-info.java | 4 +- .../java/org/w3/_2001/xmlschema/Adapter1.java | 46 +-- mustache/pom.xml | 2 + parent-boot-1/pom.xml | 3 +- parent-boot-2/pom.xml | 3 +- pom.xml | 2 + resteasy/pom.xml | 1 + spring-5-mvc/pom.xml | 1 + spring-5-reactive-client/pom.xml | 1 + spring-5-reactive/pom.xml | 1 + spring-5-security/pom.xml | 1 + spring-5/pom.xml | 1 + spring-activiti/pom.xml | 1 + spring-boot-autoconfiguration/pom.xml | 1 + spring-boot-bootstrap/pom.xml | 1 + spring-boot-ops/pom.xml | 1 + spring-boot/.factorypath | 28 +- spring-boot/pom.xml | 1 + spring-cloud/spring-cloud-aws/pom.xml | 1 + .../spring-cloud-connectors-heroku/pom.xml | 1 + spring-jenkins-pipeline/pom.xml | 1 + spring-jersey/pom.xml | 1 + spring-ldap/pom.xml | 1 + spring-mvc-forms-thymeleaf/pom.xml | 1 + spring-mvc-java/pom.xml | 1 + spring-mvc-velocity/pom.xml | 1 + spring-rest-embedded-tomcat/pom.xml | 1 + spring-rest-full/pom.xml | 1 + spring-rest-query-language/pom.xml | 1 + spring-rest-simple/pom.xml | 2 + spring-rest/pom.xml | 1 + spring-security-mvc-boot/pom.xml | 1 + .../spring-security-x509-basic-auth/pom.xml | 1 + .../spring-security-x509-client-auth/pom.xml | 2 + spring-vertx/pom.xml | 1 + 44 files changed, 360 insertions(+), 338 deletions(-) diff --git a/.gitignore b/.gitignore index 51f3d69d9f..e78c1e7e24 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,9 @@ spring-check-if-a-property-is-null/.mvn/wrapper/maven-wrapper.properties *.springBeans 20171220-JMeter.csv + +.factorypath +dependency-reduced-pom.xml +*.so +*.dylib +*.dll diff --git a/core-java-io/pom.xml b/core-java-io/pom.xml index 21e931656d..a98b489d9d 100644 --- a/core-java-io/pom.xml +++ b/core-java-io/pom.xml @@ -220,6 +220,7 @@ **/*LiveTest.java **/*IntegrationTest.java + **/*IntTest.java **/*LongRunningUnitTest.java **/*ManualTest.java @@ -289,6 +290,7 @@ **/*IntegrationTest.java + **/*IntTest.java diff --git a/core-java-sun/pom.xml b/core-java-sun/pom.xml index 3fd8e80296..8662884095 100644 --- a/core-java-sun/pom.xml +++ b/core-java-sun/pom.xml @@ -353,6 +353,7 @@ **/*IntegrationTest.java + **/*IntTest.java diff --git a/core-java/pom.xml b/core-java/pom.xml index f7a2139d99..a823d836e8 100644 --- a/core-java/pom.xml +++ b/core-java/pom.xml @@ -222,6 +222,7 @@ **/*LiveTest.java **/*IntegrationTest.java + **/*IntTest.java **/*LongRunningUnitTest.java **/*ManualTest.java @@ -387,6 +388,7 @@ **/*IntegrationTest.java + **/*IntTest.java diff --git a/custom-pmd-0.0.1.jar b/custom-pmd-0.0.1.jar index 5038a704752743a87999b917976d11c78b322af1..e19bce6e52a4b43fc383cbb5f176c57b6c99bd95 100644 GIT binary patch literal 4357 zcmeHKdpuNWAD<$`=oQwkOD*M+$;`TqvLWL#E;Ft(ZZ%}mU^0v~hN)?jQbI0~%ch95 zR=I`@BDr59lw60bTw1w|#UkD_tMIDzzPLtYBT&uSG=P#qrbUsJ4ah#V}FrWM{YR-qVs--cue z2j}t$qJR$}mO>~?OqovDj-WcxG~Uu6LfRSL>a*2nV+8o+iyY)TC66e~fM4_ThtdjZ z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Y-i6Yb_K=phreD*iIHA}~_@ ztj0|V;2Fj-T2sln4Vq~|a9$Q1XW7#yPG2|Edo%0FaQY|N$B?gN*p#-}4hMys9Yuv- zt4#+!H+Rm;taf4bLT``( z0OQmEfW)r}xw$%neVv`2!rEQ_6a!TsUsh(*EIGNvca1`AMuZH=s}*?mwUAm5&^(-1 zOWWH3Hx5k@GBxDQzCYJAG?YHG7*QZIUz>a-y-jtvd*RY7?(j5v(ClQPK){SvGKaD< zWa@aiN~#y)qn>g3;`GX$m^VS|aO}`jX6zBm>sA+-c#3n-D{CHQ4renfu{__h*t}F* z@p0z5;(9WXR~da~GyT zz}+1t|BX|DImx%Ydwpr^oa2VYs85z0D9}>S02yj%4!d!DQD3p1qTFX?b*o;cVIWZ3 z=sC9n2!HCKwg}J#odmINu0{7CVciw|tZ?m*8WzdR98n;0fv)nSs?ng1VLAZ(2b#{`HmHS1y?vvox2=BP$wckP>iZQ<<;2@l4$0Wgm3G;x`!--aB(- zquw)3uXqR^=ZF(f3d82Q*eyLvh+Vm`a6)Zh64Ams8a$Z#8VT017Je?9f3>x-W9GqH zOXe0CY4y{74>%QXZO*t6RuGbK$p89Ea`SL?v++RM+jw%e)&c9q=mD<-vhkp|L%qhK z;%`m)d_9!oip%KD6fm|E<3bkWjxG(nCIWT1AR4ZQL8%olU(Oc3UN;MG}U1 zC8n+IA~I$PLn4FZAq4mNIhB~cwu?w*B-p{ zlB9Ek?*E$b4=diC!-KcvuKpzLzfZ%S#) allowedEndings = Arrays.asList( "IntegrationTest", + "IntTest", "ManualTest", "JdbcTest", "LiveTest", diff --git a/jaxb/src/main/java/com/baeldung/jaxb/gen/ObjectFactory.java b/jaxb/src/main/java/com/baeldung/jaxb/gen/ObjectFactory.java index 0a3da677ce..26cd5814ac 100644 --- a/jaxb/src/main/java/com/baeldung/jaxb/gen/ObjectFactory.java +++ b/jaxb/src/main/java/com/baeldung/jaxb/gen/ObjectFactory.java @@ -1,48 +1,48 @@ - -package com.baeldung.jaxb.gen; - -import javax.xml.bind.annotation.XmlRegistry; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the com.baeldung.jaxb.gen package. - *

An ObjectFactory allows you to programatically - * construct new instances of the Java representation - * for XML content. The Java representation of XML - * content can consist of schema derived interfaces - * and classes representing the binding of schema - * type definitions, element declarations and model - * groups. Factory methods for each of these are - * provided in this class. - * - */ -@XmlRegistry -public class ObjectFactory { - - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.baeldung.jaxb.gen - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link UserRequest } - * - */ - public UserRequest createUserRequest() { - return new UserRequest(); - } - - /** - * Create an instance of {@link UserResponse } - * - */ - public UserResponse createUserResponse() { - return new UserResponse(); - } - -} + +package com.baeldung.jaxb.gen; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the com.baeldung.jaxb.gen package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.baeldung.jaxb.gen + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link UserRequest } + * + */ + public UserRequest createUserRequest() { + return new UserRequest(); + } + + /** + * Create an instance of {@link UserResponse } + * + */ + public UserResponse createUserResponse() { + return new UserResponse(); + } + +} diff --git a/jaxb/src/main/java/com/baeldung/jaxb/gen/UserRequest.java b/jaxb/src/main/java/com/baeldung/jaxb/gen/UserRequest.java index 1c1abc61a6..4cfbeb8d46 100644 --- a/jaxb/src/main/java/com/baeldung/jaxb/gen/UserRequest.java +++ b/jaxb/src/main/java/com/baeldung/jaxb/gen/UserRequest.java @@ -1,87 +1,87 @@ - -package com.baeldung.jaxb.gen; - -import java.io.Serializable; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for UserRequest complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="UserRequest">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
- *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "UserRequest", propOrder = { - "id", - "name" -}) -@XmlRootElement(name = "userRequest") -public class UserRequest - implements Serializable -{ - - private final static long serialVersionUID = -1L; - protected int id; - @XmlElement(required = true) - protected String name; - - /** - * Gets the value of the id property. - * - */ - public int getId() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setId(int value) { - this.id = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} + +package com.baeldung.jaxb.gen; + +import java.io.Serializable; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for UserRequest complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="UserRequest">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "UserRequest", propOrder = { + "id", + "name" +}) +@XmlRootElement(name = "userRequest") +public class UserRequest + implements Serializable +{ + + private final static long serialVersionUID = -1L; + protected int id; + @XmlElement(required = true) + protected String name; + + /** + * Gets the value of the id property. + * + */ + public int getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(int value) { + this.id = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + +} diff --git a/jaxb/src/main/java/com/baeldung/jaxb/gen/UserResponse.java b/jaxb/src/main/java/com/baeldung/jaxb/gen/UserResponse.java index b80405e4a9..d86778403a 100644 --- a/jaxb/src/main/java/com/baeldung/jaxb/gen/UserResponse.java +++ b/jaxb/src/main/java/com/baeldung/jaxb/gen/UserResponse.java @@ -1,149 +1,149 @@ - -package com.baeldung.jaxb.gen; - -import java.io.Serializable; -import java.util.Calendar; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; -import org.w3._2001.xmlschema.Adapter1; - - -/** - *

Java class for UserResponse complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="UserResponse">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
- *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="gender" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="created" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "UserResponse", propOrder = { - "id", - "name", - "gender", - "created" -}) -@XmlRootElement(name = "userResponse") -public class UserResponse - implements Serializable -{ - - private final static long serialVersionUID = -1L; - protected int id; - @XmlElement(required = true) - protected String name; - @XmlElement(required = true) - protected String gender; - @XmlElement(required = true, type = String.class) - @XmlJavaTypeAdapter(Adapter1 .class) - @XmlSchemaType(name = "dateTime") - protected Calendar created; - - /** - * Gets the value of the id property. - * - */ - public int getId() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setId(int value) { - this.id = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the gender property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGender() { - return gender; - } - - /** - * Sets the value of the gender property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGender(String value) { - this.gender = value; - } - - /** - * Gets the value of the created property. - * - * @return - * possible object is - * {@link String } - * - */ - public Calendar getCreated() { - return created; - } - - /** - * Sets the value of the created property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCreated(Calendar value) { - this.created = value; - } - -} + +package com.baeldung.jaxb.gen; + +import java.io.Serializable; +import java.util.Calendar; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.w3._2001.xmlschema.Adapter1; + + +/** + *

Java class for UserResponse complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="UserResponse">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="gender" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="created" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "UserResponse", propOrder = { + "id", + "name", + "gender", + "created" +}) +@XmlRootElement(name = "userResponse") +public class UserResponse + implements Serializable +{ + + private final static long serialVersionUID = -1L; + protected int id; + @XmlElement(required = true) + protected String name; + @XmlElement(required = true) + protected String gender; + @XmlElement(required = true, type = String.class) + @XmlJavaTypeAdapter(Adapter1 .class) + @XmlSchemaType(name = "dateTime") + protected Calendar created; + + /** + * Gets the value of the id property. + * + */ + public int getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(int value) { + this.id = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the gender property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGender() { + return gender; + } + + /** + * Sets the value of the gender property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGender(String value) { + this.gender = value; + } + + /** + * Gets the value of the created property. + * + * @return + * possible object is + * {@link String } + * + */ + public Calendar getCreated() { + return created; + } + + /** + * Sets the value of the created property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCreated(Calendar value) { + this.created = value; + } + +} diff --git a/jaxb/src/main/java/com/baeldung/jaxb/gen/package-info.java b/jaxb/src/main/java/com/baeldung/jaxb/gen/package-info.java index 639d00179c..6384eab27f 100644 --- a/jaxb/src/main/java/com/baeldung/jaxb/gen/package-info.java +++ b/jaxb/src/main/java/com/baeldung/jaxb/gen/package-info.java @@ -1,2 +1,2 @@ -@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.baeldung.com/jaxb/gen", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) -package com.baeldung.jaxb.gen; +@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.baeldung.com/jaxb/gen", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package com.baeldung.jaxb.gen; diff --git a/jaxb/src/main/java/org/w3/_2001/xmlschema/Adapter1.java b/jaxb/src/main/java/org/w3/_2001/xmlschema/Adapter1.java index 54b3c360dc..b4865b5510 100644 --- a/jaxb/src/main/java/org/w3/_2001/xmlschema/Adapter1.java +++ b/jaxb/src/main/java/org/w3/_2001/xmlschema/Adapter1.java @@ -1,23 +1,23 @@ - -package org.w3._2001.xmlschema; - -import java.util.Calendar; -import javax.xml.bind.annotation.adapters.XmlAdapter; - -public class Adapter1 - extends XmlAdapter -{ - - - public Calendar unmarshal(String value) { - return (javax.xml.bind.DatatypeConverter.parseDateTime(value)); - } - - public String marshal(Calendar value) { - if (value == null) { - return null; - } - return (javax.xml.bind.DatatypeConverter.printDateTime(value)); - } - -} + +package org.w3._2001.xmlschema; + +import java.util.Calendar; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter1 + extends XmlAdapter +{ + + + public Calendar unmarshal(String value) { + return (javax.xml.bind.DatatypeConverter.parseDateTime(value)); + } + + public String marshal(Calendar value) { + if (value == null) { + return null; + } + return (javax.xml.bind.DatatypeConverter.printDateTime(value)); + } + +} diff --git a/mustache/pom.xml b/mustache/pom.xml index 88d87758cd..40fcecc4f8 100644 --- a/mustache/pom.xml +++ b/mustache/pom.xml @@ -95,6 +95,7 @@ **/*IntegrationTest.java + **/*IntTest.java @@ -125,6 +126,7 @@ **/*LiveTest.java **/*IntegrationTest.java + **/*IntTest.java **/AutoconfigurationTest.java diff --git a/parent-boot-1/pom.xml b/parent-boot-1/pom.xml index af14d88aff..bd28f7c5e2 100644 --- a/parent-boot-1/pom.xml +++ b/parent-boot-1/pom.xml @@ -47,6 +47,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LongRunningUnitTest.java **/*ManualTest.java **/*LiveTest.java @@ -88,8 +89,8 @@ **/*IntegrationTest.java - */EthControllerTestOne.java **/*IntTest.java + */EthControllerTestOne.java **/*EntryPointsTest.java diff --git a/parent-boot-2/pom.xml b/parent-boot-2/pom.xml index 625a96ff9d..b62d37b3f0 100644 --- a/parent-boot-2/pom.xml +++ b/parent-boot-2/pom.xml @@ -48,6 +48,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LongRunningUnitTest.java **/*ManualTest.java **/*LiveTest.java @@ -89,8 +90,8 @@ **/*IntegrationTest.java - */EthControllerTestOne.java **/*IntTest.java + */EthControllerTestOne.java **/*EntryPointsTest.java diff --git a/pom.xml b/pom.xml index 215da5d9d9..39419ec035 100644 --- a/pom.xml +++ b/pom.xml @@ -348,6 +348,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LongRunningUnitTest.java **/*ManualTest.java **/JdbcTest.java @@ -473,6 +474,7 @@ **/*IntegrationTest.java + **/*IntTest.java diff --git a/resteasy/pom.xml b/resteasy/pom.xml index 61c099f110..aca9fe3635 100644 --- a/resteasy/pom.xml +++ b/resteasy/pom.xml @@ -98,6 +98,7 @@ **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java diff --git a/spring-5-mvc/pom.xml b/spring-5-mvc/pom.xml index 711463c430..ae9ceb990a 100644 --- a/spring-5-mvc/pom.xml +++ b/spring-5-mvc/pom.xml @@ -145,6 +145,7 @@ false **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java diff --git a/spring-5-reactive-client/pom.xml b/spring-5-reactive-client/pom.xml index e9e7c7c3e3..ca1cbc475a 100644 --- a/spring-5-reactive-client/pom.xml +++ b/spring-5-reactive-client/pom.xml @@ -155,6 +155,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java diff --git a/spring-5-reactive/pom.xml b/spring-5-reactive/pom.xml index 8b40ccee00..6bec7f18cc 100644 --- a/spring-5-reactive/pom.xml +++ b/spring-5-reactive/pom.xml @@ -171,6 +171,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java diff --git a/spring-5-security/pom.xml b/spring-5-security/pom.xml index 96cbff8938..f6d0ef8b4a 100644 --- a/spring-5-security/pom.xml +++ b/spring-5-security/pom.xml @@ -81,6 +81,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java diff --git a/spring-5/pom.xml b/spring-5/pom.xml index bbd5272ae1..6e66fe1e99 100644 --- a/spring-5/pom.xml +++ b/spring-5/pom.xml @@ -175,6 +175,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java diff --git a/spring-activiti/pom.xml b/spring-activiti/pom.xml index 5b6911a450..edabb502dd 100644 --- a/spring-activiti/pom.xml +++ b/spring-activiti/pom.xml @@ -59,6 +59,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LongRunningUnitTest.java **/*ManualTest.java **/JdbcTest.java diff --git a/spring-boot-autoconfiguration/pom.xml b/spring-boot-autoconfiguration/pom.xml index 2687fcd969..2a61b89b5d 100644 --- a/spring-boot-autoconfiguration/pom.xml +++ b/spring-boot-autoconfiguration/pom.xml @@ -79,6 +79,7 @@ **/*LiveTest.java **/*IntegrationTest.java + **/*IntTest.java **/AutoconfigurationTest.java diff --git a/spring-boot-bootstrap/pom.xml b/spring-boot-bootstrap/pom.xml index ff5bca615b..9ba4d9a5eb 100644 --- a/spring-boot-bootstrap/pom.xml +++ b/spring-boot-bootstrap/pom.xml @@ -72,6 +72,7 @@ **/*LiveTest.java **/*IntegrationTest.java + **/*IntTest.java **/AutoconfigurationTest.java diff --git a/spring-boot-ops/pom.xml b/spring-boot-ops/pom.xml index dce826dbb5..21a7d22077 100644 --- a/spring-boot-ops/pom.xml +++ b/spring-boot-ops/pom.xml @@ -163,6 +163,7 @@ **/*LiveTest.java **/*IntegrationTest.java + **/*IntTest.java **/AutoconfigurationTest.java diff --git a/spring-boot/.factorypath b/spring-boot/.factorypath index 88c3910e93..68b2514aab 100644 --- a/spring-boot/.factorypath +++ b/spring-boot/.factorypath @@ -49,8 +49,6 @@ - - @@ -70,22 +68,11 @@ - - - - - - - - - - - @@ -98,22 +85,10 @@ - - - - - - - - - - - - - + @@ -149,7 +124,6 @@ - diff --git a/spring-boot/pom.xml b/spring-boot/pom.xml index c1b21b9b5e..d8ee3cc2d9 100644 --- a/spring-boot/pom.xml +++ b/spring-boot/pom.xml @@ -170,6 +170,7 @@ **/*LiveTest.java **/*IntegrationTest.java + **/*IntTest.java **/AutoconfigurationTest.java diff --git a/spring-cloud/spring-cloud-aws/pom.xml b/spring-cloud/spring-cloud-aws/pom.xml index 2d2c29e53e..d076dc5e8e 100644 --- a/spring-cloud/spring-cloud-aws/pom.xml +++ b/spring-cloud/spring-cloud-aws/pom.xml @@ -66,6 +66,7 @@ **/*IntegrationTest.java + **/*IntTest.java diff --git a/spring-cloud/spring-cloud-connectors-heroku/pom.xml b/spring-cloud/spring-cloud-connectors-heroku/pom.xml index 9b5d7c91d9..0363962c95 100644 --- a/spring-cloud/spring-cloud-connectors-heroku/pom.xml +++ b/spring-cloud/spring-cloud-connectors-heroku/pom.xml @@ -65,6 +65,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LongRunningUnitTest.java **/*ManualTest.java **/JdbcTest.java diff --git a/spring-jenkins-pipeline/pom.xml b/spring-jenkins-pipeline/pom.xml index 6d26d18f96..9c3b6f14ed 100644 --- a/spring-jenkins-pipeline/pom.xml +++ b/spring-jenkins-pipeline/pom.xml @@ -55,6 +55,7 @@ **/*IntegrationTest.java + **/*IntTest.java diff --git a/spring-jersey/pom.xml b/spring-jersey/pom.xml index 4a37f4b2ab..5fb4adcc61 100644 --- a/spring-jersey/pom.xml +++ b/spring-jersey/pom.xml @@ -127,6 +127,7 @@ **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java diff --git a/spring-ldap/pom.xml b/spring-ldap/pom.xml index 2f806e89f8..41683d32a1 100644 --- a/spring-ldap/pom.xml +++ b/spring-ldap/pom.xml @@ -127,6 +127,7 @@ **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java diff --git a/spring-mvc-forms-thymeleaf/pom.xml b/spring-mvc-forms-thymeleaf/pom.xml index 59130a0133..31e5b6cd48 100644 --- a/spring-mvc-forms-thymeleaf/pom.xml +++ b/spring-mvc-forms-thymeleaf/pom.xml @@ -58,6 +58,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java diff --git a/spring-mvc-java/pom.xml b/spring-mvc-java/pom.xml index f1c2b0b9f5..14ced24da7 100644 --- a/spring-mvc-java/pom.xml +++ b/spring-mvc-java/pom.xml @@ -207,6 +207,7 @@ **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java diff --git a/spring-mvc-velocity/pom.xml b/spring-mvc-velocity/pom.xml index 330de252e7..077d55c2de 100644 --- a/spring-mvc-velocity/pom.xml +++ b/spring-mvc-velocity/pom.xml @@ -112,6 +112,7 @@ true **/*IntegrationTest.java + **/*IntTest.java diff --git a/spring-rest-embedded-tomcat/pom.xml b/spring-rest-embedded-tomcat/pom.xml index 0bb947f96d..8fbecb86e8 100644 --- a/spring-rest-embedded-tomcat/pom.xml +++ b/spring-rest-embedded-tomcat/pom.xml @@ -74,6 +74,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LongRunningUnitTest.java **/*ManualTest.java **/JdbcTest.java diff --git a/spring-rest-full/pom.xml b/spring-rest-full/pom.xml index 2beff519c0..1df22faddd 100644 --- a/spring-rest-full/pom.xml +++ b/spring-rest-full/pom.xml @@ -286,6 +286,7 @@ **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java diff --git a/spring-rest-query-language/pom.xml b/spring-rest-query-language/pom.xml index c16c6b583d..398181c1c8 100644 --- a/spring-rest-query-language/pom.xml +++ b/spring-rest-query-language/pom.xml @@ -305,6 +305,7 @@ **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java diff --git a/spring-rest-simple/pom.xml b/spring-rest-simple/pom.xml index e774dc6ad9..36ee39ab27 100644 --- a/spring-rest-simple/pom.xml +++ b/spring-rest-simple/pom.xml @@ -227,6 +227,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LongRunningUnitTest.java **/*ManualTest.java **/JdbcTest.java @@ -282,6 +283,7 @@ **/*IntegrationTest.java + **/*IntTest.java diff --git a/spring-rest/pom.xml b/spring-rest/pom.xml index d56eb9949b..2b6b663b2a 100644 --- a/spring-rest/pom.xml +++ b/spring-rest/pom.xml @@ -253,6 +253,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LongRunningUnitTest.java **/*ManualTest.java **/*LiveTest.java diff --git a/spring-security-mvc-boot/pom.xml b/spring-security-mvc-boot/pom.xml index fe95461eab..3b1796b978 100644 --- a/spring-security-mvc-boot/pom.xml +++ b/spring-security-mvc-boot/pom.xml @@ -211,6 +211,7 @@ **/*LiveTest.java **/*IntegrationTest.java + **/*IntTest.java **/*EntryPointsTest.java diff --git a/spring-security-x509/spring-security-x509-basic-auth/pom.xml b/spring-security-x509/spring-security-x509-basic-auth/pom.xml index 67a7e29e6f..56600302e0 100644 --- a/spring-security-x509/spring-security-x509-basic-auth/pom.xml +++ b/spring-security-x509/spring-security-x509-basic-auth/pom.xml @@ -30,6 +30,7 @@ **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java diff --git a/spring-security-x509/spring-security-x509-client-auth/pom.xml b/spring-security-x509/spring-security-x509-client-auth/pom.xml index 7dd919973d..ea5521c93d 100644 --- a/spring-security-x509/spring-security-x509-client-auth/pom.xml +++ b/spring-security-x509/spring-security-x509-client-auth/pom.xml @@ -30,6 +30,7 @@ **/*IntegrationTest.java + **/*IntTest.java **/*LiveTest.java @@ -57,6 +58,7 @@ **/*IntegrationTest.java + **/*IntTest.java diff --git a/spring-vertx/pom.xml b/spring-vertx/pom.xml index 0d535f79e4..449e94b15e 100644 --- a/spring-vertx/pom.xml +++ b/spring-vertx/pom.xml @@ -66,6 +66,7 @@ true **/*IntegrationTest.java + **/*IntTest.java **/*LongRunningUnitTest.java **/*ManualTest.java **/JdbcTest.java