Package com.wordnik.swagger.model

Examples of com.wordnik.swagger.model.Parameter.dataType()


        Parameter documentationParameter = parameters.get(0);

        assertEquals("ownerName", documentationParameter.name());
        assertEquals(true, documentationParameter.required());
        assertEquals(ApiValues.TYPE_PATH(), documentationParameter.paramType());
        assertEquals("string", documentationParameter.dataType());
//        assertEquals(String.class.getName(), documentationParameter.getValueTypeInternal());
        assertEquals(false, documentationParameter.allowMultiple());
        assertEquals("Owner name", documentationParameter.description().get());
    }
View Full Code Here


        ApiParameterParser parameterParser = new ApiParameterParser(new ArrayList<String>(),
                new HashMap<String, Model>());
        List<Parameter> documentationParameters = parameterParser.parseApiParametersAndArgumentModels(method);
        assertTrue(documentationParameters.size() == 8);
        Parameter documentationParameter = documentationParameters.get(0);
        assertTrue(documentationParameter.dataType().equals("string"));
        assertTrue(documentationParameter.name().equals("testVariable"));
    }

}
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.