Skip to content

Commit 0e4d09a

Browse files
committed
[raise-dsl-assertions] Added 'internal' scope to tests
1 parent 63502f9 commit 0e4d09a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/test/kotlin/in/rcard/assertj/arrowcore/RaiseAssert_assertThatThrownBy_Test.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import org.junit.jupiter.api.Test
88
internal class RaiseAssert_assertThatThrownBy_Test {
99

1010
@Test
11-
fun `should succeed if the lambda throws an exception`() {
11+
internal fun `should succeed if the lambda throws an exception`() {
1212
assertThatThrownBy { Dummy.aFunctionThatThrowsAnException() }
1313
.isInstanceOf(RuntimeException::class.java)
1414
.hasMessage("AN EXCEPTION")
1515
}
1616

1717
@Test
18-
fun `should fail if the lambda succeeds with a value`() {
18+
internal fun `should fail if the lambda succeeds with a value`() {
1919
Assertions.assertThatThrownBy {
2020
assertThatThrownBy { Dummy.aFunctionWithContext(42) }
2121
}.isInstanceOf(AssertionError::class.java)
@@ -25,7 +25,7 @@ internal class RaiseAssert_assertThatThrownBy_Test {
2525
}
2626

2727
@Test
28-
fun `should fail if the lambda raises an error`() {
28+
internal fun `should fail if the lambda raises an error`() {
2929
Assertions.assertThatThrownBy {
3030
assertThatThrownBy { Dummy.aFunctionThatRaisesAnError() }
3131
}.isInstanceOf(AssertionError::class.java)

src/test/kotlin/in/rcard/assertj/arrowcore/RaiseAssert_raises_Test.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ import `in`.rcard.assertj.arrowcore.errors.RaiseShouldFailWith.Companion.shouldF
66
import org.assertj.core.api.Assertions
77
import org.junit.jupiter.api.Test
88

9-
class RaiseAssert_raises_Test {
9+
internal class RaiseAssert_raises_Test {
1010

1111
@Test
12-
fun `should pass if lambda raises a logical error`() {
12+
internal fun `should pass if lambda raises a logical error`() {
1313
assertThat { Dummy.aFunctionThatRaisesAnError() }.raises("LOGICAL ERROR")
1414
}
1515

1616
@Test
17-
fun `should fail if lambda raises a logical error different from the expected`() {
17+
internal fun `should fail if lambda raises a logical error different from the expected`() {
1818
Assertions.assertThatThrownBy {
1919
assertThat { Dummy.aFunctionThatRaisesAnError() }.raises("ANOTHER LOGICAL ERROR")
2020
}.isInstanceOf(AssertionError::class.java)
2121
.hasMessage(shouldFailWith("ANOTHER LOGICAL ERROR", "LOGICAL ERROR").create())
2222
}
2323

2424
@Test
25-
fun `should fail if lambda succeeds with a value instead of failing`() {
25+
internal fun `should fail if lambda succeeds with a value instead of failing`() {
2626
Assertions.assertThatThrownBy {
2727
assertThat { Dummy.aFunctionWithContext(42) }.raises("LOGICAL ERROR")
2828
}.isInstanceOf(AssertionError::class.java)

0 commit comments

Comments
 (0)