@@ -0,0 +1,1130 @@
+package org.jenkinsci.plugins.p4.client;%0A%0Aimport static org.junit.Assert.assertArrayEquals;%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.util.logging.Logger;%0A%0Aimport org.jenkinsci.plugins.p4.DefaultEnvironment;%0Aimport org.junit.Test;%0A%0Apublic class ViewMapHelperTest extends DefaultEnvironment %7B%0A    private static Logger logger = Logger.getLogger(ViewMapHelperTest.class.getName());%0A    %0A    @Test%0A    public void testSplitDepotPath_singlepath_ok()%7B%0A        String%5B%5D res = ViewMapHelper.splitDepotPath(%22//depot/Projects/my-super-project%22);%0A        String%5B%5D exp = new String%5B%5D%7B%22depot%22, %22Projects%22, %22my-super-project%22 %7D;%0A%0A        assertArrayEquals(%22Depot path is equal%22, exp, res);%0A    %7D%0A%0A    @Test%0A    public void testgetClientView_multipath_ok()%7B%0A        String multi_path = %0A            %22%5Cn//depot/Projects/Foo/Bar/Baz/Tick/Tock/...%5Cn//depot/Projects/Foo/Bar/Baz/Tick/Tack/...%5Cn%22;%0A        String res = ViewMapHelper.getClientView(multi_path, %22p4client%22, false);%0A        // String%5B%5D exp = new String%5B%5D%7B%22depot%22, %22Projects%22, %22my-super-project%22 %7D;%0A%0A        assertEquals(%22Depot path is equal%22, %22Something%22, res);%0A    %7D%0A%7D%0A

Add test class with failing test for viewmaphelper