Author: tchemit Date: 2008-04-06 08:38:06 +0000 (Sun, 06 Apr 2008) New Revision: 381 Added: trunk/lutinvcs/lutinvcs-provider-mock/src/main/java/org/codelutin/vcs/impl/mock/MockHandler.java Removed: trunk/lutinvcs/lutinvcs-provider-mock/src/main/java/org/codelutin/vcs/impl/mock/MockVCSHandler.java Log: rename Copied: trunk/lutinvcs/lutinvcs-provider-mock/src/main/java/org/codelutin/vcs/impl/mock/MockHandler.java (from rev 378, trunk/lutinvcs/lutinvcs-provider-mock/src/main/java/org/codelutin/vcs/impl/mock/MockVCSHandler.java) =================================================================== --- trunk/lutinvcs/lutinvcs-provider-mock/src/main/java/org/codelutin/vcs/impl/mock/MockHandler.java (rev 0) +++ trunk/lutinvcs/lutinvcs-provider-mock/src/main/java/org/codelutin/vcs/impl/mock/MockHandler.java 2008-04-06 08:38:06 UTC (rev 381) @@ -0,0 +1,119 @@ +/** + * # #% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program is + * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * # #% + */ +package org.codelutin.vcs.impl.mock; + +import org.codelutin.vcs.VCSException; +import org.codelutin.vcs.type.VCSState; +import org.codelutin.vcs.util.AbstractVCSHandler; + +import java.io.File; +import java.io.IOException; +import java.util.Collection; +import java.util.List; + +/** @author chemit */ +public class MockHandler extends AbstractVCSHandler<MockConnexion> { + + public MockHandler() { + super("", ""); + } + + public void initWorkingCopy(MockConnexion connexion) throws VCSException { + } + + public VCSState getState(MockConnexion connexion, File fileState, Collection tmp) throws VCSException { + return null; + } + + public VCSState getState(MockConnexion connexion, File file, Collection tmp, boolean noremote) throws VCSException { + return null; + } + + public boolean isOnRemote(MockConnexion connexion, File file) { + return false; + } + + public boolean isUpToDate(MockConnexion connexion, File file) throws VCSException { + return false; + } + + public void makeRemoteDir(MockConnexion connexion, String commitMessage, String... dirNames) throws VCSException { + } + + public void deleteRemoteDir(MockConnexion connexion, String commitMessage, String... dirNames) throws VCSException { + } + + public long add(MockConnexion connexion, List<File> files, String msg) throws VCSException { + return 0; + } + + public void delete(MockConnexion connexion, List<File> files, String msg) throws VCSException { + } + + public void revert(MockConnexion connexion, List<File> files) throws VCSException { + } + + public long commit(MockConnexion connexion, List<File> files, String msg) throws VCSException { + return 0; + } + + public void update(MockConnexion connexion, File file, Object revision) throws VCSException { + } + + public void update(MockConnexion connexion, File file) throws VCSException { + } + + public void checkout(MockConnexion connexion, File destDir, String module, boolean recurse) throws VCSException { + } + + public void checkoutFile(MockConnexion connexion, File destDir, String module) throws VCSException { + } + + public long checkoutOnlyTheDirectory(MockConnexion connexion, File root, Object revision) throws VCSException { + return 0; + } + + public List<String> getRemoteStorageNames(MockConnexion connexion, File directory) throws VCSException { + return null; + } + + public Object getRevision(MockConnexion connexion, File f) throws VCSException { + return null; + } + + public List getLog(MockConnexion connexion, Object startRevision, Object endRevision, File file) throws VCSException { + return null; + } + + public String getFileContent(MockConnexion connexion, File file, Object revision) throws VCSException, IOException { + return null; + } + + public String getChangeLog(MockConnexion connexion, File file) throws VCSException { + return null; + } + + public String getDiff(MockConnexion connexion, File file) throws VCSException, IOException { + return null; + } + + public String getDiff(MockConnexion connexion, File file, Object againstRevision) throws VCSException, IOException { + return null; + } + + public boolean hasProtocoleChanged(MockConnexion connexion) throws VCSException { + return false; + } +} Deleted: trunk/lutinvcs/lutinvcs-provider-mock/src/main/java/org/codelutin/vcs/impl/mock/MockVCSHandler.java =================================================================== --- trunk/lutinvcs/lutinvcs-provider-mock/src/main/java/org/codelutin/vcs/impl/mock/MockVCSHandler.java 2008-04-06 08:17:21 UTC (rev 380) +++ trunk/lutinvcs/lutinvcs-provider-mock/src/main/java/org/codelutin/vcs/impl/mock/MockVCSHandler.java 2008-04-06 08:38:06 UTC (rev 381) @@ -1,119 +0,0 @@ -/** - * # #% Copyright (C) 2008 Code Lutin, Tony Chemit - * This program is free software; you - * can redistribute it and/or modify it under the terms of the GNU General - * Public License as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. This program is - * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A - * PARTICULAR PURPOSE. See the GNU General Public License for more details. You - * should have received a copy of the GNU General Public License along with this - * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - * - Suite 330, Boston, MA 02111-1307, USA. - * # #% - */ -package org.codelutin.vcs.impl.mock; - -import org.codelutin.vcs.VCSException; -import org.codelutin.vcs.type.VCSState; -import org.codelutin.vcs.util.AbstractVCSHandler; - -import java.io.File; -import java.io.IOException; -import java.util.Collection; -import java.util.List; - -/** @author chemit */ -public class MockVCSHandler extends AbstractVCSHandler<MockConnexion> { - - public MockVCSHandler() { - super("", ""); - } - - public void initWorkingCopy(MockConnexion connexion) throws VCSException { - } - - public VCSState getState(MockConnexion connexion, File fileState, Collection tmp) throws VCSException { - return null; - } - - public VCSState getState(MockConnexion connexion, File file, Collection tmp, boolean noremote) throws VCSException { - return null; - } - - public boolean isOnRemote(MockConnexion connexion, File file) { - return false; - } - - public boolean isUpToDate(MockConnexion connexion, File file) throws VCSException { - return false; - } - - public void makeRemoteDir(MockConnexion connexion, String commitMessage, String... dirNames) throws VCSException { - } - - public void deleteRemoteDir(MockConnexion connexion, String commitMessage, String... dirNames) throws VCSException { - } - - public long add(MockConnexion connexion, List<File> files, String msg) throws VCSException { - return 0; - } - - public void delete(MockConnexion connexion, List<File> files, String msg) throws VCSException { - } - - public void revert(MockConnexion connexion, List<File> files) throws VCSException { - } - - public long commit(MockConnexion connexion, List<File> files, String msg) throws VCSException { - return 0; - } - - public void update(MockConnexion connexion, File file, Object revision) throws VCSException { - } - - public void update(MockConnexion connexion, File file) throws VCSException { - } - - public void checkout(MockConnexion connexion, File destDir, String module, boolean recurse) throws VCSException { - } - - public void checkoutFile(MockConnexion connexion, File destDir, String module) throws VCSException { - } - - public long checkoutOnlyTheDirectory(MockConnexion connexion, File root, Object revision) throws VCSException { - return 0; - } - - public List<String> getRemoteStorageNames(MockConnexion connexion, File directory) throws VCSException { - return null; - } - - public Object getRevision(MockConnexion connexion, File f) throws VCSException { - return null; - } - - public List getLog(MockConnexion connexion, Object startRevision, Object endRevision, File file) throws VCSException { - return null; - } - - public String getFileContent(MockConnexion connexion, File file, Object revision) throws VCSException, IOException { - return null; - } - - public String getChangeLog(MockConnexion connexion, File file) throws VCSException { - return null; - } - - public String getDiff(MockConnexion connexion, File file) throws VCSException, IOException { - return null; - } - - public String getDiff(MockConnexion connexion, File file, Object againstRevision) throws VCSException, IOException { - return null; - } - - public boolean hasProtocoleChanged(MockConnexion connexion) throws VCSException { - return false; - } -}