aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/search/grouping/ContinuationTestCase.java
blob: 3dcfcb8480a72bdf9422e3c8ff2ea597b2ed51c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.grouping;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

/**
 * @author Simon Thoresen Hult
 */
public class ContinuationTestCase {

    private static final String KNOWN_CONTINUATION = "BCBCBCBEBGBCBKCBACBKCCK";

    @Test
    void requireThatToStringCanBeParsedByFromString() {
        Continuation cnt = Continuation.fromString(KNOWN_CONTINUATION);
        assertNotNull(cnt);
        assertEquals(KNOWN_CONTINUATION, cnt.toString());
    }
}