@Test
public void testEquals() {
BitmapTransformation otherBitmapTransformation = mock(BitmapTransformation.class);
doAnswer(new Util.WriteDigest("bitmapTransformation"))
.when(bitmapTransformation).updateDiskCacheKey(any(MessageDigest.class));
doAnswer(new Util.WriteDigest("otherBitmapTransformation"))
.when(otherBitmapTransformation).updateDiskCacheKey(any(MessageDigest.class));
keyTester
.addEquivalenceGroup(
transformation,
new DrawableTransformation(bitmapTransformation, true),
new DrawableTransformation(bitmapTransformation, false))
.addEquivalenceGroup(bitmapTransformation)
.addEquivalenceGroup(otherBitmapTransformation)
.addEquivalenceGroup(
new DrawableTransformation(otherBitmapTransformation, true),
new DrawableTransformation(otherBitmapTransformation, false))
.addRegressionTest(
new DrawableTransformation(bitmapTransformation, true),
"eddf60c557a6315a489b8a3a19b12439a90381256289fbe9a503afa726230bd9")
.addRegressionTest(
new DrawableTransformation(otherBitmapTransformation, false),
"40931536ed0ec97c39d4be10c44f5b69a86030ec575317f5a0f17e15a0ea9be8")
.test();
}