Class GitCheckInCommandTckTest


public abstract class GitCheckInCommandTckTest extends CheckInCommandTckTest
  • Constructor Details

    • GitCheckInCommandTckTest

      public GitCheckInCommandTckTest()
  • Method Details

    • initRepo

      public void initRepo() throws Exception

      Initialize repository at the ScmTckTestCase.getScmUrl() location with the files in ScmTckTestCase.getScmFileNames()

      The setup is also asserting on the existence of these files.
      This should only be used by this class (thus do not call this method from derived classes)

      Note: 'svnadmin' should be a system command.
      Specified by:
      initRepo in class ScmTckTestCase
      Throws:
      Exception - if any
    • checkOut

      protected CheckOutScmResult checkOut(File workingDirectory, ScmRepository repository) throws Exception
      Description copied from class: ScmTckTestCase
      Convenience method to check out files from the repository.
      Overrides:
      checkOut in class ScmTckTestCase
      Throws:
      Exception
    • testUpToDatePush

      public void testUpToDatePush() throws Exception
      Throws:
      Exception
    • testRejectedNonFastForwardPush

      public void testRejectedNonFastForwardPush() throws Exception
      Throws:
      Exception
    • testCommitWithRejectingPreCommitHook

      public void testCommitWithRejectingPreCommitHook() throws Exception
      Throws:
      Exception
    • testCommitNoVerify

      public void testCommitNoVerify() throws Exception
      Throws:
      Exception
    • checkoutRepoInto

      private CheckOutScmResult checkoutRepoInto(File workingCopy, ScmRepository scmRepository) throws Exception
      Throws:
      Exception
    • createWorkspaceChange

      private ScmFileSet createWorkspaceChange(File repo) throws IOException
      Throws:
      IOException
    • createTempFileFromClasspathResource

      private static Path createTempFileFromClasspathResource(String resourceName, String fileName) throws IOException
      Creates a new file below a new temporary directory and copies the content of a classpath resource into it. The caller is responsible for deleting the temporary directory afterwards.
      Parameters:
      resourceName - from where to populate the file (relative to clazz)
      fileName - the file name to create below
      Returns:
      the newly created file
      Throws:
      IOException - in case of an error creating the file or copying the resource