From 8bca76f6a624a0f0f9576ffa73bf55688149e377 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 5 Oct 2016 21:08:24 +0200 Subject: [PATCH] Add test for PlainTextPart --- .../pterodactylus/sone/text/PlainTextPartTest.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/test/java/net/pterodactylus/sone/text/PlainTextPartTest.java 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")); + } + +} -- 2.7.4