Fill the specified Map with random data.
(Map map, int cnt)
| 198 | * Fill the specified Map with random data. |
| 199 | */ |
| 200 | public static void fillRandom(Map map, int cnt) |
| 201 | { |
| 202 | // generate test data; |
| 203 | // for every 16 entries there will be one parent with one child |
| 204 | // and one parent with two children |
| 205 | for (int i = 0; i < cnt; ++i) |
| 206 | { |
| 207 | map.put(Integer.valueOf(i), makeRandomTrade(i)); |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | /** |
| 212 | * Make a Trade object for the specified Id with random data. |
no test coverage detected