Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
Map<String, TestEntity> com.griddynamics.jagger.engine.e1.services.DefaultDataService.getTestsByName ( Collection< String >  sessionIds,
String  testName 
)

Returns map, where key is session's id and value is test entity with specify name.

Parameters
sessionIds- session's ids
testName- name of test
Returns
map of <session id, test entity> pairs
Author
Gribov Kirill

Implements com.griddynamics.jagger.engine.e1.services.DataService.

Definition at line 118 of file DefaultDataService.java.

References com.griddynamics.jagger.engine.e1.services.DefaultDataService.getTestsWithName().

Referenced by com.griddynamics.jagger.engine.e1.services.DefaultDataService.getTestByName().

118  {
119  Map<String, Set<TestEntity>> tests = getTestsWithName(sessionIds, testName, SESSION_MATCHING_SETUP);
120 
121  Map<String, TestEntity> result = new HashMap<String, TestEntity>(tests.size());
122 
123  for (Map.Entry<String, Set<TestEntity>> entry : tests.entrySet()) {
124  Set<TestEntity> testEntities = entry.getValue();
125  if (!testEntities.isEmpty()) {
126  result.put(entry.getKey(), testEntities.iterator().next());
127  }
128  }
129 
130  return result;
131  }

Here is the call graph for this function:

Here is the caller graph for this function: