File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/test/kotlin/in/rcard/assertj/arrowcore Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ import org.junit.jupiter.api.Test
88internal 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)
Original file line number Diff line number Diff line change @@ -6,23 +6,23 @@ import `in`.rcard.assertj.arrowcore.errors.RaiseShouldFailWith.Companion.shouldF
66import org.assertj.core.api.Assertions
77import 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)
You can’t perform that action at this time.
0 commit comments