Skip to content

Commit

Permalink
remove shared state variable that can be passed as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Jan 22, 2014
1 parent 013855f commit 0cce210
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ class GrailsUnitTestMixin implements ClassRuleFactory, RuleFactory {
protected GrailsWebApplicationContext mainContext
protected GrailsApplication grailsApplication
protected MessageSource messageSource
protected Description currentDescription
protected MetaClassRegistryCleaner metaClassRegistryListener
protected Map validationErrorsMap = new IdentityHashMap()
protected Set loadedCodecs = []
Expand Down Expand Up @@ -298,13 +297,11 @@ class GrailsUnitTestMixin implements ClassRuleFactory, RuleFactory {
return new Statement() {
@Override
public void evaluate() throws Throwable {
currentDescription = description
before(description)
try {
statement.evaluate()
} finally {
after(description)
currentDescription = null
}
}
};
Expand All @@ -327,13 +324,11 @@ class GrailsUnitTestMixin implements ClassRuleFactory, RuleFactory {
return new Statement() {
@Override
public void evaluate() throws Throwable {
currentDescription = description
beforeClass(description)
try {
statement.evaluate()
} finally {
afterClass(description)
currentDescription = null
}
}
};
Expand Down

0 comments on commit 0cce210

Please sign in to comment.