Search in sources :

Example 1 with ConfigTypeModelProperty

use of org.mule.runtime.module.extension.internal.loader.java.property.ConfigTypeModelProperty in project mule by mulesoft.

the class JavaConfigurationDeclarationEnricherTestCase method verifyConfigurationModelPropertyOnOperation.

@Test
public void verifyConfigurationModelPropertyOnOperation() {
    OperationDeclaration operationDeclaration = getDeclaration(declaration.getConfigurations().get(0).getOperations(), GET_ENEMY);
    final ConfigTypeModelProperty configTypeModelProperty = checkIsPresent(operationDeclaration, ConfigTypeModelProperty.class);
    assertType(configTypeModelProperty);
}
Also used : ConfigTypeModelProperty(org.mule.runtime.module.extension.internal.loader.java.property.ConfigTypeModelProperty) OperationDeclaration(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclaration) Test(org.junit.Test)

Example 2 with ConfigTypeModelProperty

use of org.mule.runtime.module.extension.internal.loader.java.property.ConfigTypeModelProperty in project mule by mulesoft.

the class JavaConfigurationDeclarationEnricherTestCase method verifyConfigurationModelPropertyOnSource.

@Test
public void verifyConfigurationModelPropertyOnSource() {
    SourceDeclaration sourceDeclaration = getDeclaration(declaration.getConfigurations().get(0).getMessageSources(), LISTEN_PAYMENTS);
    final ConfigTypeModelProperty configTypeModelProperty = checkIsPresent(sourceDeclaration, ConfigTypeModelProperty.class);
    assertType(configTypeModelProperty);
}
Also used : ConfigTypeModelProperty(org.mule.runtime.module.extension.internal.loader.java.property.ConfigTypeModelProperty) SourceDeclaration(org.mule.runtime.api.meta.model.declaration.fluent.SourceDeclaration) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 ConfigTypeModelProperty (org.mule.runtime.module.extension.internal.loader.java.property.ConfigTypeModelProperty)2 OperationDeclaration (org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclaration)1 SourceDeclaration (org.mule.runtime.api.meta.model.declaration.fluent.SourceDeclaration)1