mirror of
https://github.com/google/nomulus.git
synced 2025-05-29 17:00:11 +02:00
There is a big mix of different "load Resources" from different libraries depending on where you were and what type of resource you want. Now there is a clear hirarchy: ResourceUtils: for use in actual (non-test) code, reads a file from a context directory TestDataHelper (uses ResourceUtils): for use in tests, reads a file from a context directory + "/testdata". Also caches the resource so calling it multiple times with the same file will not read the file multiple times. Library specific helpers (e.g. ToolsTestData) (uses TestDataHelper): for use in that library's tests only, reads from a specific testdata directory. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=177027533 |
||
---|---|---|
.. | ||
testdata | ||
BUILD | ||
DateAdapterTest.java | ||
UtcDateTimeAdapterTest.java | ||
XmlTestUtils.java | ||
XmlTestUtilsTest.java |