Changeset 8459 in josm
- Timestamp:
- 2015-06-03T13:24:59+02:00 (10 years ago)
- Location:
- trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AlignInLineAction.java
r8443 r8459 38 38 * Case 4.1: Only nodes selected, part of a non-closed way: align these nodes on the line passing through the 39 39 * extremity nodes (most distant in the way sequence). See https://josm.openstreetmap.de/ticket/9605#comment:3 40 * Case 4.2: Only nodes selected, part of a closed way: align these nodes on the line passing through the most distant 41 * nodes. 42 * Case 4.3: Only nodes selected, part of multiple ways: align these nodes on the line passing through the most distant 43 * nodes. 40 * Case 4.2: Only nodes selected, part of a closed way: align these nodes on the line passing through the most distant nodes. 41 * Case 4.3: Only nodes selected, part of multiple ways: align these nodes on the line passing through the most distant nodes. 44 42 * </pre> 45 43 * … … 85 83 */ 86 84 private Node[] nodePairFurthestApart(List<Node> nodes) { 87 Node nodea = null;88 Node nodeb = null;89 90 85 // Detect if selected nodes are on the same way. 91 86 … … 111 106 return nodeFurthestAppart(nodes); 112 107 } 108 109 Node nodea = null; 110 Node nodeb = null; 113 111 114 112 // The way is open, align nodes on the line passing through the extremity nodes (most distant in the way … … 231 229 * @param ways Collection of way to align 232 230 * @return Command that perform action 233 * @throws InvalidSelection 231 * @throws InvalidSelection if a polygon is selected, or if a node is used by 3 or more ways 234 232 */ 235 233 private Command alignMultiWay(Collection<Way> ways) throws InvalidSelection { … … 268 266 * @param refWays Ways where useful lines will be searched 269 267 * @return List of useful lines 270 * @throws InvalidSelection 268 * @throws InvalidSelection if a node got more than 4 neighbours (self-crossing way) 271 269 */ 272 270 private List<Line> getInvolvedLines(Node node, List<Way> refWays) throws InvalidSelection { … … 314 312 } 315 313 } else 316 throw new InvalidSelection(); 314 throw new InvalidSelection("cannot treat more than 4 neighbours, got "+neighbors.size()); 317 315 } 318 316 return lines; … … 324 322 * @param lines Lines to align node on 325 323 * @return Command that perform action 326 * @throws InvalidSelection 324 * @throws InvalidSelection if more than 2 lines 327 325 */ 328 326 private Command alignSingleNode(Node node, List<Line> lines) throws InvalidSelection { … … 351 349 /** 352 350 * Init a line by 2 nodes. 353 * @param first On point of the line 351 * @param first One point of the line 354 352 * @param last Other point of the line 355 * @throws InvalidSelection 353 * @throws InvalidSelection if nodes have same coordinates 356 354 */ 357 355 public Line(Node first, Node last) throws InvalidSelection { … … 364 362 double norm = Math.sqrt(a*a + b*b); 365 363 if (norm == 0) 366 // Nodes have same coordinates ! 367 throw new InvalidSelection(); 364 throw new InvalidSelection("Nodes have same coordinates!"); 368 365 a /= norm; 369 366 b /= norm; … … 374 371 * Init a line equation from a way. 375 372 * @param way Use extremity of this way to compute line equation 376 * @throws InvalidSelection 373 * @throws InvalidSelection if nodes have same coordinates 377 374 */ 378 375 public Line(Way way) throws InvalidSelection { … … 395 392 * @param other Second line for intersection 396 393 * @return The command that move the node 397 * @throws InvalidSelection 394 * @throws InvalidSelection if two parallels ways found 398 395 */ 399 396 public Command intersectionCommand(Node n, Line other) throws InvalidSelection { -
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r8443 r8459 96 96 * Combine multiple ways into one. 97 97 * @param ways the way to combine to one way 98 * @return null if ways cannot be combined. Otherwise returns the combined 99 * ways and the commands to combine 100 * @throws UserCancelException 98 * @return null if ways cannot be combined. Otherwise returns the combined ways and the commands to combine 99 * @throws UserCancelException if the user cancelled a dialog. 101 100 */ 102 101 public static Pair<Way, Command> combineWaysWorker(Collection<Way> ways) throws UserCancelException { … … 111 110 ways = new LinkedHashSet<>(ways); 112 111 113 // try to build a new way which includes all the combined 114 // ways 112 // try to build a new way which includes all the combined ways 115 113 // 116 114 NodeGraph graph = NodeGraph.createNearlyUndirectedGraphFromNodeWays(ways); … … 641 639 // graph built up from way segments is likely to include such 642 640 // nodes, unless all ways are closed. 643 // In the worst case this loops over all nodes which is 644 // very slow for large ways. 641 // In the worst case this loops over all nodes which is very slow for large ways. 645 642 // 646 643 Set<Node> nodes = getTerminalNodes(); -
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r8449 r8459 1002 1002 * Collects outer way and corresponding inner ways from all boundaries. 1003 1003 * @param level depth level 1004 * @param boundaryWays 1005 * @return the outermostWay. 1004 * @param boundaryWays list of joined boundaries to search in 1005 * @return the outermost Way. 1006 1006 */ 1007 1007 private List<PolygonLevel> findOuterWaysImpl(int level, Collection<AssembledPolygon> boundaryWays) { -
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r8308 r8459 80 80 * Restore the current history from the preferences 81 81 * 82 * @param cbHistory 82 * @param cbHistory the history combo box 83 83 */ 84 84 protected void restoreUploadAddressHistory(HistoryComboBox cbHistory) { … … 93 93 /** 94 94 * Remind the current history in the preferences 95 * @param cbHistory 95 * @param cbHistory the history combo box 96 96 */ 97 97 protected void remindUploadAddressHistory(HistoryComboBox cbHistory) { -
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r8443 r8459 419 419 * heading of the entire way. 420 420 * @param pInitialDirection initial direction 421 * @throws InvalidUserInputException 421 * @throws InvalidUserInputException if selected ways have an angle different from 90 or 180 degrees 422 422 */ 423 423 public void calcDirections(Direction pInitialDirection) throws InvalidUserInputException { -
trunk/src/org/openstreetmap/josm/actions/RestartAction.java
r8390 r8459 75 75 /** 76 76 * Restarts the current Java application 77 * @throws IOException 77 * @throws IOException in case of any error 78 78 */ 79 79 public static void restartJOSM() throws IOException { -
trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java
r8443 r8459 166 166 * 167 167 * @param w the way to simplify 168 * @param threshold the max error threshold 168 169 * @return The sequence of commands to run 169 170 * @since 6411 … … 187 188 } 188 189 // ... and simplify them 189 buildSimplifiedNodeList(w.getNodes(), lower, Math.min(w.getNodesCount()-1, i), threshold,newNodes); 190 buildSimplifiedNodeList(w.getNodes(), lower, Math.min(w.getNodesCount()-1, i), threshold, newNodes); 190 191 lower=i; 191 192 i++; … … 214 215 * @param from the lower index 215 216 * @param to the upper index 216 * @param threshold 217 * @param threshold the max error threshold 217 218 */ 218 219 protected void buildSimplifiedNodeList(List<Node> wnew, int from, int to, double threshold, List<Node> simplifiedNodes) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWays.java
r8378 r8459 126 126 /** 127 127 * Offsets the way(s) d units. Positive d means to the left (relative to the reference way) 128 * @param d 128 * @param d offset 129 129 */ 130 130 public void changeOffset(double d) { -
trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
r8433 r8459 114 114 /** 115 115 * @param cache cache instance that we will work on 116 * @param headers 117 * @param readTimeout 118 * @param connectTimeout 119 * @param downloadJobExecutor 116 * @param headers HTTP headers to be sent together with request 117 * @param readTimeout when connecting to remote resource 118 * @param connectTimeout when connecting to remote resource 119 * @param downloadJobExecutor that will be executing the jobs 120 120 */ 121 121 public JCSCachedTileLoaderJob(ICacheAccess<K,V> cache, … … 134 134 /** 135 135 * @param cache cache instance that we will work on 136 * @param headers 137 * @param readTimeout 138 * @param connectTimeout 136 * @param headers HTTP headers to be sent together with request 137 * @param readTimeout when connecting to remote resource 138 * @param connectTimeout when connecting to remote resource 139 139 */ 140 140 public JCSCachedTileLoaderJob(ICacheAccess<K, V> cache, -
trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
r8456 r8459 1023 1023 1024 1024 /** 1025 * Sets the Map of <header name, header value> that if any of this header1025 * Sets the map of <header name, header value> that if any of this header 1026 1026 * will be returned, then this tile will be treated as "no tile at this zoom level" 1027 1027 * 1028 * @param noTileHeaders 1028 * @param noTileHeaders Map of <header name, header value> which will be treated as "no tile at this zoom level" 1029 1029 * @since 8344 1030 1030 */ … … 1039 1039 1040 1040 /** 1041 * Returns the map <header name, metadata key> indicating, which HTTP headers should 1041 * Returns the map of <header name, metadata key> indicating, which HTTP headers should 1042 1042 * be moved to metadata 1043 1043 * 1044 * @param metadataHeaders 1044 * @param metadataHeaders map of <header name, metadata key> indicating, which HTTP headers should be moved to metadata 1045 1045 * @since 8418 1046 1046 */ -
trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoader.java
r8403 r8459 29 29 public class TMSCachedTileLoader implements TileLoader, CachedTileLoader, TileCache { 30 30 31 private ICacheAccess<String, BufferedImageCacheEntry> cache; 32 private int connectTimeout; 33 private int readTimeout; 34 private Map<String, String> headers; 35 private TileLoaderListener listener; 31 private final ICacheAccess<String, BufferedImageCacheEntry> cache; 32 private final int connectTimeout; 33 private final int readTimeout; 34 private final Map<String, String> headers; 35 private final TileLoaderListener listener; 36 36 private static final String PREFERENCE_PREFIX = "imagery.tms.cache."; 37 37 38 /** 38 * how many object on disk should be stored for TMS region. Average tile size is about 20kb 39 * how many object on disk should be stored for TMS region. Average tile size is about 20kb. 25000 is around 500MB under this assumption 39 40 */ 40 public static final IntegerProperty MAX_OBJECTS_ON_DISK = new IntegerProperty(PREFERENCE_PREFIX + "max_objects_disk", 25000); // 25000 is around 500MB under this assumptions41 public static final IntegerProperty MAX_OBJECTS_ON_DISK = new IntegerProperty(PREFERENCE_PREFIX + "max_objects_disk", 25000); 41 42 42 43 /** … … 50 51 public static final IntegerProperty HOST_LIMIT = new IntegerProperty("imagery.tms.tmsloader.maxjobsperhost", 6); 51 52 52 53 53 /** 54 54 * separate from JCS thread pool for TMS loader, so we can have different thread pools for default JCS … … 56 56 */ 57 57 private static ThreadPoolExecutor DEFAULT_DOWNLOAD_JOB_DISPATCHER = getThreadPoolExecutor(); 58 59 private final ThreadPoolExecutor downloadExecutor = DEFAULT_DOWNLOAD_JOB_DISPATCHER; 58 60 59 61 private static ThreadPoolExecutor getThreadPoolExecutor() { … … 68 70 } 69 71 70 private ThreadPoolExecutor downloadExecutor = DEFAULT_DOWNLOAD_JOB_DISPATCHER;71 72 72 /** 73 73 * Constructor … … 76 76 * @param connectTimeout to remote resource 77 77 * @param readTimeout to remote resource 78 * @param headers to be sent along with request 78 * @param headers HTTP headers to be sent along with request 79 79 * @param cacheDir where cache file shall reside 80 80 * @throws IOException when cache initialization fails -
trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java
r8433 r8459 52 52 /** 53 53 * Constructor for creating a job, to get a specific tile from cache 54 * @param listener 54 * @param listener Tile loader listener 55 55 * @param tile to be fetched from cache 56 56 * @param cache object 57 57 * @param connectTimeout when connecting to remote resource 58 58 * @param readTimeout when connecting to remote resource 59 * @param headers to be sent together with request 59 * @param headers HTTP headers to be sent together with request 60 60 * @param downloadExecutor that will be executing the jobs 61 61 */ -
trunk/src/org/openstreetmap/josm/gui/FileDrop.java
r8443 r8459 34 34 import org.openstreetmap.josm.Main; 35 35 import org.openstreetmap.josm.actions.OpenFileAction; 36 import org.openstreetmap.josm.gui.FileDrop.TransferableObject; 36 37 37 38 /** … … 538 539 * {@link #DATA_FLAVOR}. 539 540 * 541 * @param fetcher The {@link Fetcher} that will return the data object 540 542 * @see Fetcher 541 * @param fetcher The {@link Fetcher} that will return the data object542 543 */ 543 544 public TransferableObject(Fetcher fetcher) { -
trunk/src/org/openstreetmap/josm/gui/MenuScroller.java
r8441 r8459 151 151 * @param interval the scroll interval, in milliseconds 152 152 * @param topFixedCount the number of items to fix at the top. May be 0. 153 * @return the MenuScroller 153 154 * @throws IllegalArgumentException if scrollCount or interval is 0 or 154 155 * negative or if topFixedCount is negative 155 * @return the MenuScroller156 156 * @since 7463 157 157 */ … … 167 167 * @param interval the scroll interval, in milliseconds 168 168 * @param topFixedCount the number of items to fix at the top. May be 0 169 * @return the MenuScroller 169 170 * @throws IllegalArgumentException if scrollCount or interval is 0 or 170 171 * negative or if topFixedCount is negative 171 * @return the MenuScroller172 172 * @since 7463 173 173 */ -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r8443 r8459 822 822 * 823 823 * Finally, if a node is not found at all, null is returned. 824 * @since 6065825 * @return A node within snap-distance to point p,826 * that is chosen by the algorithm described.827 824 * 828 825 * @param p the screen point … … 830 827 * give the nearest node that is tagged. 831 828 * @param preferredRefs primitives, whose nodes we prefer 829 * 830 * @return A node within snap-distance to point p, 831 * that is chosen by the algorithm described. 832 * @since 6065 832 833 */ 833 834 public final Node getNearestNode(Point p, Predicate<OsmPrimitive> predicate, … … 1009 1010 * The *result* depends on the current map selection state IF use_selected is true. 1010 1011 * 1012 * @param p the point for which to search the nearest segment. 1013 * @param predicate the returned object has to fulfill certain properties. 1014 * @param useSelected whether selected way segments should be preferred. 1015 * 1011 1016 * @return The nearest way segment to point p, 1012 1017 * and, depending on use_selected, prefers a selected way segment, if found. 1013 1018 * @see #getNearestWaySegments(Point, Collection, Predicate) 1014 *1015 * @param p the point for which to search the nearest segment.1016 * @param predicate the returned object has to fulfill certain properties.1017 * @param useSelected whether selected way segments should be preferred.1018 1019 */ 1019 1020 public final WaySegment getNearestWaySegment(Point p, Predicate<OsmPrimitive> predicate, boolean useSelected) { … … 1040 1041 * The *result* depends on the current map selection state IF use_selected is true. 1041 1042 * 1042 * @return The nearest way segment to point p,1043 * and, depending on use_selected, prefers a selected way segment, if found.1044 * Also prefers segments of ways that are related to one of preferredRefs primitives1045 * @see #getNearestWaySegments(Point, Collection, Predicate)1046 * @since 60651047 1043 * @param p the point for which to search the nearest segment. 1048 1044 * @param predicate the returned object has to fulfill certain properties. 1049 1045 * @param use_selected whether selected way segments should be preferred. 1050 1046 * @param preferredRefs - prefer segments related to these primitives, may be null 1047 * 1048 * @return The nearest way segment to point p, 1049 * and, depending on use_selected, prefers a selected way segment, if found. 1050 * Also prefers segments of ways that are related to one of preferredRefs primitives 1051 * 1052 * @see #getNearestWaySegments(Point, Collection, Predicate) 1053 * @since 6065 1051 1054 */ 1052 1055 public final WaySegment getNearestWaySegment(Point p, Predicate<OsmPrimitive> predicate, … … 1150 1153 * The *result* depends on the current map selection state. 1151 1154 * 1152 * @return The nearest way to point p,1153 * prefer a selected way if there are multiple nearest.1154 * @see #getNearestWaySegment(Point, Predicate)1155 *1156 1155 * @param p the point for which to search the nearest segment. 1157 1156 * @param predicate the returned object has to fulfill certain properties. 1157 * 1158 * @return The nearest way to point p, prefer a selected way if there are multiple nearest. 1159 * @see #getNearestWaySegment(Point, Predicate) 1158 1160 */ 1159 1161 public final Way getNearestWay(Point p, Predicate<OsmPrimitive> predicate) { … … 1249 1251 * Finally, if no nearest primitive is found at all, return null. 1250 1252 * 1253 * @param p The point on screen. 1254 * @param predicate the returned object has to fulfill certain properties. 1255 * @param use_selected whether to prefer primitives that are currently selected or referred by selected primitives 1256 * 1251 1257 * @return A primitive within snap-distance to point p, 1252 1258 * that is chosen by the algorithm described. 1253 1259 * @see #getNearestNode(Point, Predicate) 1254 1260 * @see #getNearestWay(Point, Predicate) 1255 *1256 * @param p The point on screen.1257 * @param predicate the returned object has to fulfill certain properties.1258 * @param use_selected whether to prefer primitives that are currently selected or referred by selected primitives1259 1261 */ 1260 1262 public final OsmPrimitive getNearestNodeOrWay(Point p, Predicate<OsmPrimitive> predicate, boolean use_selected) { … … 1346 1348 1347 1349 /** 1348 * The *result* does not depend on the current map selection state, 1349 * neither does the result *order*. 1350 * The *result* does not depend on the current map selection state, neither does the result *order*. 1350 1351 * It solely depends on the distance to point p. 1351 *1352 * @return a list of all objects that are nearest to point p and1353 * not in ignore or an empty list if nothing was found.1354 1352 * 1355 1353 * @param p The point on screen. 1356 1354 * @param ignore a collection of ways which are not to be returned. 1357 1355 * @param predicate the returned object has to fulfill certain properties. 1356 * 1357 * @return a list of all objects that are nearest to point p and 1358 * not in ignore or an empty list if nothing was found. 1358 1359 */ 1359 1360 public final List<OsmPrimitive> getAllNearest(Point p, … … 1395 1396 1396 1397 /** 1397 * The *result* does not depend on the current map selection state, 1398 * neither does the result *order*. 1398 * The *result* does not depend on the current map selection state, neither does the result *order*. 1399 1399 * It solely depends on the distance to point p. 1400 * 1401 * @param p The point on screen. 1402 * @param predicate the returned object has to fulfill certain properties. 1400 1403 * 1401 1404 * @return a list of all objects that are nearest to point p 1402 1405 * or an empty list if nothing was found. 1403 1406 * @see #getAllNearest(Point, Collection, Predicate) 1404 *1405 * @param p The point on screen.1406 * @param predicate the returned object has to fulfill certain properties.1407 1407 */ 1408 1408 public final List<OsmPrimitive> getAllNearest(Point p, Predicate<OsmPrimitive> predicate) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/Environment.java
r8419 r8459 148 148 * @param count count of nodes in parent way or members in parent relation 149 149 * @return A clone of this environment, with the specified child, index, and context set to {@code Context#LINK} 150 * @since 6175151 150 * @see #child 152 151 * @see #index 152 * @since 6175 153 153 */ 154 154 public Environment withChildAndIndexAndLinkContext(OsmPrimitive child, int index, int count) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r8440 r8459 578 578 * {@code sw}, {@code southwest}, {@code w}, {@code west}, {@code nw}, {@code northwest}. 579 579 * @param cardinal the angle in cardinal directions. 580 * @return the angle in radians 580 581 * @see RotationAngle#parseCardinalRotation(String) 581 * @return the angle in radians582 582 */ 583 583 public static Double cardinal_to_radians(String cardinal) { -
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r8449 r8459 411 411 * @return segmentP1 if it is the closest point, segmentP2 if it is the closest point, 412 412 * a new point if closest point is between segmentP1 and segmentP2. 413 * @see #closestPointToLine 413 414 * @since 3650 414 * @see #closestPointToLine415 415 */ 416 416 public static EastNorth closestPointToSegment(EastNorth segmentP1, EastNorth segmentP2, EastNorth point) { -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r8443 r8459 381 381 * Set image width 382 382 * @param width final width of the image 383 * @return the current object, for convenience 383 384 * @see #setSize 384 * @return the current object, for convenience385 385 */ 386 386 public ImageProvider setWidth(int width) { … … 392 392 * Set image height 393 393 * @param height final height of the image 394 * @return the current object, for convenience 394 395 * @see #setSize 395 * @return the current object, for convenience396 396 */ 397 397 public ImageProvider setHeight(int height) { … … 1353 1353 * @throws IllegalArgumentException if <code>input</code> is <code>null</code>. 1354 1354 * @throws IOException if an error occurs during reading. 1355 * @see BufferedImage#getProperty 1355 1356 * @since 7132 1356 * @see BufferedImage#getProperty1357 1357 */ 1358 1358 public static BufferedImage read(File input, boolean readMetadata, boolean enforceTransparency) throws IOException { -
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/NameMismatchTest.java
r8458 r8459 13 13 import org.openstreetmap.josm.data.validation.TestError; 14 14 15 /** 16 * JUnit Test of "Name mismatch" validation test. 17 */ 15 18 public class NameMismatchTest { 16 19 20 /** 21 * Setup test. 22 */ 17 23 @Before 18 24 public void setUp() { … … 26 32 } 27 33 34 /** 35 * Test "A name is missing, even though name:* exists." 36 */ 28 37 @Test 29 38 public void test0() { 30 39 final List<TestError> errors = test("node name:de=Europa"); 31 assertSame(errors.size() , 1);32 assertEquals( errors.get(0).getDescription(),"A name is missing, even though name:* exists.");40 assertSame(1, errors.size()); 41 assertEquals("A name is missing, even though name:* exists.", errors.get(0).getMessage()); 33 42 } 34 43 44 /** 45 * Test "Missing name:*={0}. Add tag with correct language key." 46 */ 35 47 @Test 36 48 public void test1() { 37 49 final List<TestError> errors = test("node name=Europe name:de=Europa"); 38 assertSame(errors.size() , 1);39 assertEquals( errors.get(0).getDescription(),"Missing name:*=Europe. Add tag with correct language key.");50 assertSame(1, errors.size()); 51 assertEquals("Missing name:*=Europe. Add tag with correct language key.", errors.get(0).getDescription()); 40 52 } 41 53 54 /** 55 * Test no error 56 */ 42 57 @Test 43 58 public void test2() { 44 59 final List<TestError> errors = test("node name=Europe name:de=Europa name:en=Europe"); 45 assertSame(errors.size() , 0);60 assertSame(0, errors.size()); 46 61 } 47 62 63 /** 64 * Various other tests 65 */ 48 66 @Test 49 67 public void test3() { 50 68 List<TestError> errors; 51 69 errors = test("node \"name\"=\"Italia - Italien - Italy\""); 52 assertSame(errors.size() , 0);70 assertSame(0, errors.size()); 53 71 errors = test("node name=\"Italia - Italien - Italy\" name:it=Italia"); 54 assertSame(errors.size() , 2);72 assertSame(2, errors.size()); 55 73 errors = test("node name=\"Italia - Italien - Italy\" name:it=Italia name:de=Italien"); 56 assertSame(errors.size() , 1);57 assertEquals( errors.get(0).getDescription(),"Missing name:*=Italy. Add tag with correct language key.");74 assertSame(1, errors.size()); 75 assertEquals("Missing name:*=Italy. Add tag with correct language key.", errors.get(0).getDescription()); 58 76 errors = test("node name=\"Italia - Italien - Italy\" name:it=Italia name:de=Italien name:en=Italy"); 59 assertSame(errors.size() , 0);77 assertSame(0, errors.size()); 60 78 } 61 79 }
Note:
See TracChangeset
for help on using the changeset viewer.