Search in sources :

Example 6 with Dimension

use of tech.aroma.thrift.Dimension in project aroma-data-operations by RedRoma.

the class MemoryMediaRepositoryTest method testDeleteThumbnail.

@Test
public void testDeleteThumbnail() throws Exception {
    Image thumbnail = Lists.oneOf(thumbnails);
    Dimension dimension = thumbnail.getDimension();
    instance.saveThumbnail(mediaId, dimension, thumbnail);
    instance.deleteThumbnail(mediaId, dimension);
    assertThat(instance.containsThumbnail(mediaId, dimension), is(false));
}
Also used : Dimension(tech.aroma.thrift.Dimension) Image(tech.aroma.thrift.Image) Test(org.junit.Test)

Aggregations

Dimension (tech.aroma.thrift.Dimension)6 Test (org.junit.Test)5 Image (tech.aroma.thrift.Image)5 UUID (java.util.UUID)1 IntegrationTest (tech.sirwellington.alchemy.annotations.testing.IntegrationTest)1 StringAssertions.nonEmptyString (tech.sirwellington.alchemy.arguments.assertions.StringAssertions.nonEmptyString)1 StringAssertions.validUUID (tech.sirwellington.alchemy.arguments.assertions.StringAssertions.validUUID)1