package com.nicewuerfel.blockown;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import org.yaml.snakeyaml.Yaml;
public class TestYaml {
private static final String PLUGIN_YML_PATH = "/plugin.yml";
private static final String CONFIG_YML_PATH = "/config.yml";
private static final String MESSAGES_YML_PATH = "/messages.yml";
@Test
public void testPluginYamlValidity() {
Yaml yaml = new Yaml();
Object o = yaml.load(getClass().getResourceAsStream(PLUGIN_YML_PATH));
assertNotNull(o);
}
@Test
public void testConfigYamlValidity() {
Yaml yaml = new Yaml();
Object o = yaml.load(getClass().getResourceAsStream(CONFIG_YML_PATH));
assertNotNull(o);
}
@Test
public void testMessagesYamlValidity() {
Yaml yaml = new Yaml();
Object o = yaml.load(getClass().getResourceAsStream(MESSAGES_YML_PATH));
assertNotNull(o);
}
}