Skip to content

Commit 4e94d8f

Browse files
Fix tests
1 parent ea9c7f1 commit 4e94d8f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

marklogic-client-api/src/test/java/com/marklogic/client/test/XMLDocumentTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import javax.xml.stream.XMLEventReader;
3232
import javax.xml.stream.XMLStreamException;
3333
import javax.xml.stream.XMLStreamReader;
34+
import javax.xml.stream.events.Attribute;
3435
import javax.xml.stream.events.StartElement;
3536
import javax.xml.stream.events.XMLEvent;
3637
import javax.xml.transform.Transformer;
@@ -174,7 +175,7 @@ public void startElement(String uri, String localName, String qName, Attributes
174175
continue;
175176
StartElement element = event.asStartElement();
176177
elementCount++;
177-
Iterator<Object> attributes = element.getAttributes();
178+
Iterator<Attribute> attributes = element.getAttributes();
178179
while (attributes.hasNext()) {
179180
attributes.next();
180181
attributeCount++;

marklogic-client-api/src/test/java/com/marklogic/client/test/datamovement/WriteBatcherTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public void testListenerManagement() {
280280

281281
try {
282282
HostAvailabilityListener ha = new HostAvailabilityListener(moveMgr)
283-
.withMinHosts(2);
283+
.withMinHosts(5);
284284
fail("should have thrown IllegalArgumentException since minHosts was " +
285285
"set to a number greater than the number of hosts in the cluster");
286286
} catch (IllegalArgumentException e) {

0 commit comments

Comments
 (0)