diff options
author | Stefan Niedermann <info@niedermann.it> | 2021-03-03 23:57:38 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2021-03-03 23:57:38 +0300 |
commit | 2ed408f33aa0f219f28ca26f22dee92299807c38 (patch) | |
tree | d7bd54e432fb5970169c7713042efbd5c431ad1b /app/src/test/java/it/niedermann/nextcloud/deck | |
parent | 4f70706618ed0b2f5d0eb583e069e66ef42222e5 (diff) |
Reactivate commented unit tests
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/test/java/it/niedermann/nextcloud/deck')
-rw-r--r-- | app/src/test/java/it/niedermann/nextcloud/deck/util/CardUtilTest.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/src/test/java/it/niedermann/nextcloud/deck/util/CardUtilTest.java b/app/src/test/java/it/niedermann/nextcloud/deck/util/CardUtilTest.java index 67cb4429b..a033ef7e4 100644 --- a/app/src/test/java/it/niedermann/nextcloud/deck/util/CardUtilTest.java +++ b/app/src/test/java/it/niedermann/nextcloud/deck/util/CardUtilTest.java @@ -48,8 +48,8 @@ public class CardUtilTest { final Instant testDate = LocalDateTime.of(2011, 10, 6, 6, 30, 50, 100000).toInstant(ZoneOffset.UTC); card.setDueDate(testDate); -// assertEquals("Bar\n" + -// "Due date: Oct 6, 2011 8:30:50 AM", CardUtil.getCardContentAsString(appContext, fullCard)); + assertTrue(CardUtil.getCardContentAsString(appContext, fullCard).startsWith("Bar\n" + + "Due date:")); card.setDueDate(null); final Label testLabel1 = new Label(); @@ -68,9 +68,10 @@ public class CardUtilTest { card.setDueDate(testDate); -// assertEquals("Bar\n" + -// "Due date: Oct 6, 2011 8:30:50 AM\n" + -// "Labels: Baz, Pow", CardUtil.getCardContentAsString(appContext, fullCard)); + assertTrue(CardUtil.getCardContentAsString(appContext, fullCard).startsWith("Bar\n" + + "Due date:")); + assertTrue(CardUtil.getCardContentAsString(appContext, fullCard).endsWith("\n" + + "Labels: Baz, Pow")); } @Test |