@@ -0,0 +1,3204 @@
+/*%0A * Copyright 2015 iychoi.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0Aimport junit.framework.Assert;%0Aimport org.apache.log4j.BasicConfigurator;%0Aimport org.iplantcollaborative.IPlantBorderMessageServer;%0Aimport org.iplantcollaborative.conf.BMSConf;%0Aimport org.iplantcollaborative.irods.DataStoreClient;%0Aimport org.junit.After;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0A/**%0A *%0A * @author iychoi%0A */%0Apublic class DataStoreClientTest %7B%0A    %0A    private BMSConf conf;%0A    private IPlantBorderMessageServer server;%0A    %0A    public DataStoreClientTest() %7B%0A    %7D%0A    %0A    @BeforeClass%0A    public static void setUpClass() %7B%0A    %7D%0A    %0A    @AfterClass%0A    public static void tearDownClass() %7B%0A    %7D%0A    %0A    @Before%0A    public void setUp() throws IOException %7B%0A        BasicConfigurator.configure();%0A        this.conf = BMSConf.createInstance(new File(%22./config.json%22));%0A        this.server = new IPlantBorderMessageServer(this.conf.getMessageServerConf(), this.conf.getDataStoreConfConf());%0A        this.server.connect();%0A    %7D%0A    %0A    @After%0A    public void tearDown() throws IOException %7B%0A        this.server.close();%0A        this.server = null;%0A        this.conf = null;%0A    %7D%0A%0A    @Test%0A    public void testUUIDConvDataObject() throws InterruptedException, IOException %7B%0A        DataStoreClient datastoreClient = this.server.getProcessor().getDatastoreClient();%0A        String dataObjectPath = datastoreClient.convertUUIDToPath(%2283015514-8db6-11e5-9d66-1a5a300ff36f%22);%0A        Assert.assertNotNull(dataObjectPath);%0A        Assert.assertEquals(%22uuid of an object%22, %22/iplant/home/iychoi/test.txt%22, dataObjectPath);%0A    %7D%0A    %0A    @Test%0A    public void testUUIDConvCollection() throws InterruptedException, IOException %7B%0A        DataStoreClient datastoreClient = this.server.getProcessor().getDatastoreClient();%0A        String collectionPath = datastoreClient.convertUUIDToPath(%226d7da718-8db8-11e5-9d66-1a5a300ff36f%22);%0A        Assert.assertNotNull(collectionPath);%0A        Assert.assertEquals(%22uuid of a collection%22, %22/iplant/home/iychoi/testColl%22, collectionPath);%0A        %0A        String notExistUUID = datastoreClient.convertUUIDToPath(%226d7da718-8db8-11e5-9d66-1a5a300ffd6f%22);%0A        Assert.assertNull(notExistUUID);%0A    %7D%0A    %0A    @Test%0A    public void testUUIDConvNotExist() throws InterruptedException, IOException %7B%0A        DataStoreClient datastoreClient = this.server.getProcessor().getDatastoreClient();%0A        String notExistUUID = datastoreClient.convertUUIDToPath(%226d7da718-8db8-11e5-9d66-1a5a300ffd6f%22);%0A        Assert.assertNull(notExistUUID);%0A    %7D%0A    %0A%7D%0A

Add missing test file