From: <ble...@us...> - 2010-09-16 14:44:40
|
Revision: 3567 http://bigdata.svn.sourceforge.net/bigdata/?rev=3567&view=rev Author: blevine218 Date: 2010-09-16 14:44:29 +0000 (Thu, 16 Sep 2010) Log Message: ----------- MappedRDFDataLoadMaster integration tests now run successfully Added Paths: ----------- branches/maven_scaleout/bigdata-integ/src/test/java/com/bigdata/service/jini/master/TestMappedRDFDataLoadMaster.java branches/maven_scaleout/bigdata-integ/src/test/java/com/bigdata/service/jini/master/TestMappedRDFDataLoadMasterRemote.java Copied: branches/maven_scaleout/bigdata-integ/src/test/java/com/bigdata/service/jini/master/TestMappedRDFDataLoadMaster.java (from rev 3541, branches/maven_scaleout/bigdata-core/src/test/java/com/bigdata/service/jini/master/TestMappedRDFDataLoadMaster.java) =================================================================== --- branches/maven_scaleout/bigdata-integ/src/test/java/com/bigdata/service/jini/master/TestMappedRDFDataLoadMaster.java (rev 0) +++ branches/maven_scaleout/bigdata-integ/src/test/java/com/bigdata/service/jini/master/TestMappedRDFDataLoadMaster.java 2010-09-16 14:44:29 UTC (rev 3567) @@ -0,0 +1,123 @@ +/** + +The Notice below must appear in each file of the Source Code of any +copy you distribute of the Licensed Product. Contributors to any +Modifications may add their own copyright notices to identify their +own contributions. + +License: + +The contents of this file are subject to the CognitiveWeb Open Source +License Version 1.1 (the License). You may not copy or use this file, +in either source code or executable form, except in compliance with +the License. You may obtain a copy of the License from + + http://www.CognitiveWeb.org/legal/license/ + +Software distributed under the License is distributed on an AS IS +basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See +the License for the specific language governing rights and limitations +under the License. + +Copyrights: + +Portions created by or assigned to CognitiveWeb are Copyright +(c) 2003-2003 CognitiveWeb. All Rights Reserved. Contact +information for CognitiveWeb is available at + + http://www.CognitiveWeb.org + +Portions Copyright (c) 2002-2003 Bryan Thompson. + +Acknowledgements: + +Special thanks to the developers of the Jabber Open Source License 1.0 +(JOSL), from which this License was derived. This License contains +terms that differ from JOSL. + +Special thanks to the CognitiveWeb Open Source Contributors for their +suggestions and support of the Cognitive Web. + +Modifications: + +*/ +/* + * Created on Oct 7, 2009 + */ + +package com.bigdata.service.jini.master; + +import java.io.File; +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +import com.bigdata.DataFinder; + +import net.jini.config.ConfigurationException; + +import org.apache.zookeeper.KeeperException; +import org.junit.Test; + +import com.bigdata.rdf.load.MappedRDFDataLoadMaster; +import com.bigdata.service.jini.util.JiniServicesHelper; + +/** + * Unit tests for the {@link MappedTaskMaster}. + * + * @author <a href="mailto:tho...@us...">Bryan Thompson</a> + * @version $Id$ + */ +public class TestMappedRDFDataLoadMaster { + + protected boolean serviceImplRemote; + + /** + * + */ + public TestMappedRDFDataLoadMaster() { + this.serviceImplRemote = false; + } + + + protected TestMappedRDFDataLoadMaster(boolean serviceImplRemote) { + this.serviceImplRemote = serviceImplRemote; + } + + + private JiniServicesHelper helper; + + /** + * This runs a U1 data load. + * + * FIXME Go further and test the behavior of the pending set. + * + * @throws KeeperException + */ + @Test + public void test() throws ConfigurationException, InterruptedException, + IOException, ExecutionException, KeeperException { + + JiniServicesHelper helper = null; + + final File tempConfigFile = JiniServicesHelper + .append(new File(DataFinder.bestPath("testing/data/com/bigdata/service/jini/master/TestMappedRDFDataLoadMaster.config") ) ); + + final String[] args = new String[] {tempConfigFile.getPath()}; + + try { + helper = new JiniServicesHelper(args, serviceImplRemote); + helper.start(); + + new MappedRDFDataLoadMaster(helper.getFederation()).execute(); + + } finally { + + // delete the temp file containing the federation configuration. + tempConfigFile.delete(); + + if (helper != null) + helper.destroy(); + + } + } +} Copied: branches/maven_scaleout/bigdata-integ/src/test/java/com/bigdata/service/jini/master/TestMappedRDFDataLoadMasterRemote.java (from rev 3541, branches/maven_scaleout/bigdata-core/src/test/java/com/bigdata/service/jini/master/TestMappedRDFDataLoadMasterRemote.java) =================================================================== --- branches/maven_scaleout/bigdata-integ/src/test/java/com/bigdata/service/jini/master/TestMappedRDFDataLoadMasterRemote.java (rev 0) +++ branches/maven_scaleout/bigdata-integ/src/test/java/com/bigdata/service/jini/master/TestMappedRDFDataLoadMasterRemote.java 2010-09-16 14:44:29 UTC (rev 3567) @@ -0,0 +1,57 @@ +/** + +The Notice below must appear in each file of the Source Code of any +copy you distribute of the Licensed Product. Contributors to any +Modifications may add their own copyright notices to identify their +own contributions. + +License: + +The contents of this file are subject to the CognitiveWeb Open Source +License Version 1.1 (the License). You may not copy or use this file, +in either source code or executable form, except in compliance with +the License. You may obtain a copy of the License from + + http://www.CognitiveWeb.org/legal/license/ + +Software distributed under the License is distributed on an AS IS +basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See +the License for the specific language governing rights and limitations +under the License. + +Copyrights: + +Portions created by or assigned to CognitiveWeb are Copyright +(c) 2003-2003 CognitiveWeb. All Rights Reserved. Contact +information for CognitiveWeb is available at + + http://www.CognitiveWeb.org + +Portions Copyright (c) 2002-2003 Bryan Thompson. + +Acknowledgements: + +Special thanks to the developers of the Jabber Open Source License 1.0 +(JOSL), from which this License was derived. This License contains +terms that differ from JOSL. + +Special thanks to the CognitiveWeb Open Source Contributors for their +suggestions and support of the Cognitive Web. + +Modifications: + +*/ + +package com.bigdata.service.jini.master; + +/** + * Unit tests for the {@link MappedTaskMaster} using the purely remote + * service implementations. + */ +public class TestMappedRDFDataLoadMasterRemote + extends TestMappedRDFDataLoadMaster +{ + public TestMappedRDFDataLoadMasterRemote() { + super(true); + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |