/** Tests ipv4RemRouterId() setter method. */ @Test public void testSetIpv4RemRouterId() throws Exception { List list = new ArrayList(); list.add(Ip4Address.valueOf(InetAddress.getLocalHost())); ospfLinkTed.setIpv4RemRouterId(list); assertThat(ospfLinkTed.ipv4RemRouterId().size(), is(1)); }
/** Tests ipv6LocRouterId() getter method. */ @Test public void testIpv6LocRouterId() throws Exception { List list = new ArrayList(); ospfLinkTed.setIpv4LocRouterId(list); assertThat(ospfLinkTed.ipv6LocRouterId().size(), is(0)); }
/** Tests maxUnResBandwidth() setter method. */ @Test public void testSetMaxUnResBandwidth() throws Exception { ospfLinkTed.setMaxUnResBandwidth(Bandwidth.bps(1234.0)); assertThat(ospfLinkTed.maxUnResBandwidth(), is(notNullValue())); }
/** Tests maximumLink() setter method. */ @Test public void testSetMaximumLink() throws Exception { ospfLinkTed.setMaximumLink(Bandwidth.bps(1234)); assertThat(ospfLinkTed.maximumLink(), is(Bandwidth.bps(1234))); }
/** Tests teMetric() setter method. */ @Test public void testSetTeMetric() throws Exception { ospfLinkTed.setTeMetric(1234); assertThat(ospfLinkTed.teMetric(), is(1234)); }