@@ -13,18 +13,17 @@ class ZipHelperSpec extends WordSpec with Matchers with BeforeAndAfterEach with
13
13
var tmp : Path = _
14
14
val toDelete = scala.collection.mutable.ListBuffer [Path ]()
15
15
16
- override def beforeEach {
16
+ override def beforeEach : Unit = {
17
17
tmp = Files createTempDirectory " _sbt-native-packager"
18
18
toDelete += tmp
19
19
}
20
20
21
- override def afterAll {
21
+ override def afterAll : Unit =
22
22
toDelete foreach { dir =>
23
23
scala.util.Try {
24
24
Files .walkFileTree(dir, new DeleteDirectoryVisitor )
25
25
}
26
26
}
27
- }
28
27
29
28
" The ZipHelper.zip" should {
30
29
@@ -104,7 +103,7 @@ class ZipHelperSpec extends WordSpec with Matchers with BeforeAndAfterEach with
104
103
105
104
private type Zipper = (Traversable [(File , String )], File ) => Unit
106
105
107
- private def zipSingleFile (zipper : Zipper ) {
106
+ private def zipSingleFile (zipper : Zipper ): Unit = {
108
107
val out = tmp resolve " single.zip"
109
108
val file = Files createFile (tmp resolve " single.txt" )
110
109
@@ -117,7 +116,7 @@ class ZipHelperSpec extends WordSpec with Matchers with BeforeAndAfterEach with
117
116
118
117
}
119
118
120
- private def zipNestedFile (zipper : Zipper ) {
119
+ private def zipNestedFile (zipper : Zipper ): Unit = {
121
120
// setup
122
121
val out = tmp resolve " nested.zip"
123
122
val dir = tmp resolve " dir"
@@ -137,7 +136,7 @@ class ZipHelperSpec extends WordSpec with Matchers with BeforeAndAfterEach with
137
136
}
138
137
}
139
138
140
- private def zipNestedDirsWithFiles (zipper : Zipper ) {
139
+ private def zipNestedDirsWithFiles (zipper : Zipper ): Unit = {
141
140
// setup
142
141
val out = tmp resolve " nested-containing.zip"
143
142
val dir = tmp resolve " dir"
@@ -158,7 +157,7 @@ class ZipHelperSpec extends WordSpec with Matchers with BeforeAndAfterEach with
158
157
}
159
158
}
160
159
161
- private def createNecessaryDirectories (zipper : Zipper ) {
160
+ private def createNecessaryDirectories (zipper : Zipper ): Unit = {
162
161
val out = tmp resolve " dir-creation.zip"
163
162
val file = tmp resolve " dir-file.txt"
164
163
Files createFile file
@@ -176,7 +175,7 @@ class ZipHelperSpec extends WordSpec with Matchers with BeforeAndAfterEach with
176
175
}
177
176
}
178
177
179
- private def preserveExecutableBit (zipper : Zipper ) {
178
+ private def preserveExecutableBit (zipper : Zipper ): Unit = {
180
179
val out = tmp resolve " exec.zip"
181
180
val exec = tmp resolve " exec"
182
181
Files createFile exec
0 commit comments