/**
 * Copyright 2009 University of Oxford
 *
 * Written by Arno Mittelbach for the Erewhon Project
 *
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without 
 * modification, are permitted provided that the following conditions are met:
 *
 *  - Redistributions of source code must retain the above copyright notice, 
 *    this list of conditions and the following disclaimer.
 *  - Redistributions in binary form must reproduce the above copyright notice, 
 *    this list of conditions and the following disclaimer in the documentation 
 *    and/or other materials provided with the distribution.
 *  - Neither the name of the University of Oxford nor the names of its 
 *    contributors may be used to endorse or promote products derived from this 
 *    software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sf.gaboto.entities.test;

import static org.junit.Assert.assertTrue;

import java.util.List;

import org.junit.BeforeClass;
import org.junit.Test;
import org.oucs.gaboto.GabotoConfiguration;
import org.oucs.gaboto.GabotoLibrary;
import org.oucs.gaboto.vocabulary.DC;

import uk.ac.ox.oucs.oxpoints.gaboto.entities.Building;
import uk.ac.ox.oucs.oxpoints.gaboto.entities.Unit;

import com.hp.hpl.jena.datatypes.xsd.XSDDatatype;
import com.hp.hpl.jena.graph.Node;
import com.hp.hpl.jena.graph.Triple;

public class TestGabotoEntityUtils {

	
	@BeforeClass
	public static void setUp() throws Exception {
		GabotoLibrary.init(GabotoConfiguration.fromConfigFile());
	}
	
	@Test
	public void testEntityToTriples()  {
		Unit u = new Unit();
		u.setUri("http://exampleuri.co.uk/lala");
		
		Building b = new Building();
		b.setUri("http://exampleuri.co.uk");
		b.setName("Abcdef");

		List<Triple> triples = b.getTriplesFor();
		
		assertTrue(triples.contains(new Triple(
			Node.createURI(b.getUri()),
			Node.createURI(DC.title_URI),
			Node.createLiteral(b.getName(), null, XSDDatatype.XSDstring)
		)));
	}
}

@@ -1817,90 +1817,8 @@
 st;%0A
-import org.oucs.gaboto.GabotoConfiguration;%0Aimport org.oucs.gaboto.GabotoLibrary;%0A
 impo
@@ -1851,16 +1851,16 @@
 ary.DC;%0A
+
 %0Aimport 
@@ -2189,68 +2189,8 @@
 n %7B%0A
-%09%09GabotoLibrary.init(GabotoConfiguration.fromConfigFile());%0A
 %09%7D%0A%09
@@ -2375,16 +2375,16 @@
 o.uk%22);%0A
+
 %09%09b.setN
@@ -2398,17 +2398,16 @@
 cdef%22);%0A
-%0A
 %09%09List%3CT

Remove unused init