Fix ignored test cases

This commit is contained in:
Christoph Atteneder 2019-01-11 16:17:56 +01:00
parent d320380e80
commit e31a314904
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B
2 changed files with 3 additions and 6 deletions

View File

@ -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));
}

View File

@ -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