package org.pentaho.platform.config; import org.dom4j.DocumentException; import org.junit.Test; import static com.google.code.beanmatchers.BeanMatchers.hasValidGettersAndSettersExcluding; import static org.junit.Assert.*; /** * Created by rfellows on 10/21/15. */ public class HibernateSettingsXmlTest { @Test public void testHasValidGettersAndSetters() { String[] excludeProperties = new String[] { "document" }; assertThat( HibernateSettingsXml.class, hasValidGettersAndSettersExcluding( excludeProperties ) ); } @Test ( expected = DocumentException.class ) public void testConstructor_String() throws Exception { HibernateSettingsXml hibernateSettingsXml = new HibernateSettingsXml( "<xml></xml>" ); } @Test public void testGetDocument() throws Exception { HibernateSettingsXml xml = new HibernateSettingsXml(); assertNotNull( xml.getDocument() ); } }