Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename tests
  • Loading branch information
beroso committed Mar 21, 2023
commit bb04c944951749c238a8449fb93c65d9276c993f
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void onResizeImageIfNeeded_whenParentDirectoryDoesNotExists_shouldNotCras
}

@Test
public void onResizeImageIfNeeded_whenResizeIsNotNecessary_shouldOnlyQueryBitmap() {
public void onResizeImageIfNeeded_whenResizeIsNotNecessary_shouldOnlyQueryBitmapDimensions() {
try (MockedStatic<BitmapFactory> mockBitmapFactory =
mockStatic(BitmapFactory.class, Mockito.CALLS_REAL_METHODS)) {
String outputFile = resizer.resizeImageIfNeeded(imageFile.getPath(), null, null, 100);
Expand All @@ -102,7 +102,7 @@ public void onResizeImageIfNeeded_whenResizeIsNotNecessary_shouldOnlyQueryBitmap
}

@Test
public void onResizeImageIfNeeded_whenResizeIsNecessary_shouldAllocateBitmap() {
public void onResizeImageIfNeeded_whenResizeIsNecessary_shouldDecodeBitmapPixels() {
try (MockedStatic<BitmapFactory> mockBitmapFactory =
mockStatic(BitmapFactory.class, Mockito.CALLS_REAL_METHODS)) {
String outputFile = resizer.resizeImageIfNeeded(imageFile.getPath(), 50.0, 50.0, 100);
Expand Down