Skip to content
Snippets Groups Projects
Commit dd4772f4 authored by cristiano's avatar cristiano
Browse files

Assignment 3 initialized - Added jar and method to substitute

parent 3f627dbc
No related branches found
No related tags found
No related merge requests found
......@@ -23,16 +23,5 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
......@@ -13,6 +13,15 @@
<dependencies>
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter -->
<dependency>
<groupId>Auction</groupId>
<artifactId>it.unibz.Auction</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>
${basedir}\resources\AuctionSystemPublic.jar
</systemPath>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
......@@ -35,7 +44,7 @@
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<type>maven-plugin</type>
</dependency>
</dependency>
</dependencies>
......
File added
boolean addBid(Bid bid)
{
if(bid.price > currentHighestBid.price && (bid.price - currentHighestBid.price) >= bidIncrement)
{
listOfBids.add(bid);
currentHighestBid = bid;
return true;
}
return false;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment