use of io.syndesis.server.endpoint.v1.dto.Meta in project syndesis by syndesisio.
the class ConnectionActionHandlerTest method shouldNotContactVerifierForNonDynamicActions.
@Test
public void shouldNotContactVerifierForNonDynamicActions() {
final ConnectorDescriptor defaultDefinition = new ConnectorDescriptor.Builder().build();
final Response response = handler.enrichWithMetadata(SALESFORCE_LIMITS, null);
assertThat(response.getStatus()).isEqualTo(Status.OK.getStatusCode());
@SuppressWarnings("unchecked") final Meta<ConnectorDescriptor> returnValue = (Meta<ConnectorDescriptor>) response.getEntity();
assertThat(returnValue.getValue()).isEqualTo(defaultDefinition);
}
Aggregations