From: David ‘Bombe’ Roden Date: Wed, 5 Oct 2016 19:08:24 +0000 (+0200) Subject: Add test for PlainTextPart X-Git-Tag: 0.9.6^2~42 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8bca76f6a624a0f0f9576ffa73bf55688149e377;p=Sone.git Add test for PlainTextPart --- diff --git a/src/test/java/net/pterodactylus/sone/text/PlainTextPartTest.java b/src/test/java/net/pterodactylus/sone/text/PlainTextPartTest.java new file mode 100644 index 0000000..8e6f33a --- /dev/null +++ b/src/test/java/net/pterodactylus/sone/text/PlainTextPartTest.java @@ -0,0 +1,22 @@ +package net.pterodactylus.sone.text; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.is; + +import org.junit.Test; + +/** + * Unit test for {@link PlainTextPart}. + * + * @author David ‘Bombe’ Roden + */ +public class PlainTextPartTest { + + private final PlainTextPart part = new PlainTextPart("text"); + + @Test + public void textIsRetainedCorrectly() { + assertThat(part.getText(), is("text")); + } + +}