use of func.lib.Outputs in project mkgmap by openstreetmap.
the class ArgsTest method testNoDescription.
@Test
public void testNoDescription() {
Outputs op = TestUtils.run("--description", Args.TEST_RESOURCE_OSM + "uk-test-1.osm.gz");
op.checkNoError();
}
use of func.lib.Outputs in project mkgmap by openstreetmap.
the class ArgsTest method testListStyles.
@Test
public void testListStyles() {
Outputs op = TestUtils.run("--style-file=test/resources/teststyles", "--list-styles");
op.checkNoError();
op.checkOutput("empty", "main", "simple", "derived", "2.2: A simple test style");
checkNoStdFile();
}
use of func.lib.Outputs in project mkgmap by openstreetmap.
the class GmapsuppTest method testWarningOnMismatchedCodePages.
/**
* If there are mis-matching code-pages in the input files there should be a warning.
*/
@Test
public void testWarningOnMismatchedCodePages() {
TestUtils.registerFile("osmmap.img");
Main.mainNoSystemExit(Args.TEST_STYLE_ARG, "--route", "--code-page=1256", Args.TEST_RESOURCE_OSM + "uk-test-1.osm.gz", "--latin1", Args.TEST_RESOURCE_OSM + "uk-test-2.osm.gz");
Outputs outputs = TestUtils.run(Args.TEST_STYLE_ARG, "--gmapsupp", "--index", "63240001.img", "63240002.img");
outputs.checkError("different code page");
}
use of func.lib.Outputs in project mkgmap by openstreetmap.
the class ArgsTest method testHelp.
@Test
public void testHelp() {
Outputs outputs = TestUtils.run("--help");
outputs.checkOutput("--help=options", "--help=links");
outputs.checkNoError();
checkNoStdFile();
}
use of func.lib.Outputs in project mkgmap by openstreetmap.
the class ArgsTest method testHelpUnknown.
@Test
public void testHelpUnknown() {
Outputs outputs = TestUtils.run("--help=unknown-help-option");
outputs.checkNoError();
outputs.checkOutput("Could not find", "unknown-help-option");
checkNoStdFile();
}
Aggregations