Changeset 7088 in josm
- Timestamp:
- 2014-05-09T14:15:51+02:00 (10 years ago)
- Location:
- trunk/test
- Files:
-
- 3 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}. -
trunk/test/unit/org/openstreetmap/josm/gui/conflict/properties/PropertiesMergeModelTest.java
r7081 r7088 25 25 public class PropertiesMergeModelTest { 26 26 27 static public class ObserverTestimplements Observer {27 public static abstract class TestObserver implements Observer { 28 28 public int numInvocations; 29 29 … … 33 33 } 34 34 35 public void test() { 36 } 35 public abstract void test(); 37 36 38 37 public void assertNumInvocations(int count) { … … 112 111 // decide KEEP_MINE and ensure notification via Observable 113 112 // 114 ObserverTestobserverTest;113 TestObserver observerTest; 115 114 model.addObserver( 116 observerTest = new ObserverTest() {115 observerTest = new TestObserver() { 117 116 @Override 118 117 public void test() { … … 129 128 model.deleteObserver(observerTest); 130 129 model.addObserver( 131 observerTest = new ObserverTest() {130 observerTest = new TestObserver() { 132 131 @Override 133 132 public void test() {
Note:
See TracChangeset
for help on using the changeset viewer.