package br.gov.servicos.config;

import org.junit.Test;
import org.springframework.core.io.ClassPathResource;

import java.io.InputStreamReader;

public class ValidadorYamlTest {

    @Test
    public void deveSerVálido() throws Exception {
        new org.yaml.snakeyaml.Yaml().parse(
                new InputStreamReader(
                        new ClassPathResource("file:src/main/resources/application.yaml").getInputStream()));
    }
}

@@ -26,16 +26,41 @@
 onfig;%0A%0A
+import org.junit.Before;%0A
 import o
@@ -127,16 +127,48 @@
 esource;
+%0Aimport org.yaml.snakeyaml.Yaml;
 %0A%0Aimport
@@ -238,13 +238,39 @@
     
-@Test
+private Yaml yaml;%0A%0A    @Before
 %0A   
@@ -286,21 +286,13 @@
 oid 
-deveSerV%C3%A1lido
+setUp
 () t
@@ -321,107 +321,131 @@
     
-new org.yaml.snakeyaml.Yaml().parse(%0A  
+yaml = new Yaml();%0A
     
+%7D%0A%0A
     
-      new InputStreamReader(%0A                       
+@Test%0A    public void deveSerV%C3%A1lido() throws Exception %7B%0A        ClassPathResource resource =
  new
@@ -506,16 +506,67 @@
 n.yaml%22)
+;%0A        yaml.parse(new InputStreamReader(resource
 .getInpu

Resolve problemas com findbugs - #257