Changeset 19655 in josm for trunk/test


Ignore:
Timestamp:
2026-10-22T17:13:42+02:00 (6 days ago)
Author:
stoecker
Message:

fix #24951 - Fix Sonar issues in recent Grid Layer and OAuth - patches by DanProgs & wangi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/actions/GridActionsTest.java

    r19640 r19655  
    165165
    166166            ds.setSelected();
    167             assertNull(AlignGridRotationAction.getSelectedDirection(ds));
     167            assertEquals(0, AlignGridRotationAction.getSelectedDirection(ds).length);
    168168            AlignGridRotationAction action = new AlignGridRotationAction();
    169169            assertFalse(action.isEnabled());
    170170            ds.setSelected(a);
    171             assertNull(AlignGridRotationAction.getSelectedDirection(ds));
     171            assertEquals(0, AlignGridRotationAction.getSelectedDirection(ds).length);
    172172            assertFalse(action.isEnabled());
    173173            ds.setSelected(a, b, c);
    174             assertNull(AlignGridRotationAction.getSelectedDirection(ds));
     174            assertEquals(0, AlignGridRotationAction.getSelectedDirection(ds).length);
    175175            assertFalse(action.isEnabled());
    176176
Note: See TracChangeset for help on using the changeset viewer.