Package org.apache.wicket.settings

Examples of org.apache.wicket.settings.Settings


        "Use Application.init() method for configuring your application object");
    }

    if (settings == null)
    {
      settings = new Settings(this);
    }
    return settings;
  }
View Full Code Here


        "Use Application.init() method for configuring your application object");
    }

    if (settings == null)
    {
      settings = new Settings(this);
    }
    return settings;
  }
View Full Code Here

        "Use Application.init() method for configuring your application object");
    }

    if (settings == null)
    {
      settings = new Settings(this);
    }
    return settings;
  }
View Full Code Here

  /**
   *
   */
  public void testFrameworkVersion()
  {
    Settings settings = new Settings(tester.getApplication());
    assertEquals("n/a", settings.getVersion());
  }
View Full Code Here

  /**
   * @throws Exception
   */
  public void testExceptionOnMissingResourceDefaultValue() throws Exception
  {
    Settings settings = new Settings(tester.getApplication());
    Assert.assertTrue("exceptionOnMissingResource should default to true",
      settings.getThrowExceptionOnMissingResource());
  }
View Full Code Here

  /**
   * @throws Exception
   */
  public void testExceptionOnMissingResourceSetsCorrectly() throws Exception
  {
    Settings settings = new Settings(tester.getApplication());
    settings.setThrowExceptionOnMissingResource(false);
    Assert.assertFalse("exceptionOnMissingResource should have been set to false",
      settings.getThrowExceptionOnMissingResource());
  }
View Full Code Here

  /**
   * @throws Exception
   */
  public void testUseDefaultOnMissingResourceDefaultValue() throws Exception
  {
    Settings settings = new Settings(tester.getApplication());
    Assert.assertTrue("useDefaultOnMissingResource should default to true",
      settings.getUseDefaultOnMissingResource());
  }
View Full Code Here

  /**
   * @throws Exception
   */
  public void testUseDefaultOnMissingResourceSetsCorrectly() throws Exception
  {
    Settings settings = new Settings(tester.getApplication());
    settings.setUseDefaultOnMissingResource(false);
    Assert.assertFalse("useDefaultOnMissingResource should have been set to false",
      settings.getUseDefaultOnMissingResource());
  }
View Full Code Here

  /**
   *
   */
  public void testDefaultStringResourceLoaderSetup()
  {
    Settings settings = new Settings(tester.getApplication());
    List loaders = settings.getStringResourceLoaders();
    Assert.assertEquals("There should be 3 default loaders", 3, loaders.size());
    Assert.assertTrue("First loader one should be the component one",
      loaders.get(0) instanceof ComponentStringResourceLoader);
    Assert.assertTrue("Second loader should be the application one",
      loaders.get(1) instanceof PackageStringResourceLoader);
View Full Code Here

   *
   */
  public void testOverrideStringResourceLoaderSetup()
  {
    Application dummy = tester.getApplication();
    Settings settings = new Settings(dummy);
    settings.getStringResourceLoaders().clear();
    settings.addStringResourceLoader(new BundleStringResourceLoader(
      "org.apache.wicket.resource.DummyResources"));
    settings.addStringResourceLoader(new ComponentStringResourceLoader());
    List loaders = settings.getStringResourceLoaders();
    Assert.assertEquals("There should be 2 overridden loaders", 2, loaders.size());
    Assert.assertTrue("First loader one should be the bundle one",
      loaders.get(0) instanceof BundleStringResourceLoader);
    Assert.assertTrue("Second loader should be the component one",
      loaders.get(1) instanceof ComponentStringResourceLoader);
View Full Code Here

TOP

Related Classes of org.apache.wicket.settings.Settings

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.