Skip to content

Commit c6a8551

Browse files
committed
Update pom.xml file for part of main project
1 parent e9811c3 commit c6a8551

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<module>toolkits</module>
5757
<module>xml</module>
5858
<module>xml-2</module>
59+
<module>xstream</module>
5960
</modules>
6061

6162
<properties>

xstream/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<description>An Introduction To XStream</description>
1111

1212
<parent>
13-
<groupId>com.baeldung</groupId>
13+
<groupId>com.ossez</groupId>
1414
<artifactId>parent-modules</artifactId>
15-
<version>1.0.0-SNAPSHOT</version>
15+
<version>0.0.2-SNAPSHOT</version>
1616
</parent>
1717

1818
<dependencies>

xstream/src/test/java/com/baeldung/rce/AppUnitTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import java.io.OutputStream;
1010
import java.net.HttpURLConnection;
1111
import java.net.SocketException;
12+
import java.net.URI;
1213
import java.net.URL;
1314

1415
import static org.junit.Assert.assertTrue;
@@ -43,9 +44,9 @@ public void after() {
4344
* side-effect that is difficult to observe.
4445
*/
4546
@Test(expected = SocketException.class)
46-
public void givenAppIsVulneable_whenExecuteRemoteCodeWhichThrowsException_thenThrowsException() throws IOException {
47+
public void givenAppIsVulneable_whenExecuteRemoteCodeWhichThrowsException_thenThrowsException() throws Exception {
4748
// POST the attack.xml to the application's /persons endpoint
48-
final URL url = new URL("http://localhost:" + app.port() + "/persons");
49+
final URL url = new URI("http://localhost:" + app.port() + "/persons").toURL();
4950
final HttpURLConnection connection = (HttpURLConnection) url.openConnection();
5051
connection.setRequestMethod("POST");
5152
connection.setDoOutput(true);

0 commit comments

Comments
 (0)