Skip to content

Commit 9dd3ca9

Browse files
committed
#168 fresh cactoos
1 parent 03ea672 commit 9dd3ca9

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
7272
<dependency>
7373
<groupId>org.cactoos</groupId>
7474
<artifactId>cactoos</artifactId>
75-
<version>0.50</version>
75+
<version>0.53.0</version>
7676
</dependency>
7777
<dependency>
7878
<groupId>com.jcabi</groupId>

src/main/java/com/jcabi/xml/XPathContext.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public XPathContext() {
8787
new MapEntry<>("xsl", "http://www.w3.org/1999/XSL/Transform"),
8888
new MapEntry<>("svg", "http://www.w3.org/2000/svg")
8989
),
90-
new ArrayList<NamespaceContext>(0)
90+
new ArrayList<>(0)
9191
);
9292
}
9393

@@ -98,7 +98,7 @@ public XPathContext() {
9898
public XPathContext(final Object... namespaces) {
9999
this(
100100
XPathContext.namespacesAsMap(namespaces),
101-
new ArrayList<NamespaceContext>(0)
101+
new ArrayList<>(0)
102102
);
103103
}
104104

@@ -112,8 +112,8 @@ public XPathContext(final Object... namespaces) {
112112
private XPathContext(final Map<String, String> old,
113113
final String prefix, final Object namespace) {
114114
this(
115-
new MapOf<>(old, new MapEntry<>(prefix, namespace.toString())),
116-
new ArrayList<NamespaceContext>(0)
115+
new MapOf<String, String>(old, new MapEntry<>(prefix, namespace.toString())),
116+
new ArrayList<>(0)
117117
);
118118
}
119119

src/test/java/com/jcabi/xml/StrictXMLTest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
package com.jcabi.xml;
3131

3232
import com.google.common.collect.Iterables;
33+
import java.io.IOException;
34+
import java.net.InetAddress;
3335
import java.net.SocketException;
3436
import java.security.SecureRandom;
3537
import java.util.Collections;
@@ -45,6 +47,8 @@
4547
import org.hamcrest.MatcherAssert;
4648
import org.hamcrest.Matchers;
4749
import org.junit.jupiter.api.Assertions;
50+
import org.junit.jupiter.api.Assumptions;
51+
import org.junit.jupiter.api.BeforeEach;
4852
import org.junit.jupiter.api.Test;
4953
import org.mockito.Mockito;
5054
import org.mockito.stubbing.Answer;
@@ -59,6 +63,13 @@
5963
@SuppressWarnings({ "PMD.TooManyMethods", "PMD.AvoidDuplicateLiterals"})
6064
public final class StrictXMLTest {
6165

66+
@BeforeEach
67+
public void weAreOnline() throws IOException {
68+
Assumptions.assumeTrue(
69+
InetAddress.getByName("w3.org").isReachable(1000)
70+
);
71+
}
72+
6273
@Test
6374
public void passesValidXmlThrough() {
6475
new StrictXML(

0 commit comments

Comments
 (0)