Commit 614f4cc6 authored by Iago Gómez Salgado's avatar Iago Gómez Salgado

Another dataset fix

parent 147b0452
...@@ -19,7 +19,7 @@ public final class PetsDataset { ...@@ -19,7 +19,7 @@ public final class PetsDataset {
}; };
} }
public static Pet[] peopleWithout(int ... ids) { public static Pet[] petWithout(int ... ids) {
Arrays.sort(ids); Arrays.sort(ids);
final Predicate<Pet> hasValidId = pet -> final Predicate<Pet> hasValidId = pet ->
...@@ -50,23 +50,27 @@ public final class PetsDataset { ...@@ -50,23 +50,27 @@ public final class PetsDataset {
} }
public static Pet nonExistentPet() { public static Pet nonExistentPet() {
return new Pet(nonExistentId(), "Cospe", "Gaivota", "Pepera",1); return new Pet(nonExistentId(), "Cospe", "Gaivota", "Pepera", 1);
}
public static int newId() {
return 4;
} }
public static String newName() { public static String newName() {
return "Tor"; return "Cospe";
} }
public static String newKind() { public static String newKind() {
return "Pe"; return "Gaivota";
} }
public static String newBreed() { public static String newBreed() {
return "QueFlipas"; return "Pepera";
} }
public static int newOwner() { public static int newOwner() {
return 2; return 1;
} }
public static Pet newPet() { public static Pet newPet() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment