use of org.mule.test.petstore.extension.PetStoreConnector in project mule by mulesoft.
the class PetStoreTlsConfigTestCase method tls.
@Test
public void tls() throws Exception {
PetStoreConnector connector = getConfigurationFromRegistry(configName, testEvent(), muleContext);
TlsContextFactory tls = connector.getTlsContext();
assertTls(tls);
TlsContextFactory tlsInsidePojo = connector.getCage().getTls();
assertTls(tlsInsidePojo);
}
use of org.mule.test.petstore.extension.PetStoreConnector in project mule by mulesoft.
the class PetStoreConnectionTestCase method getPets.
@Test
public void getPets() throws Exception {
ConfigurationInstance config = muleContext.getExtensionManager().getConfiguration("petstore", testEvent());
assertThat(config, is(notNullValue()));
CoreEvent response = runFlow("getPets");
List<String> pets = (List<String>) response.getMessage().getPayload().getValue();
PetStoreConnector configValue = (PetStoreConnector) config.getValue();
assertThat(pets, containsInAnyOrder(configValue.getPets().toArray()));
}
use of org.mule.test.petstore.extension.PetStoreConnector in project mule by mulesoft.
the class PetStoreDefaultEncodingTestCase method configEncoding.
@Test
public void configEncoding() throws Exception {
PetStoreConnector config = (PetStoreConnector) flowRunner("configEncoding").run().getMessage().getPayload().getValue();
assertDefaultEncoding(config.getEncoding());
}
Aggregations