| 1 | /* |
| 2 | * Copyright (C) 2008 Steve Ratcliffe |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * |
| 14 | * Author: Steve Ratcliffe |
| 15 | * Create date: 11-Jan-2009 |
| 16 | */ |
| 17 | package func.sources; |
| 18 | |
| 19 | import uk.me.parabola.mkgmap.main.Main; |
| 20 | |
| 21 | import func.Base; |
| 22 | import org.junit.Test; |
| 23 | |
| 24 | /** |
| 25 | * For the test data sources. |
| 26 | * |
| 27 | * @author Steve Ratcliffe |
| 28 | */ |
| 29 | public class TestSourceTest extends Base { |
| 30 | /** |
| 31 | * The test map that includes all elements. |
| 32 | */ |
| 33 | @Test |
| 34 | public void testAllElements() { |
| 35 | checkNoStdFile(); |
| 36 | Main.mainNoSystemExit("test-map:all-elements"); |
| 37 | checkStdFile(); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * The test map that includes all kinds of points. |
| 42 | */ |
| 43 | @Test |
| 44 | public void testAllPoints() { |
| 45 | Main.mainNoSystemExit("test-map:test-points"); |
| 46 | checkStdFile(); |
| 47 | } |
| 48 | } |