Changeset 7088 in josm for trunk/test/functional/org/openstreetmap
- Timestamp:
- 2014-05-09T14:15:51+02:00 (11 years ago)
- Location:
- trunk/test/functional/org/openstreetmap/josm/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java
r7082 r7088 17 17 import java.text.MessageFormat; 18 18 import java.util.ArrayList; 19 import java.util.Properties;20 19 import java.util.logging.Logger; 21 20 … … 110 109 111 110 private static DataSet testDataSet; 112 private static Properties testProperties;113 111 114 112 /** … … 142 140 File dataSetCacheOutputFile = new File(System.getProperty("java.io.tmpdir"), MultiFetchServerObjectReaderTest.class.getName() + ".dataset"); 143 141 144 // make sure we don't upload to production145 //146 String url = OsmApi.getOsmApi().getBaseUrl().toLowerCase().trim();147 if (url.startsWith("http://www.openstreetmap.org") || url.startsWith("http://api.openstreetmap.org")148 || url.startsWith("https://www.openstreetmap.org") || url.startsWith("https://api.openstreetmap.org")) {149 fail(MessageFormat.format("configured url ''{0}'' seems to be a productive url, aborting.", url));150 }151 152 142 String p = System.getProperties().getProperty("useCachedDataset"); 153 143 if (p != null && Boolean.parseBoolean(p.trim().toLowerCase())) { … … 188 178 @Before 189 179 public void setUp() throws IOException, IllegalDataException { 190 File f = new File( testProperties.getProperty("test.functional.tempdir"), MultiFetchServerObjectReaderTest.class.getName() + ".dataset");180 File f = new File(System.getProperty("java.io.tmpdir"), MultiFetchServerObjectReaderTest.class.getName() + ".dataset"); 191 181 logger.info(MessageFormat.format("reading cached dataset ''{0}''", f.toString())); 192 182 ds = new DataSet(); -
trunk/test/functional/org/openstreetmap/josm/io/UploadStrategySelectionPanelTest.java
r6643 r7088 12 12 import javax.swing.JTextField; 13 13 14 import org.junit.Ignore; 14 15 import org.openstreetmap.josm.Main; 15 16 import org.openstreetmap.josm.gui.io.UploadStrategySelectionPanel; 16 17 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 17 18 19 @Ignore 18 20 public class UploadStrategySelectionPanelTest extends JFrame { 19 21 … … 50 52 return pnl; 51 53 } 52 54 53 55 /** 54 56 * Constructs a new {@code UploadStrategySelectionPanelTest}.
Note:
See TracChangeset
for help on using the changeset viewer.