@Test public void postMethodLocalNull() throws Exception { try { ServiceResponse<Void> response = client.getSubscriptionInMethod().postMethodLocalNull(null); fail(); } catch (IllegalArgumentException ex) { Assert.assertTrue(ex.getMessage().contains("Parameter subscriptionId is required")); } }
@Test public void postSwaggerLocalValid() throws Exception { ServiceResponse<Void> response = client.getSubscriptionInMethod().postSwaggerLocalValid("1234-5678-9012-3456"); Assert.assertEquals(200, response.getResponse().code()); }