aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/test/java/com/yahoo/document/DataTypeNameTestCase.java
blob: efdb37b90d4bcd3fe934be1426541f2b0ad339ed (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.document;

import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

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

    @Test
    public void requireThatAccessorsWork() {
        DataTypeName name = new DataTypeName("foo");
        assertEquals("foo", name.getName());
        assertEquals("foo", name.toString());
        assertFalse(name.equals(new Object()));
    }

}