Home / File/ NonStickyEventExecutorGroupTest.java — netty Source File

NonStickyEventExecutorGroupTest.java — netty Source File

Architecture documentation for NonStickyEventExecutorGroupTest.java, a java file in the netty codebase.

Entity Profile

Relationship Graph

Source Code

/*
 * Copyright 2016 The Netty Project
 *
 * The Netty Project licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package io.netty.util.concurrent;

import io.netty.util.NettyRuntime;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;
import org.junit.jupiter.api.function.Executable;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;

import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

public class NonStickyEventExecutorGroupTest {
    private static final String PARAMETERIZED_NAME = "{index}: maxTaskExecutePerRun = {0}";

    @Test
    public void testInvalidGroup() {
        final EventExecutorGroup group = new DefaultEventExecutorGroup(1);
        try {
            assertThrows(IllegalArgumentException.class, new Executable() {
                @Override
                public void execute() {
                    new NonStickyEventExecutorGroup(group);
                }
            });
        } finally {
            group.shutdownGracefully();
        }
    }

    public static Collection<Object[]> data() throws Exception {
        List<Object[]> params = new ArrayList<Object[]>();
// ... (270 more lines)

Domain

Subdomains

Frequently Asked Questions

What does NonStickyEventExecutorGroupTest.java do?
NonStickyEventExecutorGroupTest.java is a source file in the netty codebase, written in java. It belongs to the Buffer domain, Telemetry subdomain.
Where is NonStickyEventExecutorGroupTest.java in the architecture?
NonStickyEventExecutorGroupTest.java is located at common/src/test/java/io/netty/util/concurrent/NonStickyEventExecutorGroupTest.java (domain: Buffer, subdomain: Telemetry, directory: common/src/test/java/io/netty/util/concurrent).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free