/**
 * 
 */
package com.github.podd.utils.test;

import java.util.Collections;

import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.openrdf.model.Model;

import com.github.podd.utils.InferredOWLOntologyID;
import com.github.podd.utils.OntologyUtils;

/**
 * Test for OntologyUtils class that translates between RDF and InferredOWLOntologyID instances.
 * 
 * @author Peter Ansell p_ansell@yahoo.com
 */
public class OntologyUtilsTest
{
    
    /**
     * Test method for
     * {@link com.github.podd.utils.OntologyUtils#modelToOntologyIDs(org.openrdf.model.Model)}.
     */
    @Ignore
    @Test
    public final void testModelToOntologyIDs()
    {
        Assert.fail("Not yet implemented"); // TODO
    }
    
    /**
     * Test method for
     * {@link com.github.podd.utils.OntologyUtils#ontologyIDsToHandler(java.util.Collection, org.openrdf.rio.RDFHandler)}
     * .
     */
    @Ignore
    @Test
    public final void testOntologyIDsToHandler()
    {
        Assert.fail("Not yet implemented"); // TODO
    }
    
    /**
     * Test method for
     * {@link com.github.podd.utils.OntologyUtils#ontologyIDsToModel(java.util.Collection, org.openrdf.model.Model)}
     * .
     */
    @Test
    public final void testOntologyIDsToModelEmptyNull()
    {
        final Model ontologyIDsToModel =
                OntologyUtils.ontologyIDsToModel(Collections.<InferredOWLOntologyID> emptyList(), (Model)null);
        
        Assert.assertNotNull(ontologyIDsToModel);
        Assert.assertTrue(ontologyIDsToModel.isEmpty());
    }
    
}

@@ -177,16 +177,63 @@
 l.Model;
+%0Aimport org.openrdf.model.impl.LinkedHashModel;
 %0A%0Aimport
@@ -1613,10 +1613,640 @@
  %7D%0A    %0A
+    /**%0A     * Test method for%0A     * %7B@link com.github.podd.utils.OntologyUtils#ontologyIDsToModel(java.util.Collection, org.openrdf.model.Model)%7D%0A     * .%0A     */%0A    @Test%0A    public final void testOntologyIDsToModelEmptyNotNull()%0A    %7B%0A        final Model input = new LinkedHashModel();%0A        %0A        final Model ontologyIDsToModel =%0A                OntologyUtils.ontologyIDsToModel(Collections.%3CInferredOWLOntologyID%3E emptyList(), input);%0A        %0A        Assert.assertNotNull(ontologyIDsToModel);%0A        Assert.assertEquals(input, ontologyIDsToModel);%0A        Assert.assertTrue(ontologyIDsToModel.isEmpty());%0A    %7D%0A    %0A
 %7D%0A

add test for non-null model as input