Package net.juniper.contrail.api.types

Examples of net.juniper.contrail.api.types.Project


            fail(ex.getMessage());
        }
    }
  
    public void testDeserializeReferenceList() {
        Project project = new Project();
        project.setName("testProject");
        project.setUuid(UUID.randomUUID().toString());
        try {
            assertTrue(_api.create(project));
        } catch (IOException ex) {
            fail(ex.getMessage());
        }
        NetworkPolicy policy = new NetworkPolicy();
        policy.setParent(project);
        policy.setName("testPolicy");
        try {
            assertTrue(_api.create(policy));
        } catch (IOException ex) {
            fail(ex.getMessage());
        }
        try {
            assertTrue(_api.read(project));
        } catch (IOException ex) {
            fail(ex.getMessage());
        }
       
        List<ObjectReference<ApiPropertyBase>> policyList = project.getNetworkPolicys();
        assertTrue(policyList != null)
        assertTrue(policyList.size() != 0)
    }
View Full Code Here

TOP

Related Classes of net.juniper.contrail.api.types.Project

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.