* Move class Item as inner class of surrounding test
* Update mongodb sample for item deletion use case
This commit is contained in:
Mahmoud Ben Hassine
2020-07-17 19:27:17 +02:00
parent 6c5cb2b13d
commit bbfe1a9a76
6 changed files with 149 additions and 31 deletions

View File

@@ -350,15 +350,15 @@ public class MongoItemWriterTests {
assertEquals(String.valueOf(i), results[i]);
}
}
}
class Item {
Integer id;
String name;
public Item(Integer id){
this.id = id;
}
public Item(String name) {
this.name = name;
static class Item {
Integer id;
String name;
public Item(Integer id) {
this.id = id;
}
public Item(String name) {
this.name = name;
}
}
}

View File

@@ -127,15 +127,15 @@ public class MongoItemWriterBuilderTests {
iae.getMessage());
}
}
}
class Item {
Integer id;
String name;
public Item(Integer id){
this.id = id;
}
public Item(String name) {
this.name = name;
static class Item {
Integer id;
String name;
public Item(Integer id) {
this.id = id;
}
public Item(String name) {
this.name = name;
}
}
}