org.jvnet.hudson.test
Class FakeChangeLogSCM

java.lang.Object
  extended by hudson.scm.SCM
      extended by hudson.scm.NullSCM
          extended by org.jvnet.hudson.test.FakeChangeLogSCM
All Implemented Interfaces:
ExtensionPoint, Describable<SCM>

public class FakeChangeLogSCM
extends NullSCM

Fake SCM implementation that can report arbitrary commits from arbitrary users.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class FakeChangeLogSCM.ChangelogAction
           
static class FakeChangeLogSCM.EntryImpl
           
static class FakeChangeLogSCM.FakeChangeLogParser
           
static class FakeChangeLogSCM.FakeChangeLogSet
           
 
Nested classes/interfaces inherited from class hudson.scm.NullSCM
NullSCM.DescriptorImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
FakeChangeLogSCM()
           
 
Method Summary
 FakeChangeLogSCM.EntryImpl addChange()
           
 boolean checkout(AbstractBuild<?,?> build, Launcher launcher, FilePath remoteDir, BuildListener listener, File changeLogFile)
           
 ChangeLogParser createChangeLogParser()
           
 
Methods inherited from class hudson.scm.NullSCM
calcRevisionsFromBuild, compareRemoteRevisionWith
 
Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, all, buildEnvVars, createEmptyChangeLog, getApi, getBrowser, getDescriptor, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, nullify, poll, pollChanges, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeChangeLogSCM

public FakeChangeLogSCM()
Method Detail

addChange

public FakeChangeLogSCM.EntryImpl addChange()

checkout

public boolean checkout(AbstractBuild<?,?> build,
                        Launcher launcher,
                        FilePath remoteDir,
                        BuildListener listener,
                        File changeLogFile)
                 throws IOException,
                        InterruptedException
Overrides:
checkout in class NullSCM
Throws:
IOException
InterruptedException

createChangeLogParser

public ChangeLogParser createChangeLogParser()
Overrides:
createChangeLogParser in class NullSCM


Copyright © 2004-2011. All Rights Reserved.