diff options
author | Jakob Odersky <jakob@odersky.com> | 2017-11-20 21:38:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 21:38:21 -0800 |
commit | f2a56045d0b29291a18054607701d5863722121e (patch) | |
tree | 34b5fc63cc425a27969c73354fd7a2071ea67ba3 /src/test/scala/xyz/driver/core/FileTest.scala | |
parent | 8d30baada3a9c25ef61ef80511f4b4f25799f0cb (diff) | |
parent | b872ee2649c7b56df413fbde746ee68312c17abd (diff) | |
download | driver-core-f2a56045d0b29291a18054607701d5863722121e.tar.gz driver-core-f2a56045d0b29291a18054607701d5863722121e.tar.bz2 driver-core-f2a56045d0b29291a18054607701d5863722121e.zip |
Merge pull request #91 from drivergroup/new-creds-and-format
New creds and format
Diffstat (limited to 'src/test/scala/xyz/driver/core/FileTest.scala')
-rw-r--r-- | src/test/scala/xyz/driver/core/FileTest.scala | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/test/scala/xyz/driver/core/FileTest.scala b/src/test/scala/xyz/driver/core/FileTest.scala index ace0b07..8728089 100644 --- a/src/test/scala/xyz/driver/core/FileTest.scala +++ b/src/test/scala/xyz/driver/core/FileTest.scala @@ -39,10 +39,11 @@ class FileTest extends FlatSpec with Matchers with MockitoSugar { val s3ResultsMock = mock[ListObjectsV2Result] when(s3ResultsMock.getNextContinuationToken).thenReturn("continuationToken") - when(s3ResultsMock.isTruncated).thenReturn(false, // before file created it is empty (zero pages) - true, - false, // after file is uploaded it contains this one file (one page) - false) // after file is deleted it is empty (zero pages) again + when(s3ResultsMock.isTruncated).thenReturn( + false, // before file created it is empty (zero pages) + true, + false, // after file is uploaded it contains this one file (one page) + false) // after file is deleted it is empty (zero pages) again when(s3ResultsMock.getObjectSummaries).thenReturn( // before file created it is empty, `getObjectSummaries` is never called List[S3ObjectSummary](s3ObjectSummaryMock).asJava, // after file is uploaded it contains this one file |