LegofyPicassoTransformation implements Transformation { @Override public String key() { return LEGOFY; } LegofyPicassoTransformation(Context context); @Override Bitmap transform(Bitmap source); @Override String key(); static final String LEGOFY; }
@Test public void shouldReturnKey() throws Exception { String key = legofyPicassoTransformation.key(); assertThat(key).isEqualTo(LegofyPicassoTransformation.LEGOFY); }