mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Fix ignored test cases
This commit is contained in:
parent
d320380e80
commit
e31a314904
@ -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));
|
||||
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user