@@ -722,9 +722,16 @@ static Stream<Arguments> hasDuplicatesArgs() {
722
722
);
723
723
}
724
724
725
+ @ Test
726
+ @ Order (58 )
727
+ @ DisplayName ("Method findMax has public accessor type" )
728
+ void findMaxHasPublicAccessorType () {
729
+ var findMaxMethod = getMethodByName (CollectionUtil .class , "findMax" );
730
+ assertThat (findMaxMethod ).isNotNull ();
731
+ }
725
732
726
733
@ ParameterizedTest
727
- @ Order (58 )
734
+ @ Order (59 )
728
735
@ MethodSource ("findMaxArgs" )
729
736
@ DisplayName ("Method findMax returns the max value based on given comparator" )
730
737
@ SneakyThrows
@@ -755,7 +762,15 @@ static Stream<Arguments> findMaxArgs() {
755
762
}
756
763
757
764
@ Test
758
- @ Order (59 )
765
+ @ Order (60 )
766
+ @ DisplayName ("Method findMostRecentlyCreatedEntity has public accessor type" )
767
+ void findMostRecentlyCreatedEntityHasPublicAccessorType () {
768
+ var findMaxMethod = getMethodByName (CollectionUtil .class , "findMostRecentlyCreatedEntity" );
769
+ assertThat (findMaxMethod ).isNotNull ();
770
+ }
771
+
772
+ @ Test
773
+ @ Order (61 )
759
774
@ DisplayName ("findMostRecentlyCreatedEntity is a generic method that accepts a collection of entities" )
760
775
void findMostRecentlyCreatedEntityIsAGenericMethod () {
761
776
var hasDuplicatesMethod = getMethodByName (CollectionUtil .class , "findMostRecentlyCreatedEntity" );
@@ -767,7 +782,7 @@ void findMostRecentlyCreatedEntityIsAGenericMethod() {
767
782
}
768
783
769
784
@ ParameterizedTest
770
- @ Order (60 )
785
+ @ Order (62 )
771
786
@ MethodSource ("findMostRecentlyCreatedEntityArgs" )
772
787
@ DisplayName ("findMostRecentlyCreatedEntity returns the most recently created entity" )
773
788
@ SneakyThrows
@@ -794,7 +809,7 @@ static Stream<Arguments> findMostRecentlyCreatedEntityArgs() {
794
809
}
795
810
796
811
@ Test
797
- @ Order (61 )
812
+ @ Order (63 )
798
813
@ DisplayName ("findMostRecentlyCreatedEntity throws exception when collection is empty" )
799
814
@ SneakyThrows
800
815
void findMostRecentlyCreatedEntityThrowsException () {
@@ -805,7 +820,7 @@ void findMostRecentlyCreatedEntityThrowsException() {
805
820
}
806
821
807
822
@ Test
808
- @ Order (62 )
823
+ @ Order (64 )
809
824
@ DisplayName ("Method swap does not declare type parameter" )
810
825
void swapMethodDoesNotDeclareTypeParameter () {
811
826
var swapMethod = getMethodByName (CollectionUtil .class , "swap" );
@@ -815,7 +830,7 @@ void swapMethodDoesNotDeclareTypeParameter() {
815
830
}
816
831
817
832
@ Test
818
- @ Order (63 )
833
+ @ Order (65 )
819
834
@ DisplayName ("Method swap change elements by indexes" )
820
835
@ SneakyThrows
821
836
void swapChangesElements () {
0 commit comments