From 9d450a9caac615f3933c0de954d37739ea7f7bfb Mon Sep 17 00:00:00 2001 From: Miroslav Pokorny Date: Sat, 21 Sep 2024 13:38:49 +1000 Subject: [PATCH] SpreadsheetComparatorNameList implements HasUrlFragment --- .../compare/SpreadsheetComparatorNameList.java | 14 +++++++++++++- .../compare/SpreadsheetComparatorNameListTest.java | 12 ++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/src/main/java/walkingkooka/spreadsheet/compare/SpreadsheetComparatorNameList.java b/src/main/java/walkingkooka/spreadsheet/compare/SpreadsheetComparatorNameList.java index 3539c97a3..2c4b85386 100644 --- a/src/main/java/walkingkooka/spreadsheet/compare/SpreadsheetComparatorNameList.java +++ b/src/main/java/walkingkooka/spreadsheet/compare/SpreadsheetComparatorNameList.java @@ -19,6 +19,8 @@ import walkingkooka.collect.list.ImmutableListDefaults; import walkingkooka.collect.list.Lists; +import walkingkooka.net.HasUrlFragment; +import walkingkooka.net.UrlFragment; import walkingkooka.plugin.PluginNameLike; import walkingkooka.text.CharacterConstant; import walkingkooka.text.HasText; @@ -36,7 +38,8 @@ */ public final class SpreadsheetComparatorNameList extends AbstractList implements ImmutableListDefaults, - HasText { + HasText, + HasUrlFragment { /** * An empty {@link SpreadsheetComparatorNameList}. @@ -108,6 +111,15 @@ public SpreadsheetComparatorNameList setElements(final List, ClassTesting, ImmutableListTesting, + HasUrlFragmentTesting, JsonNodeMarshallingTesting { private final static SpreadsheetComparatorName DATE1 = SpreadsheetComparatorName.DATE; @@ -125,6 +127,16 @@ public SpreadsheetComparatorNameList createList() { ); } + // HasUrlFragment................................................................................................... + + @Test + public void testHasUrlFragment() { + this.urlFragmentAndCheck( + this.createList(), + "date,number" + ); + } + // class............................................................................................................ @Override