View Javadoc
1   package org.csveed.common;
2   
3   import static org.junit.jupiter.api.Assertions.assertEquals;
4   
5   import org.junit.jupiter.api.Test;
6   
7   public class ColumnKeyTest {
8   
9       @Test
10      public void columnNameKeyEquals() {
11          ColumnNameKey key1 = new ColumnNameKey("alpha");
12          ColumnNameKey key2 = new ColumnNameKey("alpha");
13          assertEquals(key1, key2);
14      }
15  
16      @Test
17      public void key1LessThanKey2() {
18          ColumnNameKey key1 = new ColumnNameKey("alpha");
19          ColumnNameKey key2 = new ColumnNameKey("beta");
20          assertEquals(-1, key1.compareTo(key2));
21      }
22  
23  }