Extract class for supplying commands, improve tests for FCP interface
[Sone.git] / src / test / java / net / pterodactylus / sone / data / impl / ImageImplTest.java
1 package net.pterodactylus.sone.data.impl;
2
3 import net.pterodactylus.sone.data.Image;
4 import net.pterodactylus.sone.data.Image.Modifier.ImageTitleMustNotBeEmpty;
5
6 import org.junit.Test;
7
8 /**
9  * Unit test for {@link ImageImpl}.
10  *
11  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
12  */
13 public class ImageImplTest {
14
15         private final Image image = new ImageImpl();
16
17         @Test(expected = ImageTitleMustNotBeEmpty.class)
18         public void modifierDoesNotAllowTitleDoBeEmpty() {
19                 image.modify().setTitle("").update();
20         }
21
22 }