Merge branch 'petromykhailysyn-master'

This commit is contained in:
James Agnew 2014-10-30 13:59:27 -04:00
commit 73f6dd781a
2 changed files with 2 additions and 9 deletions

View File

@ -20,7 +20,6 @@ package ca.uhn.fhir.narrative;
* #L%
*/
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
@ -39,10 +38,8 @@ public class CustomThymeleafNarrativeGenerator extends BaseThymeleafNarrativeGen
* <li>file:/path/to/file/file.properties</li>
* <li>classpath:/com/package/file.properties</li>
* </ul>
* @throws IOException
* If the file can not be found/read
*/
public CustomThymeleafNarrativeGenerator(String... thePropertyFile) throws IOException {
public CustomThymeleafNarrativeGenerator(String... thePropertyFile) {
setPropertyFile(thePropertyFile);
}
@ -55,8 +52,6 @@ public class CustomThymeleafNarrativeGenerator extends BaseThymeleafNarrativeGen
* <li>file:/path/to/file/file.properties</li>
* <li>classpath:/com/package/file.properties</li>
* </ul>
* @throws IOException
* If the file can not be found/read
*/
public void setPropertyFile(String... thePropertyFile) {
Validate.notNull(thePropertyFile, "Property file can not be null");

View File

@ -3,8 +3,6 @@ package ca.uhn.fhir.narrative;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import java.io.IOException;
import org.junit.Test;
import ca.uhn.fhir.model.dstu.composite.NarrativeDt;
@ -15,7 +13,7 @@ public class CustomThymeleafNarrativeGeneratorTest {
private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(CustomThymeleafNarrativeGeneratorTest.class);
@Test
public void testGenerator() throws IOException {
public void testGenerator() {
CustomThymeleafNarrativeGenerator gen = new CustomThymeleafNarrativeGenerator("file:src/test/resources/narrative/customnarrative.properties");