| Conditions | 1 |
| Total Lines | 17 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package com.hltech.pact.gen.domain.client.model; |
||
| 31 | public static ResponseRepresentation from(HttpStatus status, |
||
| 32 | List<Param> headers, |
||
| 33 | Method method, |
||
| 34 | String description, |
||
| 35 | boolean isEmptyBodyExpected) { |
||
| 36 | |||
| 37 | return ResponseRepresentation.builder() |
||
| 38 | .status(status) |
||
| 39 | .headers(headers) |
||
| 40 | .body(Body.builder() |
||
| 41 | .type(method.getReturnType()) |
||
| 42 | .genericArgumentTypes( |
||
| 43 | TypeExtractor.extractParameterTypesFromType(method.getGenericReturnType())) |
||
| 44 | .build()) |
||
| 45 | .description(description) |
||
| 46 | .emptyBodyExpected(isEmptyBodyExpected) |
||
| 47 | .build(); |
||
| 48 | } |
||
| 50 |