Package org.apache.wicket.settings.def

Examples of org.apache.wicket.settings.def.ResourceSettings


  public final IResourceSettings getResourceSettings()
  {
    checkSettingsAvailable();
    if (resourceSettings == null)
    {
      resourceSettings = new ResourceSettings(this);
    }
    return resourceSettings;
  }
View Full Code Here


  public final IResourceSettings getResourceSettings()
  {
    checkSettingsAvailable();
    if (resourceSettings == null)
    {
      resourceSettings = new ResourceSettings(this);
    }
    return resourceSettings;
  }
View Full Code Here

  public final IResourceSettings getResourceSettings()
  {
    checkSettingsAvailable();
    if (resourceSettings == null)
    {
      resourceSettings = new ResourceSettings(this);
    }
    return resourceSettings;
  }
View Full Code Here

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

  /**
   * @throws Exception
   */
  public void testExceptionOnMissingResourceSetsCorrectly() throws Exception
  {
    IResourceSettings settings = new ResourceSettings(new MockApplication());
    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
  {
    IResourceSettings settings = new ResourceSettings(new MockApplication());
    Assert.assertTrue("useDefaultOnMissingResource should default to true",
      settings.getUseDefaultOnMissingResource());
  }
View Full Code Here

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

  /**
   *
   */
  public void testDefaultStringResourceLoaderSetup()
  {
    IResourceSettings settings = new ResourceSettings(new MockApplication());
    List<IStringResourceLoader> loaders = settings.getStringResourceLoaders();
    Assert.assertEquals("There should be 4 default loaders", 4, 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()
  {
    IResourceSettings settings = new ResourceSettings(new MockApplication());
    settings.getStringResourceLoaders().clear();
    settings.getStringResourceLoaders().add(
      new BundleStringResourceLoader("org.apache.wicket.resource.DummyResources"));
    settings.getStringResourceLoaders().add(new ComponentStringResourceLoader());
    List<IStringResourceLoader> 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

  public final IResourceSettings getResourceSettings()
  {
    checkSettingsAvailable();
    if (resourceSettings == null)
    {
      resourceSettings = new ResourceSettings(this);
    }
    return resourceSettings;
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.settings.def.ResourceSettings

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.