Skip to content
Snippets Groups Projects
Commit 6fe576e7 authored by Righi Andrea (Student Com17)'s avatar Righi Andrea (Student Com17)
Browse files

Merge branch 'UnitClassTesting' of gitlab.inf.unibz.it:TTST1920/clar into UnitClassTesting

parents 5556897a 56f39ffa
No related branches found
No related tags found
No related merge requests found
Showing
with 90 additions and 77 deletions
!define TEST_SYSTEM {slim}
!path ..\EclipseProject\target\test-classes
!path ..\EclipseProject\target\classes\project
|fixture.SellerFixture|
|item |startTime |endTime|price |bidIncrement |createAuction?|
|null |10/11/2019 |11/11/2019 |20 |5 |"Error: item not existent"|
|1 |11/11/2019 |10/11/2019 |20 |5 |"Error: start date after the end date"|
|1 |111112019 |10112019 |20 |5 |"Error: date not in the right format"|
|1 |10/11/2019 |111112019 |20 |5 |"Error: date not in the right format"|
|1 |111112019 |11/11/2019 |20 |5 |"Error: date not in the right format"|
|1 |10/11/2019 |11/11/2019 |-1 |5 |"Error: price in a wrong format"|
|1 |10/11/2019 |11/11/2019 |20 |5 |true|
!path ../[EclipseProject](http://localhost/EclipseProject)/target/*
|fixture.SellerFixture|
|title |description|images |category |addItem? |
|null |description|1 |1 |"Error: title not correct"|
|9999 |description|1 |1 |"Error: title not correct" |
|t-#\ |description|1 |1 |"Error: title not correct" |
|aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|description|img.jpg|1 |"Error: title not correct" |
|title |null |1 |1 |"Error: description not correct" |
|title |9999 |1 |1 |"Error: description not correct" |
|title |aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|1 |1 |"Error: description not correct" |
|title |description|null |1 |"Error: there are problems with the pictures, please check" |
|title |description|1 |null |"Error: category not correct"|
|title |description|1 |1 |true|
| fitNesseFixture.[SellerFixture](http://localhost/SellerFixture) | | | | | |
| ------------------------------------------------------------ | ---------- | ---------- | ----- | ------------ | ------------------------------------ |
| item | startTime | endTime | price | bidIncrement | createAuction? |
| | 10/11/2019 | 11/11/2019 | 20 | 5 | Error: item not existent |
| 1 | 11/11/2019 | 10/11/2019 | 20 | 5 | Error: start date after the end date |
| 1 | 111112019 | 10112019 | 20 | 5 | Error: date not in the right format |
| 1 | 10/11/2019 | 111112019 | 20 | 5 | Error: date not in the right format |
| 1 | 111112019 | 11/11/2019 | 20 | 5 | Error: date not in the right format |
| 1 | 10/11/2019 | 11/11/2019 | -1 | 5 | Error: price in a wrong format |
| 1 | 10/11/2019 | 11/11/2019 | 20 | 5 | true |
|fixture.UserFixture|
|username |email |password |userLogin? |
|null |null |pswrd |"Error: you should provide an username or an email"|
|usrname |usrmail..com|pswrd |"Error: email not in the right format"|
|usrname |usr@mail.com|null |"Error: password blank" |
|usrname |usr@mail.com|wrongpswrd|"Error: login invalid"|
|usrname |usr@mail.com|pswrd |true |
| fitNesseFixture.[SellerFixture](http://localhost/SellerFixture) | | | | |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------- | -------- | --------------------------------------------------------- |
| title | description | images | category | addItem? |
| | description | 1 | 1 | Error: title not correct |
| 9999 | description | 1 | 1 | Error: title not correct |
| t-#\ | description | 1 | 1 | Error: title not correct |
| `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` | description | img.jpg | 1 | Error: title not correct |
| title | | 1 | 1 | Error: description not correct |
| title | 9999 | 1 | 1 | Error: description not correct |
| title | ` aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ` | 1 | 1 | Error: description not correct |
| | | | | |
| | | | | |
| title | description | | 1 | Error: there are problems with the pictures, please check |
| title | description | 1 | | Error: category not correct |
| title | description | 1 | 1 | true |
|fixture.UserFixture|
|title |category |searchItem? |
|null |1 |"Error: title not correct"|
|9999 |1 |"Error: title not correct" |
|t-#\ |1 |"Error: title not correct" |
|aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|1 |"Error: title not correct" |
|title |null |"Error: category not correct"|
|title |1 |true|
| fitNesseFixture.[UserFixture](http://localhost/UserFixture) | | | |
| ----------------------------------------------------------- | ----------------------------------- | ---------- | ------------------------------------------------- |
| username | email | password | userLogin? |
| | | pswrd | Error: you should provide an username or an email |
| usrname | usrmail..com | pswrd | Error: email not in the right format |
| usrname | [usr@mail.com](mailto:usr@mail.com) | | Error: password blank |
| usrname | [usr@mail.com](mailto:usr@mail.com) | wrongpswrd | Error: login invalid |
| usrname | [usr@mail.com](mailto:usr@mail.com) | pswrd | true |
|fixture.SellerFixture|
|startTime |endTime |price |title |category |searchAuction?|
|10/11/2019 |11/11/2019 |20 |null |1 |"Error: title not correct" |
|10/11/2019 |11/11/2019 |20 |9999 |1 |"Error: title not correct" |
|10/11/2019 |111112019 |20 |t-#\ |1 |"Error: title not correct" |
|10/11/2019 |11/11/2019 |20 |aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|1 |"Error: title not correct" |
|11/11/2019 |10/11/2019 |20 |title |1 |"Error: start date after the end date" |
|111112019 |10112019 |20 |title |1 |"Error: date not in the right format"|
|10/11/2019 |111112019 |20 |title |1 |"Error: date not in the right format"|
|111112019 |11/11/2019 |20 |title |1 |"Error: date not in the right format"|
|10/11/2019 |11/11/2019 |20 |title |null |"Error: category not correct"|
|10/11/2019 |11/11/2019 |null |title |1 |"Error: price in a wrong format"|
|10/11/2019 |11/11/2019 |20 |title |1 |true|
| fitNesseFixture.[UserFixture](http://localhost/UserFixture) | | |
| ----------------------------------------------------------- | -------- | --------------------------- |
| title | category | searchItem? |
| | 1 | Error: title not correct |
| 9999 | 1 | Error: title not correct |
| t-#\ | 1 | Error: title not correct |
| `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` | 1 | Error: title not correct |
| title | | Error: category not correct |
| title | 1 | true |
|fixture.ItemFixture|
|title |description|category |modify?|
|null |description|1 |"Error: title not correct"|
|9999 |description|1 |"Error: title not correct"|
|t-#\ |description|1 |"Error: title not correct"|
|aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|description|1 |"Error: title not correct"|
|title |null |1 |"Error: description not correct"|
|title |9999 |1 |"Error: description not correct"|
|title |aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|1 |"Error: description not correct"|
|title |description|null |"Error: category not correct"|
|title |description|1 |true|
| fitNesseFixture.[SellerFixture](http://localhost/SellerFixture) | | | | | |
| ------------------------------------------------------------ | ---------- | ----- | ----------------------------------------------------- | -------- | ------------------------------------ |
| startTime | endTime | price | title | category | searchAuction? |
| 10/11/2019 | 11/11/2019 | 20 | | 1 | Error: title not correct |
| 10/11/2019 | 11/11/2019 | 20 | 9999 | 1 | Error: title not correct |
| 10/11/2019 | 111112019 | 20 | t-#\ | 1 | Error: title not correct |
| 10/11/2019 | 11/11/2019 | 20 | `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` | 1 | Error: title not correct |
| 11/11/2019 | 10/11/2019 | 20 | title | 1 | Error: start date after the end date |
| 111112019 | 10112019 | 20 | title | 1 | Error: date not in the right format |
| 10/11/2019 | 111112019 | 20 | title | 1 | Error: date not in the right format |
| 111112019 | 11/11/2019 | 20 | title | 1 | Error: date not in the right format |
| 10/11/2019 | 11/11/2019 | 20 | title | | Error: category not correct |
| 10/11/2019 | 11/11/2019 | | title | 1 | Error: price in a wrong format |
| 10/11/2019 | 11/11/2019 | 20 | title | 1 | true |
|fixture.ItemFixture|
|item |picture |addPicture?|
|1 |null |"Error: there are problems with the pictures, please check" |
|1 |1 |true|
| fitNesseFixture.[ItemFixture](http://localhost/ItemFixture) | | | |
| ----------------------------------------------------------- | ------------------------------------------------------------ | -------- | ------------------------------ |
| title | description | category | modify? |
| | description | 1 | Error: title not correct |
| 9999 | description | 1 | Error: title not correct |
| t-#\ | description | 1 | Error: title not correct |
| `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` | description | 1 | Error: title not correct |
| title | | 1 | Error: description not correct |
| title | 9999 | 1 | Error: description not correct |
| title | `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` | 1 | Error: description not correct |
| title | description | | Error: category not correct |
| title | description | 1 | true |
|fixture.AuctionManagerFixture|
|value |placeBid?|
|0 |"your offer cannot be equal to zero, please try again"|
|-1 |"your offer cannot be a negative number, please try again"|
|0.1 |"your offer cannot be a decimal number, please try again"|
|3 |true|
\ No newline at end of file
| fitNesseFixture.[ItemFixture](http://localhost/ItemFixture) | | |
| ----------------------------------------------------------- | ------- | --------------------------------------------------------- |
| item | picture | addPicture? |
| 1 | | Error: there are problems with the pictures, please check |
| 1 | 1 | true |
| fitNesseFixture.[AuctionManagerFixture](http://localhost/AuctionManagerFixture) | |
| ------------------------------------------------------------ | -------------------------------------------------------- |
| value | placeBid? |
| 0 | your offer cannot be equal to zero, please try again |
| -1 | your offer cannot be a negative number, please try again |
| 0.1 | your offer cannot be a decimal number, please try again |
| 3 | true |
\ No newline at end of file
package fitNesseFixture;
import java.util.Date;
import project.Category;
import project.Item;
import project.ItemPicture;
......@@ -8,7 +10,8 @@ import project.Seller;
public class SellerFixture {
private Seller s;
private String title, description, startTime, endTime, images;
private String title, description, images;
private Date startTime, endTime;
private int item, category;
private double price, bidIncrement;
......@@ -19,23 +22,23 @@ public class SellerFixture {
return s.addItem(title, description, ItemPicture.getImages(images), Category.getCategory(category));
}
/*
public boolean createAuction() {
s = Seller.getInstance();
return s.createAuction(Item.getItem(item), startTime, endTime, price, bidIncrement);
}
*/
public void setImages(String images) {
this.images = images;
}
public void setStartTime(String startTime) {
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public void setEndTime(String endTime) {
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
......
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment