Skip to content

Commit 8fc90f7

Browse files
Bump groovy-all from 3.0.8 to 3.0.9 (#296)
* 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] <support@github.com> * 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 <Mjl33@users.noreply.github.com> Co-authored-by: MJL33 <mjlee.1@gmail.com>
1 parent cc8f643 commit 8fc90f7

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@
177177
<version>2.13.0</version>
178178
</dependency>
179179
<dependency>
180-
<groupId>org.codehaus.groovy</groupId>
181-
<artifactId>groovy-all</artifactId>
182-
<version>3.0.8</version>
180+
<groupId>org.apache.groovy</groupId>
181+
<artifactId>groovy</artifactId>
182+
<version>4.0.0-rc-1</version>
183183
<type>pom</type>
184184
</dependency>
185185

@@ -472,4 +472,4 @@
472472
</plugins>
473473
</build>
474474

475-
</project>
475+
</project>

src/test/groovy/com/frameworkium/core/ui/video/VideoCaptureSpec.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.frameworkium.core.ui.video
22

3+
import org.apache.commons.io.FileUtils
34
import spock.lang.Specification
45

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

1011
def setup() {
11-
VideoCapture.VIDEO_FOLDER.deleteDir()
12+
FileUtils.deleteDirectory(VideoCapture.VIDEO_FOLDER.toFile())
1213
}
1314

1415
def array = [0, 1, 0, 1] as byte[]
@@ -25,7 +26,8 @@ class VideoCaptureSpec extends Specification {
2526
when:
2627
sut.fetchAndSaveVideo("test1")
2728
then:
28-
VideoCapture.VIDEO_FOLDER.resolve("test1-session1.ext").readBytes() == array
29+
def filepath = VideoCapture.VIDEO_FOLDER.resolve("test1-session1.ext")
30+
Files.readAllBytes(filepath) == array
2931
}
3032

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

0 commit comments

Comments
 (0)