1 /*
2 * SPDX-FileCopyrightText: Copyright (c) 2013-2025 Yegor Bugayenko
3 * SPDX-License-Identifier: MIT
4 */
5 package com.jcabi.github;
6
7 import org.junit.jupiter.api.Assertions;
8 import org.junit.jupiter.api.Test;
9
10 /**
11 * Tests for Runtime Reaction.
12 * @since 1.0
13 */
14 final class RtReactionTest {
15
16 @Test
17 void throwsExceptionOnInvalidReaction() {
18 Assertions.assertThrows(
19 IllegalArgumentException.class,
20 () -> new RtReaction(new Reaction.Simple("invalid")).type(),
21 "Should throw on invalid reaction"
22 );
23 }
24 }