use of org.terasology.engine.SimpleUri in project Terasology by MovingBlocks.
the class TranslationFormatTests method testEmptyDataGenRoot.
@Test
public void testEmptyDataGenRoot() throws IOException, InvalidAssetFilenameException {
AssetDataFile assetDataFile = mockAssetDataFile("menu.lang", "{}".getBytes(StandardCharsets.UTF_8));
ResourceUrn urn = createUrnFromFile(format, assetDataFile);
TranslationData data = format.load(urn, Collections.singletonList(assetDataFile));
Assert.assertEquals(new SimpleUri("engine:menu"), data.getProjectUri());
Assert.assertEquals(Locale.ROOT, data.getLocale());
}
Aggregations