1 package net.avcompris.base.testutil.processes;
2
3 import static com.google.common.base.Preconditions.checkNotNull;
4
5 import java.util.ArrayList;
6 import java.util.HashMap;
7 import java.util.List;
8 import java.util.Map;
9
10 class ProcessInstance {
11
12 public ProcessInstance(final AbstractProcess<?, ?> process) {
13
14 this.process = checkNotNull(process, "process");
15 }
16
17 public final AbstractProcess<?, ?> process;
18
19
20
21
22 public final List<Throwable> errors = new ArrayList<Throwable>();
23
24
25
26
27
28
29
30
31 public final Map<String, List<Throwable>> methodErrors = new HashMap<String, List<Throwable>>();
32
33
34
35
36
37
38
39
40 public final Map<String, List<AssertionError>> methodFailures = new HashMap<String, List<AssertionError>>();
41
42
43
44
45
46
47
48
49 public final Map<String, List<ProcessEntryResult>> processEntryResults = new HashMap<String, List<ProcessEntryResult>>();
50 }