Skip to content

Commit

Permalink
Merge pull request #29 from manfontan/master
Browse files Browse the repository at this point in the history
Driver Version Update: 3.8.1
  • Loading branch information
manfontan authored Aug 28, 2018
2 parents 4db5ed3 + 82be816 commit 504b805
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
***NOTE***
Recently upgraded to [MongoDB 3.6.x Java Driver](http://mongodb.github.io/mongo-java-driver/3.6/).
Recently upgraded to [MongoDB 3.8.x Java Driver](http://mongodb.github.io/mongo-java-driver/3.8/).

Introduction
------------
Expand Down Expand Up @@ -31,7 +31,7 @@ Execute
$ mvn clean package
```

and you will find `POCDriver.jar` in `target` folder.
and you will find `POCDriver.jar` in `bin` folder.



Expand Down Expand Up @@ -174,7 +174,7 @@ Requirements to Build
* commons-codec-1.10.jar
* gson-2.2.4.jar
* loremipsum-1.0.jar (http://sourceforge.net/projects/loremipsum/files/)
* mongo-java-driver-3.6.3.jar
* mongo-driver-sync-3.8.1.jar


Troubleshooting
Expand Down
Binary file modified bin/POCDriver.jar
Binary file not shown.
Binary file modified bin/original-POCDriver.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
<dependencies>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver</artifactId>
<version>3.6.3</version>
<artifactId>mongodb-driver-sync</artifactId>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/com/johnlpage/pocdriver/LoadRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@


import com.mongodb.BasicDBObject;
import com.mongodb.MongoClient;
import com.mongodb.MongoClientURI;
import com.mongodb.ConnectionString;
import com.mongodb.client.MongoClients;
import com.mongodb.client.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoCursor;
import com.mongodb.client.MongoDatabase;
Expand Down Expand Up @@ -156,7 +157,7 @@ public void RunLoad(POCTestOptions testOpts, POCTestResults testResults) {
LoadRunner(POCTestOptions testOpts) {
try {
//For not authentication via connection string passing of user/pass only
mongoClient = new MongoClient(new MongoClientURI(testOpts.connectionDetails));
mongoClient = MongoClients.create(testOpts.connectionDetails);
} catch (Exception e) {

e.printStackTrace();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/johnlpage/pocdriver/MongoWorker.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.johnlpage.pocdriver;

import com.mongodb.MongoClient;
import com.mongodb.client.MongoClient;
import com.mongodb.bulk.BulkWriteResult;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoCursor;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/johnlpage/pocdriver/POCTestReporter.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.johnlpage.pocdriver;


import com.mongodb.MongoClient;
import com.mongodb.client.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import org.bson.Document;
Expand Down

0 comments on commit 504b805

Please sign in to comment.