@@ -0,0 +1,2084 @@
+/*%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 ALL 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.operator;%0A%0Aimport static org.animotron.Expression._;%0Aimport static org.animotron.Expression.text;%0A%0Aimport java.io.IOException;%0A%0Aimport org.animotron.ATest;%0Aimport org.animotron.Expression;%0Aimport org.animotron.exception.EBuilderTerminated;%0Aimport org.animotron.operator.query.ANY;%0Aimport org.animotron.operator.relation.HAVE;%0Aimport org.animotron.operator.relation.IS;%0Aimport org.animotron.operator.relation.USE;%0Aimport org.junit.Test;%0A%0A/**%0A * @author %3Ca href=%22mailto:shabanovd@gmail.com%22%3EDmitriy Shabanov%3C/a%3E%0A * @author %3Ca href=%22mailto:gazdovsky@gmail.com%22%3EEvgeny Gazdovsky%3C/a%3E%0A *%0A */%0Apublic class UseTest extends ATest %7B%0A%0A%09@Test%0A%09public void simpleUse() throws EBuilderTerminated, IOException, InterruptedException %7B%0A    %09new Expression(%0A            _(THE._, %22A%22, _(IS._, %22S%22), _(HAVE._, %22X%22, text(%22%CE%B1%22)))%0A        );%0A%0A        new Expression(%0A            _(THE._, %22B%22, _(IS._, %22A%22), _(HAVE._, %22Y%22, text(%22%CE%B2%22)))%0A        );%0A%0A        new Expression(%0A            _(THE._, %22C%22, _(IS._, %22B%22), _(HAVE._, %22Z%22, text(%22%CE%B3%22)),  _(HAVE._, %22X%22, text(%22%CE%B1%CE%B1%22)))%0A        );%0A%0A        Expression a = new Expression(%0A                _(THE._, %22a%22, _(ANY._, %22S%22, _(USE._, %22B%22)))%0A            );%0A        assertAnimo(a, %22%3Cthe:a%3E%3Cthe:B%3E%3Cis:A/%3E%3Chave:Y%3E%CE%B2%3C/have:Y%3E%3C/the:B%3E%3C/the:a%3E%22);%0A%09%7D%0A%0A%7D%0A

USE test