Ticket #16010: v2-0020-PluginPreferenceTest-add-.platform-option-to-JOSM.patch

File v2-0020-PluginPreferenceTest-add-.platform-option-to-JOSM.patch, 1.3 KB (added by ris, 11 months ago)
  • test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceTest.java

    From 51c9be21da2444d62ea4e37957b3d2b47ffe9e95 Mon Sep 17 00:00:00 2001
    From: Robert Scott <code@humanleg.org.uk>
    Date: Fri, 27 Apr 2018 22:26:31 +0100
    Subject: [PATCH v2 20/28] PluginPreferenceTest: add .platform() option to
     JOSMTestRules
    
    This omission was clearly masked by previous tests in the test run
    initializing this, when run alone it fails.
    ---
     .../openstreetmap/josm/gui/preferences/plugin/PluginPreferenceTest.java | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceTest.java b/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceTest.java
    index dc2c05575..973afa7b4 100644
    a b public class PluginPreferenceTest { 
    3333     */
    3434    @Rule
    3535    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    36     public JOSMTestRules test = new JOSMTestRules().preferences().assertionsInEDT();
     36    public JOSMTestRules test = new JOSMTestRules().preferences().assertionsInEDT().platform();
    3737
    3838    /**
    3939     * Unit test of {@link PluginPreference#PluginPreference}.