diff --git a/EclipseProject/.classpath b/EclipseProject/.classpath index 97124b30068ab0df67feb532454560a740cf80ff..5e8a55fefbd916a028d5a67f0b8db3fcb3262258 100644 --- a/EclipseProject/.classpath +++ b/EclipseProject/.classpath @@ -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> diff --git a/EclipseProject/pom.xml b/EclipseProject/pom.xml index 76d7abc13a54fe05c6e79005530a9e435bf1877b..af9cc956ec0166457c760d2fc713bfd80b7505aa 100644 --- a/EclipseProject/pom.xml +++ b/EclipseProject/pom.xml @@ -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> diff --git a/EclipseProject/resources/AuctionSystemPublic.jar b/EclipseProject/resources/AuctionSystemPublic.jar new file mode 100644 index 0000000000000000000000000000000000000000..da83ce6d75883d8ec3234b51c0e66d671c6c07cb Binary files /dev/null and b/EclipseProject/resources/AuctionSystemPublic.jar differ diff --git a/EclipseProject/resources/method_to_use.java b/EclipseProject/resources/method_to_use.java new file mode 100644 index 0000000000000000000000000000000000000000..662d81292da7a65c9ec9a3f67ff23ef1778093b6 --- /dev/null +++ b/EclipseProject/resources/method_to_use.java @@ -0,0 +1,10 @@ + boolean addBid(Bid bid) + { + if(bid.price > currentHighestBid.price && (bid.price - currentHighestBid.price) >= bidIncrement) + { + listOfBids.add(bid); + currentHighestBid = bid; + return true; + } + return false; + }