001/*
002 * Licensed under the Apache License, Version 2.0 (the "License");
003 * you may not use this file except in compliance with the License.
004 * You may obtain a copy of the License at
005 *
006 *     http://www.apache.org/licenses/LICENSE-2.0
007 *
008 * Unless required by applicable law or agreed to in writing, software
009 * distributed under the License is distributed on an "AS IS" BASIS,
010 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
011 * See the License for the specific language governing permissions and
012 * limitations under the License.
013 */
014package org.gbif.dwc.extensions;
015
016import org.junit.jupiter.api.Test;
017
018import static org.junit.jupiter.api.Assertions.assertTrue;
019
020/**
021 * Unit tests related to {@link VocabularyConcept}
022 */
023public class VocabularyConceptTest {
024
025  @Test
026  public void testCompareTo() {
027    VocabularyConcept a = new VocabularyConcept();
028    a.setUri("http://2");
029    a.setOrder(1);
030
031    VocabularyConcept b = new VocabularyConcept();
032    b.setUri("http://1");
033    a.setOrder(2);
034
035    assertTrue(a.compareTo(b) > 0);
036  }
037}