1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
17
17
package org .springframework .test .context .support ;
18
18
19
19
import org .springframework .core .Ordered ;
20
+ import org .springframework .test .context .TestContext ;
20
21
import org .springframework .test .context .TestExecutionListener ;
21
22
22
23
/**
23
24
* Abstract {@linkplain Ordered ordered} implementation of the
24
25
* {@link TestExecutionListener} API.
25
26
*
26
27
* @author Sam Brannen
28
+ * @author Juergen Hoeller
27
29
* @since 2.5
28
30
* @see #getOrder()
29
31
*/
@@ -41,4 +43,71 @@ public int getOrder() {
41
43
return Ordered .LOWEST_PRECEDENCE ;
42
44
}
43
45
46
+ /**
47
+ * The default implementation is <em>empty</em>. Can be overridden by
48
+ * subclasses as necessary.
49
+ * @since 3.0
50
+ */
51
+ @ Override
52
+ public void beforeTestClass (TestContext testContext ) throws Exception {
53
+ /* no-op */
54
+ }
55
+
56
+ /**
57
+ * The default implementation is <em>empty</em>. Can be overridden by
58
+ * subclasses as necessary.
59
+ */
60
+ @ Override
61
+ public void prepareTestInstance (TestContext testContext ) throws Exception {
62
+ /* no-op */
63
+ }
64
+
65
+ /**
66
+ * The default implementation is <em>empty</em>. Can be overridden by
67
+ * subclasses as necessary.
68
+ */
69
+ @ Override
70
+ public void beforeTestMethod (TestContext testContext ) throws Exception {
71
+ /* no-op */
72
+ }
73
+
74
+ /**
75
+ * The default implementation is <em>empty</em>. Can be overridden by
76
+ * subclasses as necessary.
77
+ * @since 5.2
78
+ */
79
+ @ Override
80
+ public void beforeTestExecution (TestContext testContext ) throws Exception {
81
+ /* no-op */
82
+ }
83
+
84
+ /**
85
+ * The default implementation is <em>empty</em>. Can be overridden by
86
+ * subclasses as necessary.
87
+ * @since 5.2
88
+ */
89
+ @ Override
90
+ public void afterTestExecution (TestContext testContext ) throws Exception {
91
+ /* no-op */
92
+ }
93
+
94
+ /**
95
+ * The default implementation is <em>empty</em>. Can be overridden by
96
+ * subclasses as necessary.
97
+ */
98
+ @ Override
99
+ public void afterTestMethod (TestContext testContext ) throws Exception {
100
+ /* no-op */
101
+ }
102
+
103
+ /**
104
+ * The default implementation is <em>empty</em>. Can be overridden by
105
+ * subclasses as necessary.
106
+ * @since 3.0
107
+ */
108
+ @ Override
109
+ public void afterTestClass (TestContext testContext ) throws Exception {
110
+ /* no-op */
111
+ }
112
+
44
113
}
0 commit comments