Reputation: 277
I'm trying to run a simple JUnit test in Eclipse, but the preview pane with the very noticeable green/red bar will not show, instead it only shows the normal console window.
I checked that I run JUnit 4 in the run configuration.
import static org.junit.Assert.*;
import org.junit.Test;
public class TestF {
@Test
public void test() {
AClass a = new AClass();
int t = a.Double(2);
assertEquals(4, t);
}
}
Upvotes: 0
Views: 2452
Reputation: 883
Go to Window -> Perspective -> Reset Perspective...
Then Window -> Show View -> Other ->
search for JUnit
and select it.
Upvotes: 1
Reputation: 1038
Open up Java EE, then Window->Show View --> JUnit...then switch back to Jave perspective and Window->Show View --> JUnit. you should now see the Junit window.
Upvotes: 0
Reputation: 32535
Try Window->Show view
check there for JUnit
. If it is not there then expand Window->Show view->Other
and find there JUnit
Upvotes: 2