3232import org .mockito .junit .jupiter .MockitoExtension ;
3333
3434/**
35- * Unit Tests for {@link RedisAssertions}.
35+ * Unit tests for {@link RedisAssertions}.
3636 *
3737 * @author John Blum
38- * @see org.junit.jupiter.api.Test
39- * @see org.springframework.data.redis.util.RedisAssertions
40- * @since 1.0.0
4138 */
4239@ ExtendWith (MockitoExtension .class )
43- public class RedisAssertionsUnitTests {
40+ class RedisAssertionsUnitTests {
4441
4542 @ Mock
4643 private Supplier <String > mockSupplier ;
4744
4845 @ Test
49- public void requireObjectWithMessageAndArgumentsIsSuccessful () {
46+ void requireObjectWithMessageAndArgumentsIsSuccessful () {
5047 assertThat (RedisAssertions .requireObject ("test" , "Test message" )).isEqualTo ("test" );
5148 }
5249
5350 @ Test
54- public void requireObjectWithMessageAndArgumentsThrowsIllegalArgumentException () {
51+ void requireObjectWithMessageAndArgumentsThrowsIllegalArgumentException () {
5552
5653 assertThatIllegalArgumentException ()
5754 .isThrownBy (() -> RedisAssertions .requireObject (null , "This is a %s" , "test" ))
@@ -60,15 +57,15 @@ public void requireObjectWithMessageAndArgumentsThrowsIllegalArgumentException()
6057 }
6158
6259 @ Test
63- public void requireObjectWithSupplierIsSuccessful () {
60+ void requireObjectWithSupplierIsSuccessful () {
6461
6562 assertThat (RedisAssertions .requireObject ("mock" , this .mockSupplier )).isEqualTo ("mock" );
6663
6764 verifyNoInteractions (this .mockSupplier );
6865 }
6966
7067 @ Test
71- public void requireObjectWithSupplierThrowsIllegalArgumentException () {
68+ void requireObjectWithSupplierThrowsIllegalArgumentException () {
7269
7370 doReturn ("Mock message" ).when (this .mockSupplier ).get ();
7471
@@ -82,12 +79,12 @@ public void requireObjectWithSupplierThrowsIllegalArgumentException() {
8279 }
8380
8481 @ Test
85- public void requireStateWithMessageAndArgumentsIsSuccessful () {
82+ void requireStateWithMessageAndArgumentsIsSuccessful () {
8683 assertThat (RedisAssertions .requireState ("test" , "Mock message" )).isEqualTo ("test" );
8784 }
8885
8986 @ Test
90- public void requireStateWithMessageAndArgumentsThrowsIllegalStateException () {
87+ void requireStateWithMessageAndArgumentsThrowsIllegalStateException () {
9188
9289 assertThatIllegalStateException ()
9390 .isThrownBy (() -> RedisAssertions .requireState (null , "This is a %s" , "test" ))
@@ -96,15 +93,15 @@ public void requireStateWithMessageAndArgumentsThrowsIllegalStateException() {
9693 }
9794
9895 @ Test
99- public void requireStateWithSupplierIsSuccessful () {
96+ void requireStateWithSupplierIsSuccessful () {
10097
10198 assertThat (RedisAssertions .requireState ("test" , this .mockSupplier )).isEqualTo ("test" );
10299
103100 verifyNoInteractions (this .mockSupplier );
104101 }
105102
106103 @ Test
107- public void requiredStateWithSupplierThrowsIllegalStateException () {
104+ void requiredStateWithSupplierThrowsIllegalStateException () {
108105
109106 doReturn ("Mock message" ).when (this .mockSupplier ).get ();
110107
0 commit comments