Home / Function/ advanceWithNegativeAmount() — netty Function Reference

advanceWithNegativeAmount() — netty Function Reference

Architecture documentation for the advanceWithNegativeAmount() function in DefaultMockTickerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9b918b13_8c4e_dbf0_35f0_eceaf65b261f["advanceWithNegativeAmount()"]
  15c7b7ca_db5e_f063_6092_a6f83d0d82e5["DefaultMockTickerTest"]
  9b918b13_8c4e_dbf0_35f0_eceaf65b261f -->|defined in| 15c7b7ca_db5e_f063_6092_a6f83d0d82e5
  style 9b918b13_8c4e_dbf0_35f0_eceaf65b261f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/concurrent/DefaultMockTickerTest.java lines 57–67

    @Test
    void advanceWithNegativeAmount() {
        final MockTicker ticker = Ticker.newMockTicker();
        assertThrows(IllegalArgumentException.class, () -> {
            ticker.advance(-1, TimeUnit.SECONDS);
        });

        assertThrows(IllegalArgumentException.class, () -> {
            ticker.advanceMillis(-1);
        });
    }

Domain

Subdomains

Frequently Asked Questions

What does advanceWithNegativeAmount() do?
advanceWithNegativeAmount() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/DefaultMockTickerTest.java.
Where is advanceWithNegativeAmount() defined?
advanceWithNegativeAmount() is defined in common/src/test/java/io/netty/util/concurrent/DefaultMockTickerTest.java at line 57.

Analyze Your Own Codebase

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

Try Supermodel Free