Skip to content

Commit

Permalink
Fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dsaff committed Apr 8, 2010
1 parent 01ecc0d commit 7ffc230
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 2 additions & 6 deletions src/main/java/org/junit/runners/BlockJUnit4ClassRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;

import org.junit.After;
Expand Down Expand Up @@ -93,11 +92,8 @@ private void runIgnored(EachTestNotifier eachNotifier) {

@Override
protected Description describeChild(FrameworkMethod method) {
Description description= Description.createTestDescription(
getTestClass().getJavaClass(), testName(method), method
.getAnnotations());
description.setParent(getDescription());
return description;
return Description.createTestDescription(getTestClass().getJavaClass(),
testName(method), method.getAnnotations());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.InitializationError;
import org.junit.runners.model.Statement;
import org.junit.runners.model.TestClass;

public class StubbedTheories extends Theories {
public StubbedTheories(Class<?> klass) throws InitializationError {
Expand All @@ -19,12 +20,12 @@ public StubbedTheories(Class<?> klass) throws InitializationError {

@Override
public Statement methodBlock(FrameworkMethod method) {
return new StubbedTheoryAnchor(method);
return new StubbedTheoryAnchor(method, getTestClass());
}

public class StubbedTheoryAnchor extends TheoryAnchor {
public StubbedTheoryAnchor(FrameworkMethod method) {
super(method);
public static class StubbedTheoryAnchor extends TheoryAnchor {
public StubbedTheoryAnchor(FrameworkMethod method, TestClass testClass) {
super(method, testClass);
}

private List<GuesserQueue> queues= new ArrayList<GuesserQueue>();
Expand Down

0 comments on commit 7ffc230

Please sign in to comment.