Support embed mongo #80

Merged
merged 4 commits into from Apr 2, 2014

Conversation

Projects
None yet
2 participants
@lucaspouzac
Contributor

lucaspouzac commented Apr 2, 2014

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 referenced this pull request Apr 2, 2014

Closed

Support embed mongo #76

@lucaspouzac

This comment has been minimized.

Show comment
Hide comment
@lucaspouzac

lucaspouzac Apr 2, 2014

Contributor

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

Contributor

lucaspouzac commented Apr 2, 2014

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

@xhanin

This comment has been minimized.

Show comment
Hide comment
@xhanin

xhanin Apr 2, 2014

just for the record, pom.xml is generated from md.restx.json using restx build generate pom, so the source is the md.restx.json file. But I'll take care of updating it.

just for the record, pom.xml is generated from md.restx.json using restx build generate pom, so the source is the md.restx.json file. But I'll take care of updating it.

@xhanin

This comment has been minimized.

Show comment
Hide comment
@xhanin

xhanin Apr 2, 2014

Contributor

Great job! Thanks for this PR!

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 lucaspouzac:mongodb-uri-test branch Apr 2, 2014

@xhanin

This comment has been minimized.

Show comment
Hide comment
@xhanin

xhanin Apr 2, 2014

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/restx/restx/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/

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/restx/restx/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

This comment has been minimized.

Show comment
Hide comment
@lucaspouzac

lucaspouzac Apr 2, 2014

Contributor

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

Contributor

lucaspouzac commented Apr 2, 2014

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

@xhanin

This comment has been minimized.

Show comment
Hide comment
@xhanin

xhanin Apr 2, 2014

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/restx/restx/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/

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/restx/restx/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