Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Hoffman committed Aug 13, 2024
1 parent 6e402fe commit 1c2104f
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,13 @@ class TouchNetStorageServiceSpec extends Specification{
List<PhotoFile> photoFiles = service.save(photos)

then:
photoFiles.size() == 3
photoFiles.eachWithIndex { it, index ->
if (index == 1) {
assert !it
} else {
assert it
assert it.photoId == index
assert it.baseName == identifiers[index]
}
}
photoFiles.size() == 2
assert photoFiles[0]
photoFiles[0].baseName == identifiers[0]
photoFiles[0].photoId == 0
assert photoFiles[1]
photoFiles[1].baseName == identifiers[2]
photoFiles[1].photoId == 2

1 * service.touchNetClient.operatorLogin() >> sessionId
1 * service.fileNameResolver.getBaseName(photos[0]) >> identifiers[0]
Expand Down

0 comments on commit 1c2104f

Please sign in to comment.