@@ -0,0 +1,1846 @@
+/*%0A *  Copyright (C) 2011 The Animo Project%0A *  http://animotron.org%0A *%0A *  This program is free software; you can redistribute it and/or%0A *  modify it under the terms of the GNU Lesser General Public License%0A *  as published by the Free Software Foundation; either version 3%0A *  of the License, or (at your option) any later version.%0A *%0A *  This program is distributed in the hope that it will be useful,%0A *  but WITHOUT ANY WARRANTY; without even the implied warranty of%0A *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A *  GNU Lesser General Public License for more details.%0A *%0A *  You should have received a copy of the GNU Lesser General Public License%0A *  along with this program; if not, write to the Free Software%0A *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.%0A */%0Apackage org.animotron;%0A%0Aimport com.ctc.wstx.stax.WstxInputFactory;%0Aimport org.animotron.exception.AnimoException;%0Aimport org.animotron.graph.builder.StAXBuilder;%0Aimport org.junit.Test;%0Aimport org.neo4j.graphdb.Direction;%0Aimport org.neo4j.graphdb.Relationship;%0A%0Aimport javax.xml.stream.XMLInputFactory;%0Aimport javax.xml.stream.XMLStreamException;%0Aimport java.io.IOException;%0Aimport java.io.StringReader;%0A%0A%0A/**%0A * @author %3Ca href=%22mailto:gazdovsky@gmail.com%22%3EEvgeny Gazdovsky%3C/a%3E%0A *%0A */%0Apublic class XMLTest extends ATest %7B%0A%0A    private static final XMLInputFactory FACTORY = new WstxInputFactory();%0A        %0A    private void test(String in, String out) throws AnimoException, IOException, XMLStreamException %7B%0A        Relationship r = new StAXBuilder(FACTORY.createXMLStreamReader(new StringReader(in))).build();%0A        assertAnimo(r.getEndNode().getRelationships(Direction.OUTGOING).iterator().next(), out);%0A    %7D%0A%0A    @Test%0A%09public void test_00() throws IOException, AnimoException, XMLStreamException %7B%0A        test(%22%3Ca/%3E%22, %22%5C%5Ca%22);%0A%09%7D%0A%0A%7D%0A

test XML builder