Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20 lines (14 sloc)
732 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.pager | |
import io.pager.client.github.GitHubRelease | |
import io.pager.subscription.Repository.{ Name, Version } | |
import java.time.Instant | |
object TestData { | |
val finalVersion: Version = Version("1.0.0") | |
val rcVersion: Version = Version("1.0.0-RC17") | |
val timestamp1: Instant = Instant.parse("2019-11-29T17:34:23.00Z") | |
val timestamp2: Instant = Instant.parse("2019-12-30T18:35:24.00Z") | |
val rcRelease: GitHubRelease = GitHubRelease(rcVersion, timestamp1) | |
val finalRelease: GitHubRelease = GitHubRelease(finalVersion, timestamp2) | |
val releases: List[GitHubRelease] = List(rcRelease, finalRelease) | |
def message(name: Name) = s"There is a new version of ${name.value} available: ${finalVersion.value}" | |
} |