1 /* 2 wsmo4j - a WSMO API and Reference Implementation 3 4 Copyright (c) 2004-2005, OntoText Lab. / SIRMA 5 6 This library is free software; you can redistribute it and/or modify it under 7 the terms of the GNU Lesser General Public License as published by the Free 8 Software Foundation; either version 2.1 of the License, or (at your option) 9 any later version. 10 This library is distributed in the hope that it will be useful, but WITHOUT 11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 12 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 13 details. 14 You should have received a copy of the GNU Lesser General Public License along 15 with this library; if not, write to the Free Software Foundation, Inc., 16 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 */ 18 package test.wsmo4j; 19 20 import junit.framework.*; 21 22 import org.wsmo.common.*; 23 import org.wsmo.factory.*; 24 import static test.wsmo4j.Utils.*; 25 /** 26 * <p>Title: WSMO4J</p> 27 * <p>Description: WSMO API and a Reference Implementation</p> 28 * <p>Copyright: Copyright (c) 2004-2005</p> 29 * <p>Company: OntoText Lab. / SIRMA </p> 30 * @author not attributable 31 * @version 1.0 32 */ 33 34 public class Wsmo4jTestCase extends TestCase { 35 36 protected WsmoFactory factory; 37 protected LogicalExpressionFactory leFactory; 38 protected DataFactory dataFactory; 39 40 protected void setUp() throws Exception { 41 super.setUp(); 42 factory = Factory.createWsmoFactory(null); 43 leFactory = Factory.createLogicalExpressionFactory(null); 44 dataFactory = Factory.createDataFactory(null); 45 } 46 47 protected IRI createIRI(String iri) { 48 return factory.createIRI(iri); 49 } 50 51 protected IRI createIRI(Namespace ns, String iri) { 52 return factory.createIRI(ns, iri); 53 } 54 } 55 56 /* 57 * $Log$ 58 * Revision 1.7 2005/11/21 13:15:46 holgerlausen 59 * organize imputs 60 * 61 * Revision 1.6 2005/10/05 12:56:14 vassil_momtchev 62 * getFile method removed 63 * 64 * Revision 1.5 2005/09/17 08:53:46 vassil_momtchev 65 * Factory.createDataFactory(map) replaced new DataFactoryImpl() 66 * 67 * Revision 1.4 2005/09/12 14:17:01 vassil_momtchev 68 * datafactory added; short createIRI methods added 69 * 70 * Revision 1.3 2005/09/09 06:35:47 holgerlausen 71 * all open unit tests are moved to clarification:* wokring unit tests under test.*, Wsmo4jTestSuite contains now all tests that are expect to work 72 * 73 * Revision 1.2 2005/09/06 18:37:24 holgerlausen 74 * ClassLoader.getSystemResourceAsStream fails in some environments... altered to determine current class loader... 75 * 76 * Revision 1.1 2005/08/08 09:24:28 vassil_momtchev 77 * xml parser unittest 78 * 79 */