Exemplo n.º 1
0
 /** 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));
 }
Exemplo n.º 2
0
 /** Tests ipv6LocRouterId() getter method. */
 @Test
 public void testIpv6LocRouterId() throws Exception {
   List list = new ArrayList();
   ospfLinkTed.setIpv4LocRouterId(list);
   assertThat(ospfLinkTed.ipv6LocRouterId().size(), is(0));
 }
Exemplo n.º 3
0
 /** Tests maxUnResBandwidth() setter method. */
 @Test
 public void testSetMaxUnResBandwidth() throws Exception {
   ospfLinkTed.setMaxUnResBandwidth(Bandwidth.bps(1234.0));
   assertThat(ospfLinkTed.maxUnResBandwidth(), is(notNullValue()));
 }
Exemplo n.º 4
0
 /** Tests maximumLink() setter method. */
 @Test
 public void testSetMaximumLink() throws Exception {
   ospfLinkTed.setMaximumLink(Bandwidth.bps(1234));
   assertThat(ospfLinkTed.maximumLink(), is(Bandwidth.bps(1234)));
 }
Exemplo n.º 5
0
 /** Tests teMetric() setter method. */
 @Test
 public void testSetTeMetric() throws Exception {
   ospfLinkTed.setTeMetric(1234);
   assertThat(ospfLinkTed.teMetric(), is(1234));
 }