Changeset 13609 in josm for trunk


Ignore:
Timestamp:
2018-04-08T14:43:17+02:00 (6 years ago)
Author:
Don-vip
Message:

see #16129 - SonarQube/Surefire can't parse XML attributes longer than 524288 characters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java

    r13601 r13609  
    6565    private static final String PROJ_LIB_DIR = "data_nodist/projection";
    6666
     67    private static final int MAX_LENGTH = 524288;
     68
    6769    private static class RefEntry {
    6870        String code;
     
    361363        }
    362364        if (fail.length() > 0) {
    363             System.err.println(fail.toString());
    364             throw new AssertionError(fail.toString());
     365            String s = fail.toString();
     366            if (s.length() > MAX_LENGTH) {
     367                // SonarQube/Surefire can't parse XML attributes longer than 524288 characters
     368                s = s.substring(0, MAX_LENGTH - 4) + "...";
     369            }
     370            System.err.println(s);
     371            throw new AssertionError(s);
    365372        }
    366373    }
Note: See TracChangeset for help on using the changeset viewer.