Package jetbrains.buildServer.agent
Class MockArtifactsPublisher
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.BaseArtifactsPublisher
-
- jetbrains.buildServer.agent.MockArtifactsPublisher
-
- All Implemented Interfaces:
AgentExtension,ArtifactsPublisher,TeamCityExtension
- Direct Known Subclasses:
MockDigestProducingArtifactPublisher,NullArtifactsPublisher
public class MockArtifactsPublisher extends BaseArtifactsPublisher
- Author:
- Kir
-
-
Constructor Summary
Constructors Constructor Description MockArtifactsPublisher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertCallCount(int i)List<String>getTargetPaths()StringgetType()Get type string id.intpublishFiles(Map<File,String> filePathMap)Publishes files.-
Methods inherited from class jetbrains.buildServer.agent.impl.BaseArtifactsPublisher
isEnabled
-
-
-
-
Method Detail
-
publishFiles
public int publishFiles(@NotNull Map<File,String> filePathMap) throws ArtifactPublishingFailedExceptionDescription copied from interface:ArtifactsPublisherPublishes files. Note that publishing is performed from the agent messages queue and thus this method can be called when build on the agent is already finished.- Parameters:
filePathMap- map of the file to publish to its destination directory- Returns:
- number of successfully published files
- Throws:
ArtifactPublishingFailedException- if publishing failed
-
getType
@NotNull public String getType()
Description copied from interface:ArtifactsPublisherGet type string id. Should matchjetbrains.buildServer.serverSide.storage.StorageType#getType()- Returns:
- see above
-
assertCallCount
public void assertCallCount(int i)
-
-