View Javadoc
1   /*
2    * SPDX-FileCopyrightText: Copyright (c) 2011-2025 Yegor Bugayenko
3    * SPDX-License-Identifier: MIT
4    */
5   package com.jcabi.http.request;
6   
7   import java.util.Random;
8   import org.hamcrest.MatcherAssert;
9   import org.hamcrest.Matchers;
10  import org.junit.jupiter.api.Test;
11  
12  /**
13   * Test case {@link Boundary}.
14   * @since 1.17.3
15   */
16  final class BoundaryTest {
17  
18      /**
19       * Boundary builds valid string.
20       */
21      @Test
22      void buildsExpectedBoundary() {
23          MatcherAssert.assertThat(
24              "should be match",
25              new Boundary(new Random(0L)).value(),
26              Matchers.is("PdAChx6AMjemBZYS_W0fi7l8H_-w-X")
27          );
28      }
29  }