Skip to content

Commit e8bbe6e

Browse files
committed
initial commit for wiremock
1 parent 29deacf commit e8bbe6e

3 files changed

Lines changed: 283 additions & 171 deletions

File tree

‎rest-testing/pom.xml‎

Lines changed: 178 additions & 171 deletions
Original file line numberDiff line numberDiff line change
@@ -1,173 +1,180 @@
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>rest-testing</artifactId>
5-
<version>0.1-SNAPSHOT</version>
6-
7-
<name>rest-testing</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>commons-io</groupId>
21-
<artifactId>commons-io</artifactId>
22-
<version>2.4</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-
<!-- http client -->
32-
33-
<dependency>
34-
<groupId>org.apache.httpcomponents</groupId>
35-
<artifactId>httpclient</artifactId>
36-
<version>${httpclient.version}</version>
37-
</dependency>
38-
<dependency>
39-
<groupId>org.apache.httpcomponents</groupId>
40-
<artifactId>httpcore</artifactId>
41-
<version>${httpcore.version}</version>
42-
</dependency>
43-
44-
<!-- marshalling -->
45-
46-
<dependency>
47-
<groupId>com.fasterxml.jackson.core</groupId>
48-
<artifactId>jackson-databind</artifactId>
49-
<version>${jackson.version}</version>
50-
</dependency>
51-
52-
<!-- logging -->
53-
54-
<dependency>
55-
<groupId>org.slf4j</groupId>
56-
<artifactId>slf4j-api</artifactId>
57-
<version>${org.slf4j.version}</version>
58-
</dependency>
59-
<dependency>
60-
<groupId>ch.qos.logback</groupId>
61-
<artifactId>logback-classic</artifactId>
62-
<version>${logback.version}</version>
63-
<!-- <scope>runtime</scope> -->
64-
</dependency>
65-
<dependency>
66-
<groupId>org.slf4j</groupId>
67-
<artifactId>jcl-over-slf4j</artifactId>
68-
<version>${org.slf4j.version}</version>
69-
<scope>runtime</scope>
70-
</dependency>
71-
<dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly -->
72-
<groupId>org.slf4j</groupId>
73-
<artifactId>log4j-over-slf4j</artifactId>
74-
<version>${org.slf4j.version}</version>
75-
</dependency>
76-
77-
<!-- test scoped -->
78-
79-
<dependency>
80-
<groupId>junit</groupId>
81-
<artifactId>junit</artifactId>
82-
<version>${junit.version}</version>
83-
<scope>test</scope>
84-
</dependency>
85-
86-
<dependency>
87-
<groupId>org.hamcrest</groupId>
88-
<artifactId>hamcrest-core</artifactId>
89-
<version>${org.hamcrest.version}</version>
90-
<scope>test</scope>
91-
</dependency>
92-
<dependency>
93-
<groupId>org.hamcrest</groupId>
94-
<artifactId>hamcrest-library</artifactId>
95-
<version>${org.hamcrest.version}</version>
96-
<scope>test</scope>
97-
</dependency>
98-
99-
<dependency>
100-
<groupId>org.mockito</groupId>
101-
<artifactId>mockito-core</artifactId>
102-
<version>${mockito.version}</version>
103-
<scope>test</scope>
104-
</dependency>
105-
106-
</dependencies>
107-
108-
<build>
109-
<finalName>rest-testing</finalName>
110-
<resources>
111-
<resource>
112-
<directory>src/main/resources</directory>
113-
<filtering>true</filtering>
114-
</resource>
115-
</resources>
116-
117-
<plugins>
118-
119-
<plugin>
120-
<groupId>org.apache.maven.plugins</groupId>
121-
<artifactId>maven-compiler-plugin</artifactId>
122-
<version>${maven-compiler-plugin.version}</version>
123-
<configuration>
124-
<source>1.8</source>
125-
<target>1.8</target>
126-
</configuration>
127-
</plugin>
128-
129-
<plugin>
130-
<groupId>org.apache.maven.plugins</groupId>
131-
<artifactId>maven-surefire-plugin</artifactId>
132-
<version>${maven-surefire-plugin.version}</version>
133-
</plugin>
134-
135-
</plugins>
136-
137-
</build>
138-
139-
<properties>
140-
<!-- marshalling -->
141-
<jackson.version>2.7.2</jackson.version>
142-
143-
<!-- logging -->
144-
<org.slf4j.version>1.7.13</org.slf4j.version>
145-
<logback.version>1.1.3</logback.version>
146-
147-
<!-- various -->
148-
<hibernate-validator.version>5.1.3.Final</hibernate-validator.version>
149-
150-
<!-- util -->
151-
<guava.version>19.0</guava.version>
152-
<commons-lang3.version>3.4</commons-lang3.version>
153-
154-
<!-- testing -->
155-
<org.hamcrest.version>1.3</org.hamcrest.version>
156-
<junit.version>4.12</junit.version>
157-
<mockito.version>1.10.19</mockito.version>
158-
159-
<httpcore.version>4.4.1</httpcore.version>
160-
<httpclient.version>4.5</httpclient.version>
161-
162-
<rest-assured.version>2.9.0</rest-assured.version>
163-
164-
<!-- maven plugins -->
165-
<maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version>
166-
<maven-war-plugin.version>2.6</maven-war-plugin.version>
167-
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
168-
<maven-resources-plugin.version>2.7</maven-resources-plugin.version>
169-
<cargo-maven2-plugin.version>1.4.18</cargo-maven2-plugin.version>
170-
171-
</properties>
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.baeldung</groupId>
5+
<artifactId>rest-testing</artifactId>
6+
<version>0.1-SNAPSHOT</version>
7+
8+
<name>rest-testing</name>
9+
10+
<dependencies>
11+
12+
<!-- utils -->
13+
14+
<dependency>
15+
<groupId>com.google.guava</groupId>
16+
<artifactId>guava</artifactId>
17+
<version>${guava.version}</version>
18+
</dependency>
19+
20+
<dependency>
21+
<groupId>commons-io</groupId>
22+
<artifactId>commons-io</artifactId>
23+
<version>2.4</version>
24+
</dependency>
25+
26+
<dependency>
27+
<groupId>org.apache.commons</groupId>
28+
<artifactId>commons-lang3</artifactId>
29+
<version>${commons-lang3.version}</version>
30+
</dependency>
31+
32+
<!-- http client -->
33+
34+
<dependency>
35+
<groupId>org.apache.httpcomponents</groupId>
36+
<artifactId>httpclient</artifactId>
37+
<version>${httpclient.version}</version>
38+
</dependency>
39+
<dependency>
40+
<groupId>org.apache.httpcomponents</groupId>
41+
<artifactId>httpcore</artifactId>
42+
<version>${httpcore.version}</version>
43+
</dependency>
44+
45+
<!-- marshalling -->
46+
47+
<dependency>
48+
<groupId>com.fasterxml.jackson.core</groupId>
49+
<artifactId>jackson-databind</artifactId>
50+
<version>${jackson.version}</version>
51+
</dependency>
52+
53+
<!-- logging -->
54+
55+
<dependency>
56+
<groupId>org.slf4j</groupId>
57+
<artifactId>slf4j-api</artifactId>
58+
<version>${org.slf4j.version}</version>
59+
</dependency>
60+
<dependency>
61+
<groupId>ch.qos.logback</groupId>
62+
<artifactId>logback-classic</artifactId>
63+
<version>${logback.version}</version>
64+
<!-- <scope>runtime</scope> -->
65+
</dependency>
66+
<dependency>
67+
<groupId>org.slf4j</groupId>
68+
<artifactId>jcl-over-slf4j</artifactId>
69+
<version>${org.slf4j.version}</version>
70+
<scope>runtime</scope>
71+
</dependency>
72+
<dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly -->
73+
<groupId>org.slf4j</groupId>
74+
<artifactId>log4j-over-slf4j</artifactId>
75+
<version>${org.slf4j.version}</version>
76+
</dependency>
77+
78+
<!-- test scoped -->
79+
80+
<dependency>
81+
<groupId>junit</groupId>
82+
<artifactId>junit</artifactId>
83+
<version>${junit.version}</version>
84+
<scope>test</scope>
85+
</dependency>
86+
87+
<dependency>
88+
<groupId>org.hamcrest</groupId>
89+
<artifactId>hamcrest-core</artifactId>
90+
<version>${org.hamcrest.version}</version>
91+
<scope>test</scope>
92+
</dependency>
93+
<dependency>
94+
<groupId>org.hamcrest</groupId>
95+
<artifactId>hamcrest-library</artifactId>
96+
<version>${org.hamcrest.version}</version>
97+
<scope>test</scope>
98+
</dependency>
99+
100+
<dependency>
101+
<groupId>org.mockito</groupId>
102+
<artifactId>mockito-core</artifactId>
103+
<version>${mockito.version}</version>
104+
<scope>test</scope>
105+
</dependency>
106+
<dependency>
107+
<groupId>com.github.tomakehurst</groupId>
108+
<artifactId>wiremock</artifactId>
109+
<version>1.58</version>
110+
<scope>test</scope>
111+
</dependency>
112+
113+
</dependencies>
114+
115+
<build>
116+
<finalName>rest-testing</finalName>
117+
<resources>
118+
<resource>
119+
<directory>src/main/resources</directory>
120+
<filtering>true</filtering>
121+
</resource>
122+
</resources>
123+
124+
<plugins>
125+
126+
<plugin>
127+
<groupId>org.apache.maven.plugins</groupId>
128+
<artifactId>maven-compiler-plugin</artifactId>
129+
<version>${maven-compiler-plugin.version}</version>
130+
<configuration>
131+
<source>1.8</source>
132+
<target>1.8</target>
133+
</configuration>
134+
</plugin>
135+
136+
<plugin>
137+
<groupId>org.apache.maven.plugins</groupId>
138+
<artifactId>maven-surefire-plugin</artifactId>
139+
<version>${maven-surefire-plugin.version}</version>
140+
</plugin>
141+
142+
</plugins>
143+
144+
</build>
145+
146+
<properties>
147+
<!-- marshalling -->
148+
<jackson.version>2.7.2</jackson.version>
149+
150+
<!-- logging -->
151+
<org.slf4j.version>1.7.13</org.slf4j.version>
152+
<logback.version>1.1.3</logback.version>
153+
154+
<!-- various -->
155+
<hibernate-validator.version>5.1.3.Final</hibernate-validator.version>
156+
157+
<!-- util -->
158+
<guava.version>19.0</guava.version>
159+
<commons-lang3.version>3.4</commons-lang3.version>
160+
161+
<!-- testing -->
162+
<org.hamcrest.version>1.3</org.hamcrest.version>
163+
<junit.version>4.12</junit.version>
164+
<mockito.version>1.10.19</mockito.version>
165+
166+
<httpcore.version>4.4.1</httpcore.version>
167+
<httpclient.version>4.5</httpclient.version>
168+
169+
<rest-assured.version>2.9.0</rest-assured.version>
170+
171+
<!-- maven plugins -->
172+
<maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version>
173+
<maven-war-plugin.version>2.6</maven-war-plugin.version>
174+
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
175+
<maven-resources-plugin.version>2.7</maven-resources-plugin.version>
176+
<cargo-maven2-plugin.version>1.4.18</cargo-maven2-plugin.version>
177+
178+
</properties>
172179

173180
</project>

0 commit comments

Comments
 (0)