https://kotlinlang.org logo
#announcements
Title
# announcements
s

silas.schwarz

08/18/2017, 11:13 AM
hi again, how do you guys/girls write tests for an infix function inside a builder
i'm trying to mock the typesafe builder and verify function calls within
m

mhooch

08/18/2017, 11:17 AM
Copy code
class S3ContextBuilder(bucketName: String = "", s3Client: AmazonS3? = null) {
    infix fun String.moveTo(destinationPath: String) {
        this copyTo destinationPath
        this.delete()
    }
}
something like this?
s

silas.schwarz

08/18/2017, 11:17 AM
@darkmoon_uk
3 Views