1 package net.pterodactylus.sone.data.impl;
3 import net.pterodactylus.sone.data.Image;
4 import net.pterodactylus.sone.data.Image.Modifier.ImageTitleMustNotBeEmpty;
9 * Unit test for {@link ImageImpl}.
11 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
13 public class ImageImplTest {
15 private final Image image = new ImageImpl();
17 @Test(expected = ImageTitleMustNotBeEmpty.class)
18 public void modifierDoesNotAllowTitleDoBeEmpty() {
19 image.modify().setTitle("").update();