From: Thomas H. <has...@us...> - 2006-03-02 00:55:38
|
Update of /cvsroot/wsmx/components/choreography/src/unittest/ie/deri/wsmx/choreography/unittest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11386/choreography/src/unittest/ie/deri/wsmx/choreography/unittest Modified Files: ShallowIsocoTest.java RadexTest.java Log Message: Unit tests have now different attribut handling, finer grainer fact differentiation changes, caused by wsm4j upgrade. Index: ShallowIsocoTest.java =================================================================== RCS file: /cvsroot/wsmx/components/choreography/src/unittest/ie/deri/wsmx/choreography/unittest/ShallowIsocoTest.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ShallowIsocoTest.java 28 Feb 2006 00:42:33 -0000 1.9 --- ShallowIsocoTest.java 2 Mar 2006 00:55:34 -0000 1.10 *************** *** 45,48 **** --- 45,49 ---- import org.omwg.ontology.Ontology; import org.wsmo.common.Entity; + import org.wsmo.common.IRI; import org.wsmo.common.TopEntity; import org.wsmo.factory.DataFactory; *************** *** 152,156 **** Concept stockConcept = factory.createConcept(factory.createIRI("http://users.isoco.net/~slosada/ontologies/bankinter/StockMarket#Stock")); Instance stock = factory.createInstance(factory.createIRI("http://users.isoco.net/~slosada/ontologies/bankinter/StockMarket#someStockReply"), stockConcept); ! Attribute attribute = stockConcept.createAttribute(factory.createIRI("http://users.isoco.net/~slosada/ontologies/bankinter/StockMarket#hasValueChange")); stock.addAttributeValue(attribute, dfactory.createWsmlDecimal(new BigDecimal(0.1))); Set<Instance> instances = new HashSet<Instance>(); --- 153,157 ---- Concept stockConcept = factory.createConcept(factory.createIRI("http://users.isoco.net/~slosada/ontologies/bankinter/StockMarket#Stock")); Instance stock = factory.createInstance(factory.createIRI("http://users.isoco.net/~slosada/ontologies/bankinter/StockMarket#someStockReply"), stockConcept); ! IRI attribute = factory.createIRI("http://users.isoco.net/~slosada/ontologies/bankinter/StockMarket#hasValueChange"); stock.addAttributeValue(attribute, dfactory.createWsmlDecimal(new BigDecimal(0.1))); Set<Instance> instances = new HashSet<Instance>(); Index: RadexTest.java =================================================================== RCS file: /cvsroot/wsmx/components/choreography/src/unittest/ie/deri/wsmx/choreography/unittest/RadexTest.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** RadexTest.java 10 Feb 2006 02:46:56 -0000 1.5 --- RadexTest.java 2 Mar 2006 00:55:34 -0000 1.6 *************** *** 143,147 **** mms.add(membershipMolecule); Add add = cFactory.updateRules.createAdd( ! cFactory.facts.createCompoundFact(mms, new HashSet<AttributeValueMolecule>())); return add; } --- 143,147 ---- mms.add(membershipMolecule); Add add = cFactory.updateRules.createAdd( ! cFactory.facts.createMoleculeFact(mms, new HashSet<AttributeValueMolecule>())); return add; } *************** *** 156,160 **** mms.add(membershipMolecule); Add add = cFactory.updateRules.createAdd( ! cFactory.facts.createCompoundFact(mms, new HashSet<AttributeValueMolecule>())); return add; } --- 156,160 ---- mms.add(membershipMolecule); Add add = cFactory.updateRules.createAdd( ! cFactory.facts.createMoleculeFact(mms, new HashSet<AttributeValueMolecule>())); return add; } |