Github user isper3at commented on a diff in the pull request:

    https://github.com/apache/incubator-rya/pull/118#discussion_r84527483
  
    --- Diff: extras/indexingExample/src/main/java/MongoRyaDirectExample.java 
---
    @@ -255,19 +265,29 @@ private static void 
testAddAndFreeTextSearchWithPCJ(SailRepositoryConnection con
             Validate.isTrue(tupleHandler.getCount() == 2);
         }
     
    -    private static Configuration getConf() {
    +    private static MockMongoFactory mock = null;
    +    private static Configuration getConf() throws IOException {
     
             MongoDBRdfConfiguration conf = new MongoDBRdfConfiguration();
             conf.set(ConfigUtils.USE_MONGO, "true");
     
    -        // User name and password must be filled in:
    -        conf.set(MongoDBRdfConfiguration.MONGO_USER, "fill this in");
    -        conf.set(MongoDBRdfConfiguration.MONGO_USER_PASSWORD, "fill this 
in");
    -        conf.set(MongoDBRdfConfiguration.USE_TEST_MONGO, 
Boolean.toString(USE_MOCK));
    -        if (!USE_MOCK){
    +        if (USE_MOCK) {
    +            mock = MockMongoFactory.newFactory();
    +            MongoClient c = mock.newMongo();
    +            ServerAddress address = c.getAddress();
    +            String url = address.getHost();
    +            String port = Integer.toString(address.getPort());
    +            c.close();
    +//            conf.set(MongoDBRdfConfiguration.MONGO_USER, "fill this in");
    --- End diff --
    
    remove commented out code?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to