Search in sources :

Example 1 with Outputs

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();
}
Also used : Outputs(func.lib.Outputs) Test(org.junit.Test)

Example 2 with Outputs

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();
}
Also used : Outputs(func.lib.Outputs) Test(org.junit.Test)

Example 3 with Outputs

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");
}
Also used : Outputs(func.lib.Outputs) Test(org.junit.Test)

Example 4 with Outputs

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();
}
Also used : Outputs(func.lib.Outputs) Test(org.junit.Test)

Example 5 with Outputs

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();
}
Also used : Outputs(func.lib.Outputs) Test(org.junit.Test)

Aggregations

Outputs (func.lib.Outputs)9 Test (org.junit.Test)9 FileSystem (uk.me.parabola.imgfmt.fs.FileSystem)2 File (java.io.File)1 TREFileReader (uk.me.parabola.imgfmt.app.trergn.TREFileReader)1 DirectoryEntry (uk.me.parabola.imgfmt.fs.DirectoryEntry)1 ImgChannel (uk.me.parabola.imgfmt.fs.ImgChannel)1