NIHVIVO-2479 Finalize dump template
This commit is contained in:
parent
27b78c2760
commit
8f0b6f7b01
5 changed files with 327 additions and 43 deletions
|
@ -1011,7 +1011,7 @@ public class DumpDirectiveTest {
|
|||
// Properties
|
||||
SortedMap<String, Object> propertiesExpectedDump = new TreeMap<String, Object>();
|
||||
|
||||
if (exposureLevel != BeansWrapper.EXPOSE_NOTHING) {
|
||||
if (exposureLevel < BeansWrapper.EXPOSE_NOTHING) {
|
||||
|
||||
Map<String, Object> birthdateExpectedDump = new HashMap<String, Object>();
|
||||
birthdateExpectedDump.put(Key.TYPE.toString(), Type.DATE);
|
||||
|
@ -1078,7 +1078,7 @@ public class DumpDirectiveTest {
|
|||
private List<String> getEmployeeMethodsExpectedDump(int exposureLevel) {
|
||||
|
||||
List<String> expectedDump = new ArrayList<String>();
|
||||
if (exposureLevel == BeansWrapper.EXPOSE_SAFE || exposureLevel == BeansWrapper.EXPOSE_ALL) {
|
||||
if (exposureLevel <= BeansWrapper.EXPOSE_SAFE) {
|
||||
expectedDump.add("getEmployeeCount");
|
||||
expectedDump.add("getName(String)");
|
||||
expectedDump.add("setFavoriteColors(Strings)");
|
||||
|
@ -1095,7 +1095,7 @@ public class DumpDirectiveTest {
|
|||
SortedMap<String, Object> propertiesExpectedDump = new TreeMap<String, Object>();
|
||||
|
||||
// Properties
|
||||
if (exposureLevel != BeansWrapper.EXPOSE_NOTHING) {
|
||||
if (exposureLevel < BeansWrapper.EXPOSE_NOTHING) {
|
||||
|
||||
Map<String, Object> birthdateExpectedDump = new HashMap<String, Object>();
|
||||
birthdateExpectedDump.put(Key.TYPE.toString(), Type.DATE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue