package de.fiverx.handling;

import org.apache.commons.io.IOUtils;
import org.junit.Assert;
import org.junit.Test;

import java.io.IOException;
import java.util.List;

/**
 * project: fiverxlinksecurity-service
 * author: Pascal Knueppel 
 * created at: 10.03.2016
 *
 */
public class ResourceHolderTest {

    @Test
    public void testGetSchemaVersions() throws IOException {
        List<String> schemaversions = ResourceHolder.getSchemaVersions();
        System.out.println(IOUtils.toString(getClass().getResourceAsStream
                ("/de/fiverx/sv0100/schemas/RZeRezept_02_00_33.xsd")));
        Assert.assertEquals(2, schemaversions.size());
    }

}