Skip to content

Commit f2b3942

Browse files
committed
fix tests
1 parent ab6dd58 commit f2b3942

345 files changed

Lines changed: 49778 additions & 44 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
3+
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="false"/>
4+
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" value="org.eclipse.wst.jsdt.core.javascriptValidator"/>
5+
<mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/>
6+
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
7+
</launchConfiguration>

‎gson/bin/README.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
=========
2+
3+
## GSON Cookbooks and Examples
4+
5+
6+
### Relevant Articles:
7+
- [Gson Deserialization Cookbook](http://www.baeldung.com/gson-deserialization-guide)

‎gson/bin/pom.xml‎

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
<groupId>com.baeldung</groupId>
4+
<artifactId>gson</artifactId>
5+
<version>0.1-SNAPSHOT</version>
6+
7+
<name>gson</name>
8+
9+
<dependencies>
10+
11+
<!-- utils -->
12+
13+
<dependency>
14+
<groupId>joda-time</groupId>
15+
<artifactId>joda-time</artifactId>
16+
<version>2.4</version>
17+
</dependency>
18+
19+
<dependency>
20+
<groupId>com.google.guava</groupId>
21+
<artifactId>guava</artifactId>
22+
<version>18.0</version>
23+
</dependency>
24+
<dependency>
25+
<groupId>commons-io</groupId>
26+
<artifactId>commons-io</artifactId>
27+
<version>2.4</version>
28+
</dependency>
29+
30+
<dependency>
31+
<groupId>org.apache.commons</groupId>
32+
<artifactId>commons-collections4</artifactId>
33+
<version>4.0</version>
34+
</dependency>
35+
36+
<dependency>
37+
<groupId>org.apache.commons</groupId>
38+
<artifactId>commons-lang3</artifactId>
39+
<version>${commons-lang3.version}</version>
40+
</dependency>
41+
42+
<!-- web -->
43+
44+
<!-- marshalling -->
45+
46+
<dependency>
47+
<groupId>com.google.code.gson</groupId>
48+
<artifactId>gson</artifactId>
49+
<version>${gson.version}</version>
50+
</dependency>
51+
52+
<!-- test scoped -->
53+
54+
<dependency>
55+
<groupId>junit</groupId>
56+
<artifactId>junit</artifactId>
57+
<version>${junit.version}</version>
58+
<scope>test</scope>
59+
</dependency>
60+
61+
<dependency>
62+
<groupId>org.hamcrest</groupId>
63+
<artifactId>hamcrest-core</artifactId>
64+
<version>${org.hamcrest.version}</version>
65+
<scope>test</scope>
66+
</dependency>
67+
<dependency>
68+
<groupId>org.hamcrest</groupId>
69+
<artifactId>hamcrest-library</artifactId>
70+
<version>${org.hamcrest.version}</version>
71+
<scope>test</scope>
72+
</dependency>
73+
74+
<dependency>
75+
<groupId>org.mockito</groupId>
76+
<artifactId>mockito-core</artifactId>
77+
<version>${mockito.version}</version>
78+
<scope>test</scope>
79+
</dependency>
80+
81+
</dependencies>
82+
83+
<build>
84+
<finalName>gson</finalName>
85+
<resources>
86+
<resource>
87+
<directory>src/main/resources</directory>
88+
<filtering>true</filtering>
89+
</resource>
90+
</resources>
91+
92+
<plugins>
93+
94+
<plugin>
95+
<groupId>org.apache.maven.plugins</groupId>
96+
<artifactId>maven-compiler-plugin</artifactId>
97+
<version>${maven-compiler-plugin.version}</version>
98+
<configuration>
99+
<source>1.8</source>
100+
<target>1.8</target>
101+
</configuration>
102+
</plugin>
103+
104+
<plugin>
105+
<groupId>org.apache.maven.plugins</groupId>
106+
<artifactId>maven-surefire-plugin</artifactId>
107+
<version>${maven-surefire-plugin.version}</version>
108+
</plugin>
109+
110+
</plugins>
111+
112+
</build>
113+
114+
<properties>
115+
<!-- persistence -->
116+
<hibernate.version>4.3.11.Final</hibernate.version>
117+
<mysql-connector-java.version>5.1.38</mysql-connector-java.version>
118+
119+
<!-- marshalling -->
120+
<gson.version>2.3</gson.version>
121+
122+
<!-- logging -->
123+
<org.slf4j.version>1.7.13</org.slf4j.version>
124+
<logback.version>1.1.3</logback.version>
125+
126+
<!-- various -->
127+
<hibernate-validator.version>5.1.3.Final</hibernate-validator.version>
128+
129+
<!-- util -->
130+
<guava.version>19.0</guava.version>
131+
<commons-lang3.version>3.4</commons-lang3.version>
132+
133+
<!-- testing -->
134+
<org.hamcrest.version>1.3</org.hamcrest.version>
135+
<junit.version>4.12</junit.version>
136+
<mockito.version>1.10.19</mockito.version>
137+
138+
<httpcore.version>4.4.1</httpcore.version>
139+
<httpclient.version>4.5</httpclient.version>
140+
141+
<rest-assured.version>2.9.0</rest-assured.version>
142+
143+
<!-- maven plugins -->
144+
<maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version>
145+
<maven-war-plugin.version>2.6</maven-war-plugin.version>
146+
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
147+
<maven-resources-plugin.version>2.7</maven-resources-plugin.version>
148+
<cargo-maven2-plugin.version>1.4.18</cargo-maven2-plugin.version>
149+
150+
</properties>
151+
152+
</project>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<configuration>
2+
3+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4+
<encoder>
5+
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
6+
</pattern>
7+
</encoder>
8+
</appender>
9+
10+
<logger name="org.springframework" level="WARN" />
11+
<logger name="org.springframework.transaction" level="WARN" />
12+
13+
<!-- in order to debug some marshalling issues, this needs to be TRACE -->
14+
<logger name="org.springframework.web.servlet.mvc" level="WARN" />
15+
16+
<root level="INFO">
17+
<appender-ref ref="STDOUT" />
18+
</root>
19+
20+
</configuration>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
3+
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="false"/>
4+
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" value="org.eclipse.wst.jsdt.core.javascriptValidator"/>
5+
<mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/>
6+
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
7+
</launchConfiguration>

‎guava/bin/README.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
=========
2+
3+
## Guava and Hamcrest Cookbooks and Examples
4+
5+
6+
### Relevant Articles:
7+
- [Guava Collections Cookbook](http://www.baeldung.com/guava-collections)
8+
- [Guava Ordering Cookbook](http://www.baeldung.com/guava-order)
9+
- [Guava Functional Cookbook](http://www.baeldung.com/guava-functions-predicates)
10+
- [Hamcrest Collections Cookbook](http://www.baeldung.com/hamcrest-collections-arrays)
11+
- [Partition a List in Java](http://www.baeldung.com/java-list-split)
12+
- [Filtering and Transforming Collections in Guava](http://www.baeldung.com/guava-filter-and-transform-a-collection)
13+
- [Guava – Join and Split Collections](http://www.baeldung.com/guava-joiner-and-splitter-tutorial)
14+
- [Guava – Write to File, Read from File](http://www.baeldung.com/guava-write-to-file-read-from-file)
15+
- [Guava – Lists](http://www.baeldung.com/guava-lists)
16+
- [Guava – Sets](http://www.baeldung.com/guava-sets)
17+
- [Guava – Maps](http://www.baeldung.com/guava-maps)

‎guava/bin/pom.xml‎

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
<groupId>com.baeldung</groupId>
4+
<artifactId>guava</artifactId>
5+
<version>0.1.0-SNAPSHOT</version>
6+
7+
<name>guava</name>
8+
9+
<dependencies>
10+
11+
<!-- utils -->
12+
13+
<dependency>
14+
<groupId>com.google.guava</groupId>
15+
<artifactId>guava</artifactId>
16+
<version>${guava.version}</version>
17+
</dependency>
18+
19+
<dependency>
20+
<groupId>org.apache.commons</groupId>
21+
<artifactId>commons-collections4</artifactId>
22+
<version>4.0</version>
23+
</dependency>
24+
25+
<dependency>
26+
<groupId>org.apache.commons</groupId>
27+
<artifactId>commons-lang3</artifactId>
28+
<version>${commons-lang3.version}</version>
29+
</dependency>
30+
31+
<!-- web -->
32+
33+
<!-- test scoped -->
34+
35+
<dependency>
36+
<groupId>junit</groupId>
37+
<artifactId>junit</artifactId>
38+
<version>${junit.version}</version>
39+
<scope>test</scope>
40+
</dependency>
41+
42+
<dependency>
43+
<groupId>org.hamcrest</groupId>
44+
<artifactId>hamcrest-core</artifactId>
45+
<version>${org.hamcrest.version}</version>
46+
<scope>test</scope>
47+
</dependency>
48+
<dependency>
49+
<groupId>org.hamcrest</groupId>
50+
<artifactId>hamcrest-library</artifactId>
51+
<version>${org.hamcrest.version}</version>
52+
<scope>test</scope>
53+
</dependency>
54+
55+
<dependency>
56+
<groupId>org.mockito</groupId>
57+
<artifactId>mockito-core</artifactId>
58+
<version>${mockito.version}</version>
59+
<scope>test</scope>
60+
</dependency>
61+
62+
</dependencies>
63+
64+
<build>
65+
<finalName>guava</finalName>
66+
<resources>
67+
<resource>
68+
<directory>src/main/resources</directory>
69+
<filtering>true</filtering>
70+
</resource>
71+
</resources>
72+
73+
<plugins>
74+
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-compiler-plugin</artifactId>
78+
<version>${maven-compiler-plugin.version}</version>
79+
<configuration>
80+
<source>1.8</source>
81+
<target>1.8</target>
82+
</configuration>
83+
</plugin>
84+
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-surefire-plugin</artifactId>
88+
<version>${maven-surefire-plugin.version}</version>
89+
</plugin>
90+
91+
</plugins>
92+
93+
</build>
94+
95+
<properties>
96+
<!-- persistence -->
97+
<hibernate.version>4.3.11.Final</hibernate.version>
98+
<mysql-connector-java.version>5.1.38</mysql-connector-java.version>
99+
100+
<!-- logging -->
101+
<org.slf4j.version>1.7.13</org.slf4j.version>
102+
<logback.version>1.1.3</logback.version>
103+
104+
<!-- various -->
105+
<hibernate-validator.version>5.1.3.Final</hibernate-validator.version>
106+
107+
<!-- util -->
108+
<guava.version>19.0</guava.version>
109+
<commons-lang3.version>3.4</commons-lang3.version>
110+
111+
<!-- testing -->
112+
<org.hamcrest.version>1.3</org.hamcrest.version>
113+
<junit.version>4.12</junit.version>
114+
<mockito.version>1.10.19</mockito.version>
115+
116+
<httpcore.version>4.4.1</httpcore.version>
117+
<httpclient.version>4.5</httpclient.version>
118+
119+
<rest-assured.version>2.9.0</rest-assured.version>
120+
121+
<!-- maven plugins -->
122+
<maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version>
123+
<maven-war-plugin.version>2.6</maven-war-plugin.version>
124+
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
125+
<maven-resources-plugin.version>2.7</maven-resources-plugin.version>
126+
<cargo-maven2-plugin.version>1.4.18</cargo-maven2-plugin.version>
127+
128+
</properties>
129+
130+
</project>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<configuration>
2+
3+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4+
<encoder>
5+
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
6+
</pattern>
7+
</encoder>
8+
</appender>
9+
10+
<logger name="org.springframework" level="WARN" />
11+
<logger name="org.springframework.transaction" level="WARN" />
12+
13+
<!-- in order to debug some marshalling issues, this needs to be TRACE -->
14+
<logger name="org.springframework.web.servlet.mvc" level="WARN" />
15+
16+
<root level="INFO">
17+
<appender-ref ref="STDOUT" />
18+
</root>
19+
20+
</configuration>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
John Jane Adam Tom
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello world

0 commit comments

Comments
 (0)