private void assertMultiSwitch(DNSToSwitchMapping mapping) { assertEquals("Expected a multi switch mapping " + mapping, false, AbstractDNSToSwitchMapping.isMappingSingleSwitch(mapping)); }
private void assertMultiSwitch(DNSToSwitchMapping mapping) { assertEquals("Expected a multi switch mapping " + mapping, false, AbstractDNSToSwitchMapping.isMappingSingleSwitch(mapping)); }
private void assertSingleSwitch(DNSToSwitchMapping mapping) { assertEquals("Expected a single switch mapping " + mapping, true, AbstractDNSToSwitchMapping.isMappingSingleSwitch(mapping)); }
private void assertSingleSwitch(DNSToSwitchMapping mapping) { assertEquals("Expected a single switch mapping " + mapping, true, AbstractDNSToSwitchMapping.isMappingSingleSwitch(mapping)); }
@Test public void testNullMapping() { assertFalse(AbstractDNSToSwitchMapping.isMappingSingleSwitch(null)); }
@Test public void testNullMapping() { assertFalse(AbstractDNSToSwitchMapping.isMappingSingleSwitch(null)); }
/** * Verify the switch mapping query handles arbitrary DNSToSwitchMapping * implementations * * @throws Throwable on any problem */ @Test public void testStandaloneClassesAssumedMultiswitch() throws Throwable { DNSToSwitchMapping mapping = new StandaloneSwitchMapping(); assertFalse("Expected to be multi switch " + mapping, AbstractDNSToSwitchMapping.isMappingSingleSwitch(mapping)); }
/** * Verify the switch mapping query handles arbitrary DNSToSwitchMapping * implementations * * @throws Throwable on any problem */ @Test public void testStandaloneClassesAssumedMultiswitch() throws Throwable { DNSToSwitchMapping mapping = new StandaloneSwitchMapping(); assertFalse("Expected to be multi switch " + mapping, AbstractDNSToSwitchMapping.isMappingSingleSwitch(mapping)); }
@Test public void testNoFilenameMeansSingleSwitch() throws Throwable { Configuration conf = new Configuration(); ScriptBasedMapping mapping = createMapping(conf); assertTrue("Expected to be single switch", mapping.isSingleSwitch()); assertTrue("Expected to be single switch", AbstractDNSToSwitchMapping.isMappingSingleSwitch(mapping)); }
@Test public void testNoFilenameMeansSingleSwitch() throws Throwable { Configuration conf = new Configuration(); ScriptBasedMapping mapping = createMapping(conf); assertTrue("Expected to be single switch", mapping.isSingleSwitch()); assertTrue("Expected to be single switch", AbstractDNSToSwitchMapping.isMappingSingleSwitch(mapping)); }
@Test public void testNoFilenameMeansSingleSwitch() throws Throwable { Configuration conf = new Configuration(); ScriptBasedMapping mapping = createMapping(conf); assertTrue("Expected to be single switch", mapping.isSingleSwitch()); assertTrue("Expected to be single switch", AbstractDNSToSwitchMapping.isMappingSingleSwitch(mapping)); }
@Test public void testNoFilenameMeansSingleSwitch() throws Throwable { Configuration conf = new Configuration(); ScriptBasedMapping mapping = createMapping(conf); assertTrue("Expected to be single switch", mapping.isSingleSwitch()); assertTrue("Expected to be single switch", AbstractDNSToSwitchMapping.isMappingSingleSwitch(mapping)); }