Skip to content

Commit b1332f7

Browse files
committed
avoid hard-coded host and port, use Common.HOST and Common.PORT instead
1 parent 6b874b0 commit b1332f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/java/com/marklogic/client/test/InvalidUserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void testInvalidUserAuth() {
3333
//System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.http.wire", "debug");
3434
// create the client
3535
DatabaseClient client = DatabaseClientFactory.newClient(
36-
"localhost", 8012, "MyFooUser", "x", Authentication.DIGEST);
36+
Common.HOST, Common.PORT, "MyFooUser", "x", Authentication.DIGEST);
3737

3838

3939
String expectedException = "com.marklogic.client.FailedRequestException: " +

src/test/java/com/marklogic/client/test/QueryOptionsHandleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ public void testMarshall() throws SAXException, IOException,
417417
@Test
418418
public void bug17240()
419419
throws FailedRequestException, ForbiddenUserException, ResourceNotFoundException, ResourceNotResendableException {
420-
DatabaseClient client = DatabaseClientFactory.newClient("localhost", 8012, "rest-admin", "x", DatabaseClientFactory.Authentication.DIGEST);
420+
DatabaseClient client = DatabaseClientFactory.newClient(Common.HOST, Common.PORT, "rest-admin", "x", DatabaseClientFactory.Authentication.DIGEST);
421421
// create a manager for writing query options
422422

423423
QueryOptionsManager optionsMgr =

0 commit comments

Comments
 (0)