Skip to content

Commit b966672

Browse files
committed
meow
1 parent 89d658e commit b966672

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

unicodetools/src/main/java/org/unicode/text/utility/Settings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public static void ensureOutputDir(String dir) {
318318
}
319319
}
320320

321-
public static final String SRC_DIR = UnicodeTools.UNICODETOOLS_RSRC_DIR + "org/unicode/text/";
321+
private static final String SRC_DIR = UnicodeTools.UNICODETOOLS_RSRC_DIR + "org/unicode/text/";
322322

323323
/** Used for data files */
324324
public static final String SRC_UCA_DIR = SRC_DIR + "UCA/";

unicodetools/src/test/java/org/unicode/text/UCD/TestTestUnicodeInvariants.java

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@
1212
import org.junit.jupiter.api.Test;
1313
import org.unicode.text.UCD.TestUnicodeInvariants.BackwardParseException;
1414
import org.unicode.text.utility.Settings;
15-
import org.unicode.text.utility.Settings.UnicodeTools;
1615

1716
public class TestTestUnicodeInvariants {
1817
@Test
1918
void testSRC_UCD_DIR() {
2019
assertAll(
2120
"assert that no components of Settings.SRC_UCD_DIR are null",
2221
() -> assertNotNull(Settings.SRC_UCD_DIR, "Settings.SRC_UCD_DIR"),
23-
() -> assertNotNull(Settings.SRC_DIR, "Settings.SRC_DIR"),
2422
() ->
2523
assertNotNull(
2624
Settings.UnicodeTools.UNICODETOOLS_RSRC_DIR,
@@ -43,23 +41,17 @@ void testUnicodeInvariants() throws IOException {
4341

4442
@Test
4543
void testAdditionComparisons() throws IOException {
46-
final var directory = new File(Settings.SRC_DIR + "UCD/AdditionComparisons/");
44+
final var directory =
45+
new File(
46+
Settings.UnicodeTools.UNICODETOOLS_RSRC_DIR
47+
+ "org/unicode/text/UCD/AdditionComparisons/");
4748
if (!directory.exists()) {
4849
throw new IOException(
49-
"UnicodeTools.UNICODETOOLS_REPO_DIR="
50-
+ UnicodeTools.UNICODETOOLS_REPO_DIR
51-
+ ", "
52-
+ "UnicodeTools.UNICODETOOLS_DIR="
53-
+ UnicodeTools.UNICODETOOLS_DIR
54-
+ ", "
55-
+ "UnicodeTools.UNICODETOOLS_RSRC_DIR="
56-
+ UnicodeTools.UNICODETOOLS_RSRC_DIR
57-
+ ", "
58-
+ "Settings.SRC_DIR="
59-
+ Settings.SRC_DIR
50+
"Settings.UnicodeTools.UNICODETOOLS_RSRC_DIR="
51+
+ Settings.UnicodeTools.UNICODETOOLS_RSRC_DIR
6052
+ ", "
6153
+ directory.getAbsolutePath()
62-
+ " which does not exist");
54+
+ " does not exist");
6355
}
6456
int rc = 0;
6557
for (var file : directory.listFiles()) {

0 commit comments

Comments
 (0)