Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support embed mongo #80

Merged
merged 4 commits into from
Apr 2, 2014
Merged

Support embed mongo #80

merged 4 commits into from
Apr 2, 2014

Conversation

lucaspouzac
Copy link
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
Contributor Author

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

@xhanin
Copy link
Contributor

xhanin commented Apr 2, 2014

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
Copy link
Contributor

xhanin commented Apr 2, 2014

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
Contributor Author

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

@xhanin
Copy link
Contributor

xhanin commented Apr 2, 2014

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