File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
engine/schema/src/test/java/com/cloud/network/dao Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .cloud .network .dao ;
2+
3+ import org .junit .Test ;
4+ import static org .junit .Assert .assertEquals ;
5+ import static org .junit .Assert .assertNull ;
6+
7+ public class LoadBalancerVOTest {
8+ @ Test
9+ public void testSetCidrList () {
10+ LoadBalancerVO loadBalancer = new LoadBalancerVO ();
11+ String cidrList = "192.168.1.0/24,10.0.0.0/16" ;
12+ loadBalancer .setCidrList (cidrList );
13+ assertEquals (cidrList , loadBalancer .getCidrList ());
14+ }
15+
16+ @ Test
17+ public void testSetCidrListEmpty () {
18+ LoadBalancerVO loadBalancer = new LoadBalancerVO ();
19+ loadBalancer .setCidrList ("" );
20+ assertEquals ("" , loadBalancer .getCidrList ());
21+ }
22+
23+ @ Test
24+ public void testSetCidrListNull () {
25+ LoadBalancerVO loadBalancer = new LoadBalancerVO ();
26+ loadBalancer .setCidrList (null );
27+ assertNull (loadBalancer .getCidrList ());
28+ }
29+ }
You can’t perform that action at this time.
0 commit comments