1
2
3
4
5
6
7
8
9
10
11 package org.csveed.common;
12
13 import static org.junit.jupiter.api.Assertions.assertEquals;
14
15 import org.junit.jupiter.api.Test;
16
17
18
19
20 class ColumnKeyTest {
21
22
23
24
25 @Test
26 void columnNameKeyEquals() {
27 ColumnNameKey key1 = new ColumnNameKey("alpha");
28 ColumnNameKey key2 = new ColumnNameKey("alpha");
29 assertEquals(key1, key2);
30 }
31
32
33
34
35 @Test
36 void key1LessThanKey2() {
37 ColumnNameKey key1 = new ColumnNameKey("alpha");
38 ColumnNameKey key2 = new ColumnNameKey("beta");
39 assertEquals(-1, key1.compareTo(key2));
40 }
41
42 }