Enhancements to the base page-test class

Change-Id: Id40ff6f973cfe49bfa36ebbd649937b0bdf36953
This commit is contained in:
mpeters 2011-07-28 12:00:52 +02:00
parent 7aebf316fd
commit 1beba1f84a

@ -64,7 +64,7 @@ import se.su.dsv.scipro.repository.util.RepositoryManager;
*
*/
@Ignore
public class BaseWicketTest {
public abstract class BaseWicketTest {
protected WicketTester tester;
@ -112,7 +112,9 @@ public class BaseWicketTest {
@Mock EntityManagerFactoryInfo entityManagerFactory = Mockito.mock(LocalEntityManagerFactoryBean.class);
//@Before
/**
* Call this method within as the first call in @Before annotated method in an overriding test case class, see example in {@link TestWicketPages}
*/
public void setup() {
/*
* Setup a new mock applicationContext
@ -174,7 +176,10 @@ public class BaseWicketTest {
});
}
/*
* The following methods are added for convenience
*/
protected void setLoggedIn(boolean loggedIn){
MockSciProSession.currentSession.setLoggedIn(loggedIn);
}