Skip to content

Commit f7953fd

Browse files
naturalprogrammerpivovarit
authored andcommitted
BAEL-6506: Added IntTest to pmd and poms (eugenp#4525)
1 parent 1848c25 commit f7953fd

File tree

44 files changed

+360
-338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+360
-338
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,9 @@ spring-check-if-a-property-is-null/.mvn/wrapper/maven-wrapper.properties
4242
*.springBeans
4343

4444
20171220-JMeter.csv
45+
46+
.factorypath
47+
dependency-reduced-pom.xml
48+
*.so
49+
*.dylib
50+
*.dll

core-java-io/pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
<excludes>
221221
<exclude>**/*LiveTest.java</exclude>
222222
<exclude>**/*IntegrationTest.java</exclude>
223+
<exclude>**/*IntTest.java</exclude>
223224
<exclude>**/*LongRunningUnitTest.java</exclude>
224225
<exclude>**/*ManualTest.java</exclude>
225226
</excludes>
@@ -289,6 +290,7 @@
289290
</excludes>
290291
<includes>
291292
<include>**/*IntegrationTest.java</include>
293+
<include>**/*IntTest.java</include>
292294
</includes>
293295
</configuration>
294296
</execution>

core-java-sun/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@
353353
</excludes>
354354
<includes>
355355
<include>**/*IntegrationTest.java</include>
356+
<include>**/*IntTest.java</include>
356357
</includes>
357358
</configuration>
358359
</execution>

core-java/pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@
222222
<excludes>
223223
<exclude>**/*LiveTest.java</exclude>
224224
<exclude>**/*IntegrationTest.java</exclude>
225+
<exclude>**/*IntTest.java</exclude>
225226
<exclude>**/*LongRunningUnitTest.java</exclude>
226227
<exclude>**/*ManualTest.java</exclude>
227228
</excludes>
@@ -387,6 +388,7 @@
387388
</excludes>
388389
<includes>
389390
<include>**/*IntegrationTest.java</include>
391+
<include>**/*IntTest.java</include>
390392
</includes>
391393
</configuration>
392394
</execution>

custom-pmd-0.0.1.jar

1.02 KB
Binary file not shown.

custom-pmd/src/main/java/org/baeldung/pmd/UnitTestNamingConventionRule.java

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class UnitTestNamingConventionRule extends AbstractJavaRule {
1111

1212
private static List<String> allowedEndings = Arrays.asList(
1313
"IntegrationTest",
14+
"IntTest",
1415
"ManualTest",
1516
"JdbcTest",
1617
"LiveTest",
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
2-
package com.baeldung.jaxb.gen;
3-
4-
import javax.xml.bind.annotation.XmlRegistry;
5-
6-
7-
/**
8-
* This object contains factory methods for each
9-
* Java content interface and Java element interface
10-
* generated in the com.baeldung.jaxb.gen package.
11-
* <p>An ObjectFactory allows you to programatically
12-
* construct new instances of the Java representation
13-
* for XML content. The Java representation of XML
14-
* content can consist of schema derived interfaces
15-
* and classes representing the binding of schema
16-
* type definitions, element declarations and model
17-
* groups. Factory methods for each of these are
18-
* provided in this class.
19-
*
20-
*/
21-
@XmlRegistry
22-
public class ObjectFactory {
23-
24-
25-
/**
26-
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.baeldung.jaxb.gen
27-
*
28-
*/
29-
public ObjectFactory() {
30-
}
31-
32-
/**
33-
* Create an instance of {@link UserRequest }
34-
*
35-
*/
36-
public UserRequest createUserRequest() {
37-
return new UserRequest();
38-
}
39-
40-
/**
41-
* Create an instance of {@link UserResponse }
42-
*
43-
*/
44-
public UserResponse createUserResponse() {
45-
return new UserResponse();
46-
}
47-
48-
}
1+
2+
package com.baeldung.jaxb.gen;
3+
4+
import javax.xml.bind.annotation.XmlRegistry;
5+
6+
7+
/**
8+
* This object contains factory methods for each
9+
* Java content interface and Java element interface
10+
* generated in the com.baeldung.jaxb.gen package.
11+
* <p>An ObjectFactory allows you to programatically
12+
* construct new instances of the Java representation
13+
* for XML content. The Java representation of XML
14+
* content can consist of schema derived interfaces
15+
* and classes representing the binding of schema
16+
* type definitions, element declarations and model
17+
* groups. Factory methods for each of these are
18+
* provided in this class.
19+
*
20+
*/
21+
@XmlRegistry
22+
public class ObjectFactory {
23+
24+
25+
/**
26+
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.baeldung.jaxb.gen
27+
*
28+
*/
29+
public ObjectFactory() {
30+
}
31+
32+
/**
33+
* Create an instance of {@link UserRequest }
34+
*
35+
*/
36+
public UserRequest createUserRequest() {
37+
return new UserRequest();
38+
}
39+
40+
/**
41+
* Create an instance of {@link UserResponse }
42+
*
43+
*/
44+
public UserResponse createUserResponse() {
45+
return new UserResponse();
46+
}
47+
48+
}
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,87 @@
1-
2-
package com.baeldung.jaxb.gen;
3-
4-
import java.io.Serializable;
5-
import javax.xml.bind.annotation.XmlAccessType;
6-
import javax.xml.bind.annotation.XmlAccessorType;
7-
import javax.xml.bind.annotation.XmlElement;
8-
import javax.xml.bind.annotation.XmlRootElement;
9-
import javax.xml.bind.annotation.XmlType;
10-
11-
12-
/**
13-
* <p>Java class for UserRequest complex type.
14-
*
15-
* <p>The following schema fragment specifies the expected content contained within this class.
16-
*
17-
* <pre>
18-
* &lt;complexType name="UserRequest"&gt;
19-
* &lt;complexContent&gt;
20-
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
21-
* &lt;sequence&gt;
22-
* &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/&gt;
23-
* &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
24-
* &lt;/sequence&gt;
25-
* &lt;/restriction&gt;
26-
* &lt;/complexContent&gt;
27-
* &lt;/complexType&gt;
28-
* </pre>
29-
*
30-
*
31-
*/
32-
@XmlAccessorType(XmlAccessType.FIELD)
33-
@XmlType(name = "UserRequest", propOrder = {
34-
"id",
35-
"name"
36-
})
37-
@XmlRootElement(name = "userRequest")
38-
public class UserRequest
39-
implements Serializable
40-
{
41-
42-
private final static long serialVersionUID = -1L;
43-
protected int id;
44-
@XmlElement(required = true)
45-
protected String name;
46-
47-
/**
48-
* Gets the value of the id property.
49-
*
50-
*/
51-
public int getId() {
52-
return id;
53-
}
54-
55-
/**
56-
* Sets the value of the id property.
57-
*
58-
*/
59-
public void setId(int value) {
60-
this.id = value;
61-
}
62-
63-
/**
64-
* Gets the value of the name property.
65-
*
66-
* @return
67-
* possible object is
68-
* {@link String }
69-
*
70-
*/
71-
public String getName() {
72-
return name;
73-
}
74-
75-
/**
76-
* Sets the value of the name property.
77-
*
78-
* @param value
79-
* allowed object is
80-
* {@link String }
81-
*
82-
*/
83-
public void setName(String value) {
84-
this.name = value;
85-
}
86-
87-
}
1+
2+
package com.baeldung.jaxb.gen;
3+
4+
import java.io.Serializable;
5+
import javax.xml.bind.annotation.XmlAccessType;
6+
import javax.xml.bind.annotation.XmlAccessorType;
7+
import javax.xml.bind.annotation.XmlElement;
8+
import javax.xml.bind.annotation.XmlRootElement;
9+
import javax.xml.bind.annotation.XmlType;
10+
11+
12+
/**
13+
* <p>Java class for UserRequest complex type.
14+
*
15+
* <p>The following schema fragment specifies the expected content contained within this class.
16+
*
17+
* <pre>
18+
* &lt;complexType name="UserRequest"&gt;
19+
* &lt;complexContent&gt;
20+
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
21+
* &lt;sequence&gt;
22+
* &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/&gt;
23+
* &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
24+
* &lt;/sequence&gt;
25+
* &lt;/restriction&gt;
26+
* &lt;/complexContent&gt;
27+
* &lt;/complexType&gt;
28+
* </pre>
29+
*
30+
*
31+
*/
32+
@XmlAccessorType(XmlAccessType.FIELD)
33+
@XmlType(name = "UserRequest", propOrder = {
34+
"id",
35+
"name"
36+
})
37+
@XmlRootElement(name = "userRequest")
38+
public class UserRequest
39+
implements Serializable
40+
{
41+
42+
private final static long serialVersionUID = -1L;
43+
protected int id;
44+
@XmlElement(required = true)
45+
protected String name;
46+
47+
/**
48+
* Gets the value of the id property.
49+
*
50+
*/
51+
public int getId() {
52+
return id;
53+
}
54+
55+
/**
56+
* Sets the value of the id property.
57+
*
58+
*/
59+
public void setId(int value) {
60+
this.id = value;
61+
}
62+
63+
/**
64+
* Gets the value of the name property.
65+
*
66+
* @return
67+
* possible object is
68+
* {@link String }
69+
*
70+
*/
71+
public String getName() {
72+
return name;
73+
}
74+
75+
/**
76+
* Sets the value of the name property.
77+
*
78+
* @param value
79+
* allowed object is
80+
* {@link String }
81+
*
82+
*/
83+
public void setName(String value) {
84+
this.name = value;
85+
}
86+
87+
}

0 commit comments

Comments
 (0)