Enhancements to the base page-test class
Change-Id: Id40ff6f973cfe49bfa36ebbd649937b0bdf36953
This commit is contained in:
parent
7aebf316fd
commit
1beba1f84a
@ -64,7 +64,7 @@ import se.su.dsv.scipro.repository.util.RepositoryManager;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Ignore
|
@Ignore
|
||||||
public class BaseWicketTest {
|
public abstract class BaseWicketTest {
|
||||||
|
|
||||||
protected WicketTester tester;
|
protected WicketTester tester;
|
||||||
|
|
||||||
@ -112,7 +112,9 @@ public class BaseWicketTest {
|
|||||||
|
|
||||||
@Mock EntityManagerFactoryInfo entityManagerFactory = Mockito.mock(LocalEntityManagerFactoryBean.class);
|
@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() {
|
public void setup() {
|
||||||
/*
|
/*
|
||||||
* Setup a new mock applicationContext
|
* Setup a new mock applicationContext
|
||||||
@ -174,7 +176,10 @@ public class BaseWicketTest {
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The following methods are added for convenience
|
||||||
|
*/
|
||||||
protected void setLoggedIn(boolean loggedIn){
|
protected void setLoggedIn(boolean loggedIn){
|
||||||
MockSciProSession.currentSession.setLoggedIn(loggedIn);
|
MockSciProSession.currentSession.setLoggedIn(loggedIn);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user