Changeset 2748 in josm for trunk/test


Ignore:
Timestamp:
2010-01-06T20:35:56+01:00 (15 years ago)
Author:
Gubaer
Message:

new: JOSM now supports OAuth

See also online help for server preferences and new OAuth Authorisation Wizard

Location:
trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/config/test-functional-env.properties

    r1806 r2748  
    99# This is the home directory for JOSM plugins: ${josm.home}\plugins\*.jar
    1010#
    11 josm.home=C:\\data\\projekte\\osm\\tag-editor-plugin
     11josm.home=C:\\data\\projekte\\osm\\josm-dev
    1212
    1313
     
    1616#   temporary results
    1717#
    18 test.functional.tempdir=C:\\data\\projekte\\eclipse-3.4.1-ws\\JOSM-1769\\test\\data\\temp
     18test.functional.tempdir=C:\\data\\projekte\\osm\\josm-dev\\temp
    1919
  • trunk/test/functional/org/openstreetmap/josm/fixtures/JOSMFixture.java

    r2600 r2748  
    1414import org.openstreetmap.josm.data.projection.Mercator;
    1515import org.openstreetmap.josm.io.OsmApi;
     16import org.openstreetmap.josm.tools.I18n;
    1617
    1718public class JOSMFixture {
     
    4243        } catch(Exception e){
    4344            logger.log(Level.SEVERE, MessageFormat.format("failed to load property file ''{0}''", testPropertiesResourceName));
    44             fail(MessageFormat.format("failed to load property file ''{0}''", testPropertiesResourceName));
     45            fail(MessageFormat.format("failed to load property file ''{0}''. \nMake sure the path ''$project_root/test/config'' is on the classpath.", testPropertiesResourceName));
    4546        }
    4647
     
    5354            File f = new File(josmHome);
    5455            if (! f.exists() || ! f.canRead()) {
    55                 fail(MessageFormat.format("property ''{0}'' points to ''{1}'' which is either not existing or not readable", "josm.home", josmHome));
     56                fail(MessageFormat.format("property ''{0}'' points to ''{1}'' which is either not existing or not readable.\nEdit ''{2}'' and update the value ''josm.home''. ", "josm.home", josmHome,testPropertiesResourceName ));
    5657            }
    5758        }
    5859        System.setProperty("josm.home", josmHome);
     60        I18n.init();
     61        // initialize the plaform hook, and
     62        Main.determinePlatformHook();
     63        // call the really early hook before we anything else
     64        Main.platform.preStartupHook();
     65
    5966        Main.pref.init(false);
    6067
Note: See TracChangeset for help on using the changeset viewer.