Examples of SecurityReference


Examples of org.raml.model.SecurityReference

        raml.setResources(buildMap(resource));
        raml.setProtocols(Collections.singletonList(Protocol.HTTP));
        raml.setResourceTypes(Collections.singletonList(buildMap(new Template())));
        raml.setTraits(Collections.singletonList(buildMap(new Template())));
        raml.setSecuritySchemes(Collections.singletonList(buildMap(securityScheme)));
        raml.setSecuredBy(Collections.singletonList(new SecurityReference("ref")));

        byte[] bytes = SerializationUtils.serialize(raml);
        Raml copy = (Raml) SerializationUtils.deserialize(bytes);
        assertThat(copy.getTitle(), is(raml.getTitle()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.