Revision b13da0b9
Added by Cherian Mathew almost 9 years ago
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/session/MockSessionOwner.java | ||
---|---|---|
17 | 17 |
|
18 | 18 |
public MockSessionOwner() { |
19 | 19 |
this.rootEntities = null; |
20 |
updatedObjects = new HashSet<T>(); |
|
20 | 21 |
} |
21 | 22 |
|
22 | 23 |
public MockSessionOwner(Set<T> updatedObjects) { |
... | ... | |
33 | 34 |
} |
34 | 35 |
|
35 | 36 |
public void addExpectedUpdatedObject(T updatedObject) { |
36 |
if(updatedObjects == null) { |
|
37 |
updatedObjects = new HashSet<T>(); |
|
38 |
} |
|
39 | 37 |
updatedObjects.add(updatedObject); |
40 | 38 |
} |
41 | 39 |
|
... | ... | |
65 | 63 |
Assert.assertTrue(event.getChangedObjects().contains(cb)); |
66 | 64 |
} |
67 | 65 |
} |
66 |
updatedObjects.clear(); |
|
68 | 67 |
} |
69 | 68 |
|
70 | 69 |
} |
Also available in: Unified diff
#5007 : Add remoting handler / operations for the taxon navigator