private void runTest()

in servicetalk-http-router-jersey/src/testFixtures/java/io/servicetalk/http/router/jersey/ExecutionStrategyTest.java [252:351]


    private void runTest() {
        final String resBody = testMode.sendTestRequest(path, this);
        final Map<String, String> threadingInfo;
        try {
            threadingInfo = OBJECT_MAPPER.readValue(resBody, Map.class);
        } catch (final IOException e) {
            throw new RuntimeException("Failed to test: " + path, e);
        }

        final String context = format("path=%s, router=%s, class=%s, method=%s, mode=%s : %s", path,
                routerExecutionStrategy, classExecutionStrategy, methodExecutionStrategy, testMode,
                resBody);

        switch (routerExecutionStrategy) {
            case DEFAULT:
                switch (classExecutionStrategy) {
                    case DEFAULT:
                    case NO_OFFLOADS:
                        switch (methodExecutionStrategy) {
                            case DEFAULT:
                            case NO_OFFLOADS:
                                assertGlobalExecutor(testMode, context, threadingInfo);
                                return;
                            case EXEC:
                                assertOffloaded(testMode, context, threadingInfo);
                                return;
                        }
                    case EXEC:
                        switch (methodExecutionStrategy) {
                            case DEFAULT:
                            case EXEC:
                                assertOffloaded(testMode, context, threadingInfo);
                                return;
                            case NO_OFFLOADS:
                                assertGlobalExecutor(testMode, context, threadingInfo);
                                return;
                        }
                }

            case EXEC:
                switch (classExecutionStrategy) {
                    case DEFAULT:
                    case NO_OFFLOADS:
                        switch (methodExecutionStrategy) {
                            case DEFAULT:
                            case NO_OFFLOADS:
                                assertRouterExecutor(testMode, context, threadingInfo);
                                return;
                            case EXEC:
                                assertOffloaded(testMode, context, threadingInfo);
                                return;
                        }
                    case EXEC:
                        switch (methodExecutionStrategy) {
                            case DEFAULT:
                            case EXEC:
                                assertOffloaded(testMode, context, threadingInfo);
                                return;
                            case NO_OFFLOADS:
                                assertRouterExecutor(testMode, context, threadingInfo);
                                return;
                        }
                }

            case NO_OFFLOADS:
                switch (classExecutionStrategy) {
                    case DEFAULT:
                        switch (methodExecutionStrategy) {
                            case DEFAULT:
                                assertGlobalExecutor(testMode, context, threadingInfo);
                                return;
                            case NO_OFFLOADS:
                                assertDefaultNoOffloadsExecutor(testMode, context, threadingInfo);
                                return;
                            case EXEC:
                                assertRouteExecutor(testMode, context, threadingInfo);
                                return;
                        }
                    case EXEC:
                        switch (methodExecutionStrategy) {
                            case DEFAULT:
                            case EXEC:
                                assertRouteExecutor(testMode, context, threadingInfo);
                                return;
                            case NO_OFFLOADS:
                                assertDefaultNoOffloadsExecutor(testMode, context, threadingInfo);
                                return;
                        }
                    case NO_OFFLOADS:
                        switch (methodExecutionStrategy) {
                            case DEFAULT:
                            case NO_OFFLOADS:
                                assertDefaultNoOffloadsExecutor(testMode, context, threadingInfo);
                                return;
                            case EXEC:
                                assertRouteExecutor(testMode, context, threadingInfo);
                        }
                }
        }
    }