APISonar


org.eclipse.microprofile.openapi.models.security.SecurityScheme.Type.HTTP

> org > eclipse > microprofile > openapi > models > security > SecurityScheme > Type > HTTP
org APIs eclipse APIs microprofile APIs openapi APIs models APIs security APIs SecurityScheme APIs Type APIs HTTP APIs

Example 1
public void testHttpWithNoScheme() {

        Type type = Type.HTTP;

        SecuritySchemeImpl noScheme = new SecuritySchemeImpl();
        noScheme.setType(type);

        TestValidationHelper vh = new TestValidationHelper();
        SecuritySchemeValidator validator = SecuritySchemeValidator.getInstance();
        validator.validate(vh, context, key, noScheme);

        //Check for number of events only to keep assert statement independent of error message
        Assert.assertEquals(1, vh.getEventsSize());

    }