/******************************************************************************* * Copyright (c) 2005-2008 Polarion Software. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Sergiy Logvin (Polarion Software) - initial API and implementation *******************************************************************************/ package org.eclipse.team.svn.tests.core.file.management; import java.io.File; import org.eclipse.team.svn.core.operation.IActionOperation; import org.eclipse.team.svn.core.operation.file.management.ShareOperation; import org.eclipse.team.svn.tests.core.file.AbstractOperationTestCase; /** * Share operation test * * @author Sergiy Logvin */ public class ShareOperationTest extends AbstractOperationTestCase { protected IActionOperation getOperation() { ShareOperation.IFolderNameMapper folderNameMapper = new ShareOperation.IFolderNameMapper() { public String getRepositoryFolderName(File folder) { return folder.getName(); } }; return new ShareOperation(this.getBothFolders(), this.getLocation(), folderNameMapper, "rootName", ShareOperation.LAYOUT_DEFAULT, true, "Share Project test", true); } }