@@ -0,0 +1,2647 @@
+/*%0A */%0Apackage org.datadryad.rest.storage;%0A%0Aimport com.sun.istack.logging.Logger;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A *%0A * @author Dan Leehr %3Cdan.leehr@nescent.org%3E%0A */%0Apublic class StoragePathTest %7B%0A    private static final Logger log = Logger.getLogger(StoragePathTest.class);%0A%0A    /**%0A     * Test of addPathElement method, of class StoragePath.%0A     */%0A    @Test%0A    public void testAddPathElement() %7B%0A        log.info(%22addPathElement%22);%0A        String key = %22key%22;%0A        String value = %22value%22;%0A        StoragePath instance = new StoragePath();%0A        assertEquals(0, instance.size());%0A        instance.addPathElement(key, value);%0A        assertEquals(1, instance.size());%0A    %7D%0A%0A    /**%0A     * Test of getKeyPath method, of class StoragePath.%0A     */%0A    @Test%0A    public void testGetKeyPath() %7B%0A        log.info(%22getKeyPath%22);%0A        StoragePath instance = new StoragePath();%0A        String key = %22key%22;%0A        String value = %22value%22;%0A        List expResult = Arrays.asList(key);%0A        instance.addPathElement(key, value);%0A        List result = instance.getKeyPath();%0A        assertEquals(expResult, result);%0A    %7D%0A%0A    /**%0A     * Test of getValuePath method, of class StoragePath.%0A     */%0A    @Test%0A    public void testGetValuePath() %7B%0A        log.info(%22getValuePath%22);%0A        StoragePath instance = new StoragePath();%0A        String key = %22key%22;%0A        String value = %22value%22;%0A        List expResult = Arrays.asList(value);%0A        List result = instance.getValuePath();%0A        assertEquals(expResult, result);%0A    %7D%0A%0A    /**%0A     * Test of validElements method, of class StoragePath.%0A     */%0A    @Test%0A    public void testInvalidElements() %7B%0A        System.out.println(%22invalidElements%22);%0A        StoragePath instance = new StoragePath();%0A        // Should be invalid if string length is 0%0A        String key = %22key%22;%0A        String invalidValue = %22%22;%0A        instance.addPathElement(key, invalidValue);%0A        Boolean expResult = false;%0A        Boolean result = instance.validElements();%0A        assertEquals(expResult, result);%0A    %7D%0A%0A    /**%0A     * Test of validElements method, of class StoragePath.%0A     */%0A    @Test%0A    public void testValidElements() %7B%0A        System.out.println(%22validElements%22);%0A        StoragePath instance = new StoragePath();%0A        // Should be invalid if string length is 0%0A        String key = %22key%22;%0A        String validValue = %22f%22;%0A        instance.addPathElement(key, validValue);%0A        Boolean expResult = true;%0A        Boolean result = instance.validElements();%0A        assertEquals(expResult, result);%0A    %7D%0A%0A%7D%0A

Test for StoragePath