2121import com .github .stickerifier .stickerify .junit .ClearTempFiles ;
2222import com .github .stickerifier .stickerify .junit .Tags ;
2323import com .github .stickerifier .stickerify .process .ProcessHelper ;
24+ import org .jspecify .annotations .Nullable ;
2425import org .junit .jupiter .api .DisplayName ;
2526import org .junit .jupiter .api .Nested ;
2627import org .junit .jupiter .api .Tag ;
@@ -45,7 +46,9 @@ void resizeRectangularImage() throws Exception {
4546 assertImageConsistency (result , 512 , 341 );
4647 }
4748
48- private static void assertImageConsistency (File image , int expectedWidth , int expectedHeight ) throws Exception {
49+ private static void assertImageConsistency (@ Nullable File image , int expectedWidth , int expectedHeight ) throws Exception {
50+ assertNotNull (image );
51+
4952 var mediaInfo = MediaHelper .retrieveMultimediaInfo (image );
5053 var imageInfo = mediaInfo .video ();
5154 assertNotNull (imageInfo );
@@ -154,7 +157,9 @@ void convertLongMovVideo() throws Exception {
154157 assertVideoConsistency (result , 512 , 288 , 29.97003F , 2.969F );
155158 }
156159
157- private static void assertVideoConsistency (File video , int expectedWidth , int expectedHeight , float expectedFrameRate , float expectedDuration ) throws Exception {
160+ private static void assertVideoConsistency (@ Nullable File video , int expectedWidth , int expectedHeight , float expectedFrameRate , float expectedDuration ) throws Exception {
161+ assertNotNull (video );
162+
158163 var mediaInfo = MediaHelper .retrieveMultimediaInfo (video );
159164 var videoInfo = mediaInfo .video ();
160165 assertNotNull (videoInfo );
0 commit comments