/*
 *  Copyright (C) 2011 The Animo Project
 *  http://animotron.org
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public License
 *  as published by the Free Software Foundation; either version 3
 *  of the License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
package org.animotron.bridge;

import org.animotron.ATest;
import org.animotron.exception.AnimoException;
import org.animotron.graph.serializer.AnimoSerializer;
import org.animotron.statement.operator.THE;
import org.junit.Ignore;
import org.junit.Test;
import org.neo4j.graphdb.Relationship;

import java.io.IOException;

import static org.junit.Assert.assertNotNull;

/**
 * @author <a href="mailto:gazdovsky@gmail.com">Evgeny Gazdovsky</a>
 *
 */
public class FSBridgeTest extends ATest {
	
	private static final String PATH = "src/main/animo/mime-type/application-animo.animo";
	
	private void check(String the) throws IOException {
        Relationship r = THE._.get(the);
        assertNotNull(r);
        AnimoSerializer.serialize(r, System.out);
        System.out.println();
	}
	
	@Test
    @Ignore
	public void loadAndSerialize() throws IOException, AnimoException {
        System.out.println("Test repository loader ...");
        FSBridge.load(PATH);
        System.out.println("loaded ...");
        check("application-animo");
        System.out.println("done.");
	}
}

@@ -1008,33 +1008,8 @@
 HE;%0A
-import org.junit.Ignore;%0A
 impo
@@ -1573,20 +1573,8 @@
 est%0A
-    @Ignore%0A
 %09pub

translate to Animo