4df0590b1da759c74b4274149ce2a537570e7614
[controller.git] / opendaylight / forwarding / staticrouting / src / test / java / org / opendaylight / controller / forwarding / staticrouting / internal / StaticRoutingImplementationTest.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.forwarding.staticrouting.internal;
11
12 import org.junit.Assert;
13 import org.junit.Test;
14
15 public class StaticRoutingImplementationTest {
16         
17         @Test
18         public void isIPv4AddressValidTest() {
19                 StaticRoutingImplementation staticRouteImpl = new StaticRoutingImplementation();
20         Assert.assertTrue(staticRouteImpl.isIPv4AddressValid("192.168.100.0/24"));              
21         Assert.assertFalse(staticRouteImpl.isIPv4AddressValid("192.168.100.0/36"));             
22         Assert.assertFalse(staticRouteImpl.isIPv4AddressValid("192.168.300.0/32"));             
23         }
24 }
25
26
27
28