Home | History | Annotate | Download | only in vogar

Lines Matching defs:expectation

49  * <p>If an outcome matches both an outcome expectation and a failure
50 * expectation, the outcome expectation will be returned.
54 private final Map<String, Expectation> outcomes = new LinkedHashMap<String, Expectation>();
55 private final Map<String, Expectation> failures = new LinkedHashMap<String, Expectation>();
61 * returns a value for all names, even if no explicit expectation was set.
63 public Expectation get(String name) {
64 Expectation byName = getByNameOrPackage(name);
65 return byName != null ? byName : Expectation.SUCCESS;
77 public Expectation get(Outcome outcome) {
78 Expectation exactNameMatch = outcomes.get(outcome.getName());
83 for (Map.Entry<String, Expectation> entry : failures.entrySet()) {
89 Expectation byName = getByNameOrPackage(outcome.getName());
90 return byName != null ? byName : Expectation.SUCCESS;
93 private Expectation getByNameOrPackage(String name) {
95 Expectation expectation = outcomes.get(name);
96 if (expectation != null) {
97 return expectation;
145 Pattern pattern = Expectation.MATCH_ALL_PATTERN;
191 Expectation expectation = new Expectation(result, pattern, tags, description, buganizerBug);
192 Map<String, Expectation> map = isFailure ? failures : outcomes;
194 if (map.put(name, expectation) != null) {
223 Iterable<Expectation> allExpectations = Iterables.concat(outcomes.values(), failures.values());
227 for (Expectation expectation : allExpectations) {
228 if (expectation.getBug() != -1) {
229 bugs.add(Long.toString(expectation.getBug()));
249 for (Expectation expectation : allExpectations) {
250 if (openBugsSet.contains(expectation.getBug())) {
251 expectation.setBugIsOpen(true);