File tree 4 files changed +11
-8
lines changed
main/java/com/baeldung/servlets
test/java/com/baeldung/servlets
4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 4
4
xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5
5
<modelVersion >4.0.0</modelVersion >
6
6
7
- <groupId >com.root </groupId >
8
- <artifactId >ServletmavenExample </artifactId >
7
+ <groupId >com.baeldung </groupId >
8
+ <artifactId >javax-servlets </artifactId >
9
9
<version >1.0-SNAPSHOT</version >
10
+
10
11
<build >
11
12
<plugins >
12
13
<plugin >
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
package com .baeldung .servlets ;
2
2
3
+ import static org .junit .Assert .assertEquals ;
4
+
5
+ import java .util .ArrayList ;
6
+ import java .util .List ;
7
+
3
8
import org .apache .http .HttpResponse ;
4
9
import org .apache .http .client .HttpClient ;
5
10
import org .apache .http .client .entity .UrlEncodedFormEntity ;
8
13
import org .apache .http .message .BasicNameValuePair ;
9
14
import org .junit .Test ;
10
15
11
- import java .util .ArrayList ;
12
- import java .util .List ;
13
-
14
- import static org .junit .Assert .assertEquals ;
15
-
16
16
public class FormServletLiveTest {
17
17
18
18
@ Test
@@ -25,7 +25,6 @@ public void whenPostRequestUsingHttpClient_thenCorrect() throws Exception {
25
25
nvps .add (new BasicNameValuePair ("height" , String .valueOf (2 )));
26
26
nvps .add (new BasicNameValuePair ("weight" , String .valueOf (80 )));
27
27
28
-
29
28
method .setEntity (new UrlEncodedFormEntity (nvps ));
30
29
HttpResponse httpResponse = client .execute (method );
31
30
Original file line number Diff line number Diff line change 97
97
<commons-dbcp2 .version>2.1.1</commons-dbcp2 .version>
98
98
<log4j-core .version>2.7</log4j-core .version>
99
99
<junit .version>4.12</junit .version>
100
+
100
101
<maven-compiler-plugin .version>3.6.0</maven-compiler-plugin .version>
102
+ <maven-surefire-plugin .version>2.19.1</maven-surefire-plugin .version>
101
103
</properties >
104
+
102
105
</project >
You can’t perform that action at this time.
0 commit comments