Package org.hibernate.validator.test

Source Code of org.hibernate.validator.test.HibernateValidatorConfigurationTest

/*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.test;

import javax.validation.Validation;

import org.testng.annotations.Test;

import org.hibernate.validator.HibernateValidator;
import org.hibernate.validator.HibernateValidatorConfiguration;
import org.hibernate.validator.spi.resourceloading.ResourceBundleLocator;

import static org.testng.Assert.assertNotNull;

/**
* Test for {@link org.hibernate.validator.HibernateValidatorConfiguration}.
*
* @author Gunnar Morling
*/
public class HibernateValidatorConfigurationTest {

  @Test
  public void defaultResourceBundleLocatorCanBeRetrieved() {
    HibernateValidatorConfiguration configure = Validation.byProvider( HibernateValidator.class ).configure();
    ResourceBundleLocator defaultResourceBundleLocator = configure.getDefaultResourceBundleLocator();

    assertNotNull( defaultResourceBundleLocator );
  }
}
TOP

Related Classes of org.hibernate.validator.test.HibernateValidatorConfigurationTest

TOP
Copyright © 2018 www.massapi.com. 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.