MCPcopy Create free account
hub / github.com/DiUS/java-faker / buzzword

Method buzzword

src/main/java/com/github/javafaker/Company.java:35–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 }
34
35 public String buzzword() {
36 @SuppressWarnings("unchecked")
37 List<List<String>> buzzwordLists = (List<List<String>>) faker.fakeValuesService().fetchObject("company.buzzwords");
38 List<String> buzzwords = new ArrayList<String>();
39 for (List<String> buzzwordList : buzzwordLists) {
40 buzzwords.addAll(buzzwordList);
41 }
42 return buzzwords.get(faker.random().nextInt(buzzwords.size()));
43 }
44
45 /**
46 * Generate a buzzword-laden catch phrase.

Callers 1

testBuzzwordMethod · 0.80

Calls 6

fetchObjectMethod · 0.80
fakeValuesServiceMethod · 0.80
nextIntMethod · 0.80
getMethod · 0.65
randomMethod · 0.45
sizeMethod · 0.45

Tested by 1

testBuzzwordMethod · 0.64