Class MockArtifactsPublisher

    • Constructor Detail

      • MockArtifactsPublisher

        public MockArtifactsPublisher()
    • 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 match jetbrains.buildServer.serverSide.storage.StorageType#getType()
        Returns:
        see above
      • assertCallCount

        public void assertCallCount​(int i)
      • getTargetPaths

        public List<String> getTargetPaths()