stringProperty.setName(p.name); stringProperty .setDescription(isBlank(p.description) ? route.description : p.description); stringProperty.setDefault(p.value); stringProperty.setRequired(p.required); stringProperty.setType(StringProperty.TYPE); properties.put(p.name, stringProperty); }); model.set...
model.setDescription("an error message"); model.addProperty("statusCode",newIntegerProperty().readOnly().description("http status code")); model.addProperty("statusMessage",newStringProperty().readOnly().description("description of the http status code")); model.addProperty("requestMethod",newS...
when(result.next()).thenReturn(newListBindingSet(ImmutableList.of(), ImmutableList.of()));// Assertthrown.expect(EntityMapperRuntimeException.class); thrown.expectMessage("Property 'name' is required.");// ActtupleEntityMapper.map(entity, MediaType.APPLICATION_JSON_TYPE); } 开发者ID:dotwebstac...