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

Send REST Request after junits execution of @Before #35

Open
toldran opened this issue Mar 1, 2013 · 5 comments
Open

Send REST Request after junits execution of @Before #35

toldran opened this issue Mar 1, 2013 · 5 comments

Comments

@toldran
Copy link

toldran commented Mar 1, 2013

Hi there,

thanks I recognized, that the Http Request is sent before executing junit invokes the @before Method. This is a problem for me, as I would like to set up the database of the called restservice before running the request.

Perhaps you could help here?

Thanks
andy

@drejc
Copy link

drejc commented Mar 1, 2013

Try using @BeforeClass @afterclass methods instead.

On Fri, Mar 1, 2013 at 11:48 AM, toldran [email protected] wrote:

Hi there,

thanks I recognized, that the Http Request is sent before executing junit
invokes the @before https://github.com/Before Method. This is a problem
for me, as I would like to set up the database of the called restservice
before running the request.

Perhaps you could help here?

Thanks
andy


Reply to this email directly or view it on GitHubhttps://github.com//issues/35
.

@toldran
Copy link
Author

toldran commented Mar 1, 2013

Thats what we're doing in the meantime. But it took us a while to recognize the problem.

@drejc
Copy link

drejc commented Mar 1, 2013

Those are all JUnit annotations and they behave as such.
RestFuse is building upon this.

And yes, a special annotation could be provided to be executed before each
@httptest,
this may also be helpful for other cases.

Will look into it, when I have some spare time.

On Fri, Mar 1, 2013 at 1:02 PM, toldran [email protected] wrote:

Thats what we're doing in the meantime. But it took us a while to
recognize the problem.


Reply to this email directly or view it on GitHubhttps://github.com//issues/35#issuecomment-14286044
.

@toldran
Copy link
Author

toldran commented Mar 1, 2013

thank you ;) and also thank you for the quick reply ;)
Keep going. restfuse is doing a fine job.

@redrezo
Copy link

redrezo commented Apr 9, 2014

i just came across this issue. Its very annoying since i need to setup my service before it is accessed by rest. so wrote a patch:
#58

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

No branches or pull requests

3 participants