Skip to content

Support embed mongo - #80

Merged
xhanin merged 4 commits into
restx:masterfrom
lucaspouzac:mongodb-uri-test
Apr 2, 2014
Merged

xhanin merged 4 commits into
restx:masterfrom
lucaspouzac:mongodb-uri-test

Conversation

@lucaspouzac

Copy link
Copy Markdown
Contributor

Usage

package org.jmeter.reporting.rest;

import org.junit.runner.RunWith;

import restx.jongo.specs.tests.MongoRestxSpecTestsRunner;
import restx.tests.FindSpecsIn;

@RunWith(MongoRestxSpecTestsRunner.class)
@FindSpecsIn("specs/sample")
public class SampleResourceSpecTest {

}

If you would like use a specific version of mongo, use @MongoVersion :

package org.jmeter.reporting.rest;

import org.junit.runner.RunWith;

import de.flapdoodle.embed.mongo.distribution.Version;
import restx.jongo.specs.tests.MongoRestxSpecTestsRunner;
import restx.jongo.specs.tests.MongoVersion;
import restx.tests.FindSpecsIn;

@RunWith(MongoRestxSpecTestsRunner.class)
@FindSpecsIn("specs/sample")
@MongoVersion(Version.Main.V2_2)
public class SampleResourceSpecTest {

}

add -Dhttp.proxyHost=host -Dhttp.proxyPort=port in your jvm argument if you are behind a proxy to download MongoDB

@lucaspouzac lucaspouzac mentioned this pull request Apr 2, 2014
@lucaspouzac

Copy link
Copy Markdown
Contributor Author

Could you deploy snapshot version if you merge this PR ? Thanks

@xhanin

xhanin commented Apr 2, 2014

Copy link
Copy Markdown
Contributor

Great job! Thanks for this PR!

xhanin added a commit that referenced this pull request Apr 2, 2014
@xhanin
xhanin merged commit 6acc0ec into restx:master Apr 2, 2014
@lucaspouzac
lucaspouzac deleted the mongodb-uri-test branch April 2, 2014 19:02
@xhanin

xhanin commented Apr 2, 2014

Copy link
Copy Markdown
Contributor

Snapshot version deployed. Thanks again!

On Wed, Apr 2, 2014 at 5:01 PM, Lucas Pouzac notifications@github.comwrote:

Could you deploy snapshot version if you merge this PR ? Thanks

Reply to this email directly or view it on GitHubhttps://github.com//pull/80#issuecomment-39340945
.

Xavier Hanin
Lead architect at 4SH France - http://www.4sh.fr/
RESTX creator and lead developer - http://restx.io/
BordeauxJUG creator - http://www.bordeauxjug.org/
Apache Ivy Creator - http://ant.apache.org/ivy/

@lucaspouzac

Copy link
Copy Markdown
Contributor Author

Nice, It works on cloudbees! Thanks for your reactivity.

@xhanin

xhanin commented Apr 2, 2014

Copy link
Copy Markdown
Contributor

Great! Thanks for your contribution!

On Wed, Apr 2, 2014 at 10:01 PM, Lucas Pouzac notifications@github.comwrote:

Nice, It works on cloudbees! Thanks for your reactivity.

Reply to this email directly or view it on GitHubhttps://github.com//pull/80#issuecomment-39376417
.

Xavier Hanin
Lead architect at 4SH France - http://www.4sh.fr/
RESTX creator and lead developer - http://restx.io/
BordeauxJUG creator - http://www.bordeauxjug.org/
Apache Ivy Creator - http://ant.apache.org/ivy/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants