Don’t allow null for the post of a PostPart
[Sone.git] / src / test / java / net / pterodactylus / sone / text / PostPartTest.java
index 6666d61..7b4ea19 100644 (file)
@@ -30,4 +30,9 @@ public class PostPartTest {
                assertThat(part.getText(), is("text"));
        }
 
+       @Test(expected = NullPointerException.class)
+       public void nullIsNotAllowedForPost() {
+           new PostPart(null);
+       }
+
 }