From e31a3149049e5aef604338983ec631276d584c2e Mon Sep 17 00:00:00 2001 From: Christoph Atteneder Date: Fri, 11 Jan 2019 16:17:56 +0100 Subject: [PATCH] Fix ignored test cases --- .../desktop/main/offer/offerbook/OfferBookViewModelTest.java | 5 ++--- desktop/src/test/java/bisq/desktop/util/BSFormatterTest.java | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/desktop/src/test/java/bisq/desktop/main/offer/offerbook/OfferBookViewModelTest.java b/desktop/src/test/java/bisq/desktop/main/offer/offerbook/OfferBookViewModelTest.java index 4520cc7fa2..7e6195633b 100644 --- a/desktop/src/test/java/bisq/desktop/main/offer/offerbook/OfferBookViewModelTest.java +++ b/desktop/src/test/java/bisq/desktop/main/offer/offerbook/OfferBookViewModelTest.java @@ -405,7 +405,6 @@ public class OfferBookViewModelTest { assertEquals(10, model.maxPlacesForMarketPriceMargin.intValue()); //" (-10.00%)" } - @Ignore @Test public void testGetPrice() { OfferBook offerBook = mock(OfferBook.class); @@ -435,10 +434,10 @@ public class OfferBookViewModelTest { model.activate(); assertEquals("12557.2046 (1.00%)", model.getPrice(lowItem)); - assertEquals(" 10.0000 ", model.getPrice(fixedItem)); + assertEquals("10.0000", model.getPrice(fixedItem)); offerBookListItems.addAll(item); assertEquals("14206.1304 (-12.00%)", model.getPrice(item)); - assertEquals("12557.2046 (1.00%)", model.getPrice(lowItem)); + assertEquals("12557.2046 (1.00%)", model.getPrice(lowItem)); } diff --git a/desktop/src/test/java/bisq/desktop/util/BSFormatterTest.java b/desktop/src/test/java/bisq/desktop/util/BSFormatterTest.java index d563d79e2c..81b86db938 100644 --- a/desktop/src/test/java/bisq/desktop/util/BSFormatterTest.java +++ b/desktop/src/test/java/bisq/desktop/util/BSFormatterTest.java @@ -34,7 +34,6 @@ import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; import org.junit.Before; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; @@ -180,7 +179,6 @@ public class BSFormatterTest { assertEquals("0.1000 - 0.2000", formatter.formatAmount(offer, 4, true, 15)); } - @Ignore @Test public void testFormatAmountWithAlignmenWithDecimalsNoRange() { OfferPayload offerPayload = mock(OfferPayload.class); @@ -188,7 +186,7 @@ public class BSFormatterTest { when(offerPayload.getMinAmount()).thenReturn(10000000L); when(offerPayload.getAmount()).thenReturn(10000000L); - assertEquals(" 0.1000", formatter.formatAmount(offer, 4, true, 15)); + assertEquals("0.1000", formatter.formatAmount(offer, 4, true, 15)); } @Test