Package org.hdiv.config

Examples of org.hdiv.config.HDIVConfig


    Validation validation = (Validation) this.context.getBean("id1");
    assertNotNull(validation);
    System.out.println(validation.toString());
    System.out.println("-----------------------");

    HDIVConfig hdivConfig = this.context.getBean(HDIVConfig.class);
    assertNotNull(hdivConfig);
    System.out.println(hdivConfig.toString());
    System.out.println("-----------------------");
    assertTrue(hdivConfig.isShowErrorPageOnEditableValidation());

    HDIVValidations validations = this.context.getBean(HDIVValidations.class);
    assertNotNull(validations);
    System.out.println(validations.toString());
View Full Code Here


  }

  public void testStartPages() {

    HDIVConfig hdivConfig = this.context.getBean(HDIVConfig.class);
    assertNotNull(hdivConfig);

    boolean result = hdivConfig.isStartPage("/onlyGet.html", "get");
    assertTrue(result);

    result = hdivConfig.isStartPage("/onlyGet.html", "post");
    assertFalse(result);
  }
View Full Code Here

    assertFalse(result);
  }

  public void testExpiredSession() {

    HDIVConfig hdivConfig = this.context.getBean(HDIVConfig.class);
    assertNotNull(hdivConfig);

    String result = hdivConfig.getSessionExpiredLoginPage();
    assertEquals("/login.html", result);

  }
View Full Code Here

  }

  public void testNames() {

    HDIVConfig hdivConfig = this.context.getBean(HDIVConfig.class);
    assertNotNull(hdivConfig);

    String[] names = this.context.getBeanDefinitionNames();
    for (int i = 0; i < names.length; i++) {
      String name = names[i];
View Full Code Here

    assertTrue(val.isDefaultValidation());
  }

  public void testReuseExistingPageInAjaxRequest() {

    HDIVConfig hdivConfig = this.context.getBean(HDIVConfig.class);
    assertNotNull(hdivConfig);

    assertEquals(true, hdivConfig.isReuseExistingPageInAjaxRequest());

  }
View Full Code Here

    assertNotNull(sessionScope);
  }

  public void testIsLongLivingPages() {

    HDIVConfig hdivConfig = this.context.getBean(HDIVConfig.class);
    assertNotNull(hdivConfig);

    String result = hdivConfig.isLongLivingPages("/default.html");
    assertEquals("user-session", result);

    result = hdivConfig.isLongLivingPages("/user.html");
    assertEquals("user-session", result);

    result = hdivConfig.isLongLivingPages("/app.html");
    assertEquals("app", result);

    result = hdivConfig.isLongLivingPages("/other.html");
    assertNull(result);
  }
View Full Code Here

    this.application = this.getApplicationContext().getBean(IApplication.class);
  }

  public void testGetBean() throws Exception {

    HDIVConfig value = (HDIVConfig) this.application.getBean("config");
    assertNotNull(value);
  }
View Full Code Here

TOP

Related Classes of org.hdiv.config.HDIVConfig

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.