fix filtering

This commit is contained in:
Manfred Karrer 2014-04-11 14:46:00 +02:00
parent 24137c7021
commit 63c1687a0c
2 changed files with 17 additions and 1 deletions

16
pom.xml
View File

@ -33,6 +33,21 @@
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<mainClass>io.bitsquare.BitSquare</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
@ -60,6 +75,7 @@
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>3.0</version>
<classifier>no_aop</classifier>
</dependency>
<dependency>

View File

@ -47,7 +47,7 @@ public class MockOrderBook implements IOrderBook
boolean directionResult = offerListVO.getOffer().getDirection() != orderBookFilter.getDirection();
boolean currencyResult = offerListVO.getOffer().getCurrency().equals(orderBookFilter.getCurrency());
if (offerListVO.getOffer().getDirection() == Direction.BUY && orderBookFilter.getPrice() > 0)
if (offerListVO.getOffer().getDirection() == Direction.SELL && orderBookFilter.getPrice() > 0)
priceResult = offerListVO.getOffer().getPrice() <= orderBookFilter.getPrice();
else
priceResult = offerListVO.getOffer().getPrice() >= orderBookFilter.getPrice();