blob: d8720a44e6d1a8a9a94bb1870ff8f35f2b479e02 (
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.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()));
}
}
|