ExifInterfaceTest: Catch IOException am: c9ed3b8a5b am: a4ec9714b3
am: b6f40a84fa
Change-Id: Ia9dbb060111c198774843f753977879f362bf904
This commit is contained in:
@@ -416,7 +416,7 @@ public class ExifInterfaceTest extends AndroidTestCase {
|
|||||||
in = getContext().getAssets().open(imageFile.getName());
|
in = getContext().getAssets().open(imageFile.getName());
|
||||||
ExifInterface exifInterface = new ExifInterface(in);
|
ExifInterface exifInterface = new ExifInterface(in);
|
||||||
exifInterface.saveAttributes();
|
exifInterface.saveAttributes();
|
||||||
} catch (UnsupportedOperationException e) {
|
} catch (IOException e) {
|
||||||
// Expected. saveAttributes is not supported with an ExifInterface object which was
|
// Expected. saveAttributes is not supported with an ExifInterface object which was
|
||||||
// created with InputStream.
|
// created with InputStream.
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user