Automatic Extract: before() in org.junit.runners.model.Statement#evaluate
@@ -175,6 +175,13 @@ public final class DesugarRule implements TestRule {
return new Statement() {
@Override
public void evaluate() throws Throwable {
+ before();
+ base.evaluate();
+ }
+ };
+ }
+
+ private void before() throws Throwable {
ImmutableList<Path> transInputs = inputs;
for (int round = 1; round <= maxNumOfTransformations; round++) {
ImmutableList<Path> transOutputs =
@@ -246,9 +253,6 @@ public final class DesugarRule implements TestRule {
MethodHandle fieldSetter = testInstanceLookup.unreflectSetter(field);
fieldSetter.invoke(testInstance, zipEntry);
}
- base.evaluate();
- }
- };
}
private static void fillMissingClassMemberDescriptorRepo(
