/** * Creates a code list of an other kind. The returned set contains a code list having * the same ordinal value than {@link AxisDirection#NORTH}, so we can detect if the * {@code SortedSet} confuses the code list types. */ private CodeListSet<OnLineFunction> createOtherKind() { // For the validity of the tests, ordinal value must be the same. assertEquals(NORTH.ordinal(), OnLineFunction.INFORMATION.ordinal()); final CodeListSet<OnLineFunction> c = new CodeListSet<>(OnLineFunction.class); assertTrue(c.add(OnLineFunction.INFORMATION)); return c; }