Package org.apache.wicket.mock

Examples of org.apache.wicket.mock.MockApplication


   * @param homePage
   *            a home page <code>Class</code>
   */
  public <C extends Page> BaseWicketTester(final Class<C> homePage)
  {
    this(new MockApplication()
    {
      @Override
      public Class<? extends Page> getHomePage()
      {
        return homePage;
View Full Code Here


   * @see <a href="https://issues.apache.org/jira/browse/WICKET-3355">WICKET-3355</a>
   */
  @Test
  public void testTorelanceOnProblematicSessions()
  {
    new WicketTester(new MockApplication()
    {
      @Override
      public Session newSession(final Request request, final Response response)
      {
        return new TestSession(request);
View Full Code Here

public class DefaultExceptionMapperResourceBlockedDevModeTest extends WicketTestCase
{
  @Override
  protected WebApplication newApplication()
  {
    return new MockApplication()
    {
      @Override
      protected void init()
      {
        getExceptionSettings().setUnexpectedExceptionDisplay(
View Full Code Here

public class DefaultExceptionMapperResourceBlockedProdModeTest extends WicketTestCase
{
  @Override
  protected WebApplication newApplication()
  {
    return new MockApplication()
    {
      @Override
      protected void init()
      {
        getExceptionSettings().setUnexpectedExceptionDisplay(
View Full Code Here

  }

  @Override
  protected WebApplication newApplication()
  {
    return new MockApplication()
    {
      @Override
      protected void init()
      {
        super.init();
View Full Code Here

   *             should not happen
   */
  @Test
  public void testWithServlet30() throws MalformedURLException
  {
    MockApplication application = new MockApplication();
    MockServletContext servletContext = new MockServletContext(application, "/");
    BaseWicketTester tester = new BaseWicketTester(application, servletContext);

    MetaInfStaticResourceReference metaRes = new MetaInfStaticResourceReference(getClass(),
      STATIC_RESOURCE_NAME);
View Full Code Here

  }

  @Before
  public void setUp() throws Exception
  {
    application = new MockApplication();
    dataStore = new InMemoryPageStore()
    {
      @Override
      public void storeData(String sessionId, int pageId, byte[] pageAsBytes)
      {
View Full Code Here

    "0\">";

  @Override
  protected WebApplication newApplication()
  {
    WebApplication webApplication = new MockApplication()
    {
      @Override
      protected void init()
      {
        super.init();
View Full Code Here

{

  @Override
  protected WebApplication newApplication()
  {
    WebApplication webApplication = new MockApplication()
    {
      @Override
      protected void init()
      {
        super.init();
View Full Code Here

   * Creates <code>WicketTester</code> and automatically create a <code>WebApplication</code>, but
   * the tester will have no home page.
   */
  public BaseWicketTester()
  {
    this(new MockApplication());
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.mock.MockApplication

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.