aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/test/java/com/yahoo/vespa/config/server/tenant/CloudAccountSerializerTest.java
blob: bdb325594a4c152bbd5ae6930ca9ddabe431b822 (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 Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.tenant;

import com.yahoo.config.provision.CloudAccount;
import org.junit.Test;

import static com.yahoo.vespa.config.server.tenant.CloudAccountSerializer.fromSlime;
import static com.yahoo.vespa.config.server.tenant.CloudAccountSerializer.toSlime;
import static org.junit.Assert.assertEquals;

/**
 * @author mpolden
 */
public class CloudAccountSerializerTest {

    @Test
    public void serialization() {
        CloudAccount account = CloudAccount.from("012345678912");
        assertEquals(account, fromSlime(toSlime(account).get()));
    }

}