NIHVIVO-2479 Finalize dump template

This commit is contained in:
ryounes 2011-04-22 19:45:45 +00:00
parent 27b78c2760
commit 8f0b6f7b01
5 changed files with 327 additions and 43 deletions

View file

@ -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);