Home | History | Annotate | Download | only in vogar

Lines Matching defs:expectation

51  * <p>If an outcome matches both an outcome expectation and a failure
52 * expectation, the outcome expectation will be returned.
60 /** The expectation of a general successful run. */
61 private static final Expectation SUCCESS = new Expectation(Result.SUCCESS, MATCH_ALL_PATTERN,
66 private final Map<String, Expectation> outcomes = new LinkedHashMap<String, Expectation>();
67 private final Map<String, Expectation> failures = new LinkedHashMap<String, Expectation>();
73 * returns a value for all names, even if no explicit expectation was set.
75 public Expectation get(String name) {
76 Expectation byName = getByNameOrPackage(name);
89 public Expectation get(Outcome outcome) {
90 Expectation exactNameMatch = outcomes.get(outcome.getName());
95 for (Map.Entry<String, Expectation> entry : failures.entrySet()) {
101 Expectation byName = getByNameOrPackage(outcome.getName());
105 private Expectation getByNameOrPackage(String name) {
107 Expectation expectation = outcomes.get(name);
108 if (expectation != null) {
109 return expectation;
132 * Create an {@link ExpectationStore} that is populated from expectation resources.
134 * @param expectationResources the set of paths to the expectation resources; the paths are
211 // expectations in our entire expectation store that have this tag.
244 Expectation expectation = new Expectation(result, pattern, tags, description, buganizerBug);
245 Map<String, Expectation> map = isFailure ? failures : outcomes;
247 if (map.put(name, expectation) != null) {
276 Iterable<Expectation> allExpectations = Iterables.concat(outcomes.values(), failures.values());
280 for (Expectation expectation : allExpectations) {
281 if (expectation.getBug() != -1) {
282 bugs.add(Long.toString(expectation.getBug()));
302 for (Expectation expectation : allExpectations) {
303 if (openBugsSet.contains(expectation.getBug())) {
304 expectation.setBugIsOpen(true);
309 public Map<String, Expectation> getAllOutComes() {
313 public Map<String, Expectation> getAllFailures() {