@Test public void testSetPriority() { whitelistData.setType(Type.BLACKLIST); blacklistData.setType(Type.WHITELIST); nullData.setType(Type.BLACKLIST); defaultData.setType(Type.BLACKLIST); assertEquals(Type.BLACKLIST, whitelistData.getType()); assertEquals(Type.BLACKLIST, nullData.getType()); assertEquals(Type.BLACKLIST, defaultData.getType()); assertEquals(Type.WHITELIST, blacklistData.getType()); nullData.setType(null); assertEquals(Type.WHITELIST, nullData.getType()); }
@Test public void testSetPriority() { whitelistData.setType(Type.BLACKLIST); blacklistData.setType(Type.WHITELIST); nullData.setType(Type.BLACKLIST); defaultData.setType(Type.BLACKLIST); assertEquals(Type.BLACKLIST, whitelistData.getType()); assertEquals(Type.BLACKLIST, nullData.getType()); assertEquals(Type.BLACKLIST, defaultData.getType()); assertEquals(Type.WHITELIST, blacklistData.getType()); nullData.setType(null); assertEquals(Type.WHITELIST, nullData.getType()); }