@Story(COLLECT_LIST) public class CollectListForkJoinStrategyTestCase extends AbstractForkJoinStrategyTestCase {
public static Label createLabel(final Story story) { return createStoryLabel(story.value()); }
@Story(JOIN_ONLY) public class JoinOnlyForkJoinStrategyTestCase extends AbstractForkJoinStrategyTestCase {
@Story(COLLECT_MAP) public class CollectMapForkJoinStrategyTestCase extends AbstractForkJoinStrategyTestCase {
@Feature(EXTENSIONS_CLIENT) @Story(BLOCKING_CLIENT) public class BlockingExtensionsClientTestCase extends ExtensionsClientTestCase { @Override <T, A> Result<T, A> doExecute(String extension, String operation, OperationParameters params) throws MuleException { return client.execute(extension, operation, params); } }
@Feature(EXTENSIONS_CLIENT) @Story(NON_BLOCKING_CLIENT) public class NonBlockingExtensionsClientTestCase extends ExtensionsClientTestCase { @Override <T, A> Result<T, A> doExecute(String extension, String operation, OperationParameters params) throws Throwable { CompletableFuture<Result<T, A>> future = client.executeAsync(extension, operation, params); try { return future.get(); } catch (InterruptedException e) { throw new RuntimeException("Failure. The test throw an exception: " + e.getMessage(), e); } catch (ExecutionException e) { throw e.getCause(); } } }
@Feature(ERROR_HANDLING) @Story(EXCEPTION_MAPPINGS) public class ErrorTypeLocatorTestCase extends AbstractMuleTestCase { private final ErrorTypeRepository repository = new DefaultErrorTypeRepository(); @Test public void useDefaultErrorWhenNoMappingFound() { ErrorType mockedError = mock(ErrorType.class); ErrorType unknown = repository.getErrorType(UNKNOWN).get(); ErrorTypeLocator locator = ErrorTypeLocator.builder(repository) .defaultExceptionMapper(ExceptionMapper.builder().addExceptionMapping(Exception.class, mockedError).build()) .defaultError(unknown) .build(); ErrorType expectedError = locator.lookupErrorType(Exception.class); assertThat(expectedError, is(sameInstance(mockedError))); ErrorType defaultError = locator.lookupErrorType(Throwable.class); assertThat(defaultError, is(sameInstance(unknown))); } }
@Feature(PROCESSING_STRATEGIES) @Story(PROACTOR) public class ReactorStreamProcessingStrategyFactoryTestCase extends AbstractMuleContextTestCase {
@Feature(PROCESSING_STRATEGIES) @Story(BLOCKING) public class BlockingProcessingStrategyTestCase extends DirectProcessingStrategyTestCase {
@Feature(PROCESSING_STRATEGIES) @Story(WORK_QUEUE) public class TransactionAwareWorkQueueStreamProcessingStrategyTestCase extends WorkQueueStreamProcessingStrategyTestCase {
@SmallTest @Feature(STREAMING) @Story(BYTES_STREAMING) public class InMemoryCursorIteratorConfigTestCase extends InMemoryStreamingConfigContractTestCase { @Override protected void createConfig(int initialSize, int increment, int maxSize) { new InMemoryCursorIteratorConfig(initialSize, increment, maxSize); } }
@Story("Provide correct XML factories even without isolation") public class XmlSecureLibrariesVerificationTestCase extends AbstractMuleTestCase {
@Feature(ERROR_HANDLING) @Story(ERROR_TYPES) public class SingleErrorTypeMatcherTestCase extends AbstractErrorTypeMatcherTestCase {
@Feature(PROCESSING_STRATEGIES) @Story(DEFAULT) public class TransactionAwareProactorStreamEmitterProcessingStrategyTestCase extends ProactorStreamEmitterProcessingStrategyTestCase {
@Feature(ERROR_HANDLING) @Story(ERROR_TYPES) public class DisjunctiveErrorTypeMatcherTestCase extends AbstractErrorTypeMatcherTestCase {
@SmallTest @Feature(STREAMING) @Story(STREAMING) public class InMemoryCursorStreamTestCase extends InMemoryStreamingConfigContractTestCase { @Override protected void createConfig(int initialSize, int increment, int maxSize) { new InMemoryCursorStreamConfig(new DataSize(initialSize, BYTE), new DataSize(increment, BYTE), new DataSize(maxSize, BYTE)); } }
@Feature(PROCESSING_STRATEGIES) @Story(PROACTOR) public class ProactorStreamWorkQueueProcessingStrategyFactoryTestCase extends AbstractMuleContextTestCase {
@Story("Provide correct XML factories with isolation") public class XmlLibrariesVerificationTestCase extends AbstractXmlExtensionMuleArtifactFunctionalTestCase {
@Feature(LIFECYCLE_AND_DEPENDENCY_INJECTION) @Story(LIFECYCLE_PHASE_STORY) public class DefaultLifecycleInterceptorTestCase {
@Feature(ERROR_HANDLING) @Story(ERROR_MAPPINGS) public class PetStoreErrorMappingsTestCase extends AbstractExtensionFunctionalTestCase {