Skip to content

Commit

Permalink
Bump groovy-all from 3.0.8 to 3.0.9 (#296)
Browse files Browse the repository at this point in the history
* Bump groovy-all from 3.0.8 to 3.0.9

Bumps [groovy-all](https://github.com/apache/groovy) from 3.0.8 to 3.0.9.
- [Release notes](https://github.com/apache/groovy/releases)
- [Commits](https://github.com/apache/groovy/commits)

---
updated-dependencies:
- dependency-name: org.codehaus.groovy:groovy-all
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update pom.xml

Change to groovy 4

* Fix VideoCaptureSpec

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: MJ <[email protected]>
Co-authored-by: MJL33 <[email protected]>
  • Loading branch information
3 people authored Dec 18, 2021
1 parent cc8f643 commit 8fc90f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@
<version>2.13.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>3.0.8</version>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy</artifactId>
<version>4.0.0-rc-1</version>
<type>pom</type>
</dependency>

Expand Down Expand Up @@ -472,4 +472,4 @@
</plugins>
</build>

</project>
</project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.frameworkium.core.ui.video

import org.apache.commons.io.FileUtils
import spock.lang.Specification

import java.nio.file.Files
Expand All @@ -8,7 +9,7 @@ import java.util.concurrent.TimeoutException
class VideoCaptureSpec extends Specification {

def setup() {
VideoCapture.VIDEO_FOLDER.deleteDir()
FileUtils.deleteDirectory(VideoCapture.VIDEO_FOLDER.toFile())
}

def array = [0, 1, 0, 1] as byte[]
Expand All @@ -25,7 +26,8 @@ class VideoCaptureSpec extends Specification {
when:
sut.fetchAndSaveVideo("test1")
then:
VideoCapture.VIDEO_FOLDER.resolve("test1-session1.ext").readBytes() == array
def filepath = VideoCapture.VIDEO_FOLDER.resolve("test1-session1.ext")
Files.readAllBytes(filepath) == array
}

def "doesn't save file on fetch timeout"() {
Expand Down

0 comments on commit 8fc90f7

Please sign in to comment.