aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/test/java/com/yahoo/config/subscription/ConfigSetTest.java
blob: e93f0c871b55fb716605f015eb37fd684e501193 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.subscription;

import com.yahoo.foo.SimpletypesConfig;
import org.junit.Test;

import java.util.regex.Pattern;

import static org.junit.Assert.assertTrue;

/**
 * @author Ulf Lilleengen
 */
public class ConfigSetTest {

    @Test
    public void testToString() {
        ConfigSet set = new ConfigSet();
        SimpletypesConfig.Builder builder = new SimpletypesConfig.Builder();
        set.addBuilder("foo", builder);
        assertTrue(Pattern.matches("name=foo.simpletypes,configId=foo=>com.yahoo.foo.SimpletypesConfig.*",
                set.toString()));
    }
}