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 void
assertCallCount(int i)
List<String>
getTargetPaths()
String
getType()
Get type string id.int
publishFiles(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 ArtifactPublishingFailedException
Description copied from interface:ArtifactsPublisher
Publishes 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:ArtifactsPublisher
Get type string id. Should matchjetbrains.buildServer.serverSide.storage.StorageType#getType()
- Returns:
- see above
-
assertCallCount
public void assertCallCount(int i)
-
-