@Test
    public void testNullValueDisallowed() throws Exception {
        {
            String str = "{ \"id\": 123, \"petId\": 345, \"quantity\": 100, \"status\": \"placed\" }";
            org.openapitools.client.model.Order o = json.getContext(null).readValue(str, org.openapitools.client.model.Order.class);
            assertEquals(100L, (long)o.getQuantity());
            assertEquals(org.openapitools.client.model.Order.StatusEnum.PLACED, o.getStatus());
        }
        {
            String str = "{ \"id\": 123, \"petId\": 345, \"quantity\": null }";
            org.openapitools.client.model.Order o = json.getContext(null).readValue(str, org.openapitools.client.model.Order.class);
            // TODO: the null value is not allowed per OAS document.
            // The deserialization should fail.
            assertNull(o.getQuantity());
        }
    }
@Test
    public void testNullValueDisallowed() throws Exception {
        {
            String str = "{ \"id\": 123, \"petId\": 345, \"quantity\": 100, \"status\": \"placed\" }";
            org.openapitools.client.model.Order o = json.getContext(null).readValue(str, org.openapitools.client.model.Order.class);
            assertEquals(100L, (long)o.getQuantity());
            assertEquals(org.openapitools.client.model.Order.StatusEnum.PLACED, o.getStatus());
        }
        {
            String str = "{ \"id\": 123, \"petId\": 345, \"quantity\": null }";
            org.openapitools.client.model.Order o = json.getContext(null).readValue(str, org.openapitools.client.model.Order.class);
           
           
            assertNull(o.getQuantity());
        }
    }
@test public void testnullvaluedisallowed() throws exception { { string str = "{ \"id\": 123, \"petid\": 345, \"quantity\": 100, \"status\": \"placed\" }"; org.openapitools.client.model.order o = json.getcontext(null).readvalue(str, org.openapitools.client.model.order.class); assertequals(100l, (long)o.getquantity()); assertequals(org.openapitools.client.model.order.statusenum.placed, o.getstatus()); } { string str = "{ \"id\": 123, \"petid\": 345, \"quantity\": null }"; org.openapitools.client.model.order o = json.getcontext(null).readvalue(str, org.openapitools.client.model.order.class); assertnull(o.getquantity()); } }