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

ItemPicture edit

parent 5425e447
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>
......@@ -4,6 +4,9 @@ import java.util.ArrayList;
public class Item {
public ArrayList<Integer> images = new ArrayList<Integer>();
public Item(String title, String description, String images, String category) {
}
......
......@@ -2,13 +2,28 @@ package project;
public class ItemPicture {
private String name;
private int ID;
private Item item;
public static ItemPicture getInstance() {
// TODO Auto-generated method stub
return null;
}
public void setId(int id) {
this.ID = id;
}
public boolean remove(Item item) {
// TODO Auto-generated method stub
public boolean remove(int i) {
for (int e = 0; e < item.images.size(); e++) {
if (item.images.get(e) == i) {
item.images.remove(i);
return true;
} else
return false;
}
return false;
}
......
......@@ -19,7 +19,6 @@ public class AuctionUnitTest {
@ParameterizedTest
@ValueSource (ints = {1,2,3})
@ValueSource (ints = {1,2,3})
public void runsTenTimesTest(String text) {
for (int i = 0; i < 10; i++) {
......
......@@ -5,6 +5,6 @@ Suite
!note This page is automatically generated when running tests. It will be overwritten by the next Suite or Test execution.
Tests failed (first failure was at 2019-11-15T15:08:00.271):
Tests failed (first failure was at 2019-11-16T11:37:35.633):
!see [[clar][.clar]]
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