mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Remove usage of final
This commit is contained in:
parent
decbb4a10b
commit
66fa7222ea
1 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ public class SpreadViewModelTest {
|
||||||
|
|
||||||
when(offerBook.getOfferBookListItems()).thenReturn(offerBookListItems);
|
when(offerBook.getOfferBookListItems()).thenReturn(offerBookListItems);
|
||||||
|
|
||||||
final SpreadViewModel model = new SpreadViewModel(offerBook, null, new BSFormatter());
|
SpreadViewModel model = new SpreadViewModel(offerBook, null, new BSFormatter());
|
||||||
assertEquals(0, model.maxPlacesForAmount.intValue());
|
assertEquals(0, model.maxPlacesForAmount.intValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ public class SpreadViewModelTest {
|
||||||
|
|
||||||
when(offerBook.getOfferBookListItems()).thenReturn(offerBookListItems);
|
when(offerBook.getOfferBookListItems()).thenReturn(offerBookListItems);
|
||||||
|
|
||||||
final SpreadViewModel model = new SpreadViewModel(offerBook, null, new BSFormatter());
|
SpreadViewModel model = new SpreadViewModel(offerBook, null, new BSFormatter());
|
||||||
model.activate();
|
model.activate();
|
||||||
assertEquals(6, model.maxPlacesForAmount.intValue()); // 0.001
|
assertEquals(6, model.maxPlacesForAmount.intValue()); // 0.001
|
||||||
offerBookListItems.addAll(make(btcBuyItem.but(with(OfferBookListItemMaker.amount, 1403000000L))));
|
offerBookListItems.addAll(make(btcBuyItem.but(with(OfferBookListItemMaker.amount, 1403000000L))));
|
||||||
|
@ -82,7 +82,7 @@ public class SpreadViewModelTest {
|
||||||
|
|
||||||
when(offerBook.getOfferBookListItems()).thenReturn(offerBookListItems);
|
when(offerBook.getOfferBookListItems()).thenReturn(offerBookListItems);
|
||||||
|
|
||||||
final SpreadViewModel model = new SpreadViewModel(offerBook, priceFeedService, new BSFormatter());
|
SpreadViewModel model = new SpreadViewModel(offerBook, priceFeedService, new BSFormatter());
|
||||||
model.activate();
|
model.activate();
|
||||||
|
|
||||||
assertEquals(1, model.spreadItems.get(0).numberOfOffers);
|
assertEquals(1, model.spreadItems.get(0).numberOfOffers);
|
||||||
|
|
Loading…
Add table
Reference in a new issue