-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Rule compatible with old junit #102
Rule compatible with old junit #102
Conversation
Thanks! Are those changes backwards compatible? |
Not with the previous version of rule. The constructor has changed.
|
Oh I see. We can only include backwards incompatible changes in major version changes On Fri, Oct 10, 2014 at 6:26 AM, jerzykrlk notifications@github.com wrote:
Szczepan Faber |
Would adding a second dummy constructor, like |
Yes :)
I'd say it's ok to change it. It's an incompatible change but feels OK. It's interesting if we could have a method like: MockitoJUnit.rule() that On Fri, Oct 10, 2014 at 9:01 PM, jerzykrlk notifications@github.com wrote:
Szczepan Faber |
0e015a5
to
06b4301
Compare
Here we go. |
This looks good, thanks! API I'm thinking about is (does not have to be a part of this RB, just sharing the vision):
@bric3, wdyt? |
I think the conversation stopped for a while. I can add After deprecating the entire |
Don't worry, it's on my radar. Just been busy lately :) On Tue, Oct 21, 2014 at 7:56 AM, jerzykrlk notifications@github.com wrote:
Szczepan Faber |
At some point it could make sense. Note we still have not released the TestNG integration.
Agreed. For public API this is definitely recommended.
OK
That may not really matter as the API of rule exposes only an interface. Maybe |
configure([jar, allJar]) { task -> | ||
task.rootSpec.exclude "MANIFEST.MF" //hack to avoid problems with bnd | ||
doLast { | ||
project.exec { | ||
commandLine 'ant', '-f', 'build-ant.xml', "osgify.$task.baseName", "-Dversion=$project.version" | ||
commandLine antCommand, '-f', 'build-ant.xml', "osgify.$task.baseName", "-Dversion=$project.version" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you split this change in a separate commit. (Even in the same PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see here: #115
1bf195d
to
d13f097
Compare
Attempting merge... |
Merged! |
Release 0.10.0
new MockitoJUnitRule(this)
- justnew MockitoJUnitRule()
,