We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4788dd8 commit b91adecCopy full SHA for b91adec
scala-test-junit4/src/test/scala/com/baeldung/scala/junit4/STAssertionsTests.scala
@@ -8,7 +8,7 @@ class STAssertionsTests extends AssertionsForJUnit {
8
private final val myInt = 1
9
10
@Test
11
- def testAssertJUnitStyle() = {
+ def testAssertJUnitStyle(): Unit = {
12
assertEquals(myInt, 1)
13
assertTrue(myInt > 0)
14
@@ -21,7 +21,7 @@ class STAssertionsTests extends AssertionsForJUnit {
21
}
22
23
24
- def testAssertScalaTestStyle() = {
+ def testAssertScalaTestStyle(): Unit = {
25
assert(myInt == 1)
26
assert(myInt.isValidInt)
27
intercept[ArithmeticException] {
0 commit comments