MCPcopy Create free account
hub / github.com/oracle/coherence / fillRandom

Method fillRandom

prj/coherence-testing-data/src/main/java/data/Trade.java:200–209  ·  view source on GitHub ↗

Fill the specified Map with random data.

(Map map, int cnt)

Source from the content-addressed store, hash-verified

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.

Callers 5

mainMethod · 0.95
groupAggregatorMethod · 0.95
doTestRequestTimeoutMethod · 0.95
reloadCacheMethod · 0.95

Calls 3

makeRandomTradeMethod · 0.95
putMethod · 0.65
valueOfMethod · 0.45

Tested by

no test coverage detected