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

HystrixRequestContext junit rule #1183

Merged
merged 4 commits into from
Apr 19, 2016

Conversation

mattrjacobs
Copy link
Contributor

Forward port of #1147

caarlos0 and others added 4 commits March 15, 2016 22:22
This will make testing commands that requires a `HystrixRequestContext`
easier in JUnit by using its Rule feature.

An example of usage would be something like:

```java
    @rule
    public HystrixRequestContextRule request = new HystrixRequestContextRule();

    @test
    public void initsContext() {
        MatcherAssert.assertThat(this.request.context(), CoreMatchers.notNullValue());
    }
```

I put it in the `hystrix-contrib` folder, let me know if this is the right thing to do, please.
Merge remote-tracking branch 'upstream/pr/1147' into forward-port-pr-1147
@mattrjacobs mattrjacobs added this to the 2.0.x milestone Apr 19, 2016
@cloudbees-pull-request-builder

NetflixOSS » Hystrix » Hystrix-pull-requests #442 FAILURE
Looks like there's a problem with this pull request

@cloudbees-pull-request-builder

@cloudbees-pull-request-builder

NetflixOSS » Hystrix » Hystrix-pull-requests #444 SUCCESS
This pull request looks good

@mattrjacobs mattrjacobs merged commit 18e7750 into Netflix:2.0.x Apr 19, 2016
@mattrjacobs mattrjacobs deleted the forward-port-pr-1147 branch April 19, 2016 18:43
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.

3 participants