summaryrefslogtreecommitdiffstats
path: root/config-provisioning/src/test/java/com/yahoo/config/provision/RegionTest.java
blob: bc459e8853ccf6c04538becc6b467a3a6cf9596b (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
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.provision;

/**
 * @author lulf
 * @since 5.23
 */
public class RegionTest extends IdentifierTestBase<RegionName> {
    @Override
    protected RegionName createInstance(String id) {
        return RegionName.from(id);
    }

    @Override
    protected RegionName createDefaultInstance() {
        return RegionName.defaultName();
    }

    @Override
    protected boolean isDefault(RegionName instance) {
        return instance.isDefault();
    }
}