Add a test for PropertyBeanSetter.getPropertyNames().

pull/77/head
Brett Wooldridge 11 years ago
parent 9a446d62fb
commit 77a95bf454

@ -3,6 +3,7 @@ package com.zaxxer.hikari;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.PrintWriter;
import java.util.Set;
import javax.sql.DataSource;
@ -63,4 +64,10 @@ public class TestPropertySetter
PropertyBeanSetter.setTargetFromProperties(dataSource, config.getDataSourceProperties());
}
@Test
public void testGetPropertyNames() throws Exception
{
Set<String> propertyNames = PropertyBeanSetter.getPropertyNames(HikariConfig.class);
Assert.assertTrue(propertyNames.contains("dataSourceClassName"));
}
}

Loading…
Cancel
Save