34
34
import org .springframework .util .ClassUtils ;
35
35
36
36
import static org .assertj .core .api .Assertions .assertThat ;
37
+ import static org .assertj .core .api .Assertions .fail ;
37
38
38
39
/**
39
40
* Integration tests which verify that '<i>before</i>' and '<i>after</i>'
@@ -112,55 +113,55 @@ static class AlwaysFailingBeforeTestClassTestExecutionListener implements TestEx
112
113
113
114
@ Override
114
115
public void beforeTestClass (TestContext testContext ) {
115
- org . testng . Assert . fail ("always failing beforeTestClass()" );
116
+ fail ("always failing beforeTestClass()" );
116
117
}
117
118
}
118
119
119
120
static class AlwaysFailingAfterTestClassTestExecutionListener implements TestExecutionListener {
120
121
121
122
@ Override
122
123
public void afterTestClass (TestContext testContext ) {
123
- org . testng . Assert . fail ("always failing afterTestClass()" );
124
+ fail ("always failing afterTestClass()" );
124
125
}
125
126
}
126
127
127
128
static class AlwaysFailingPrepareTestInstanceTestExecutionListener implements TestExecutionListener {
128
129
129
130
@ Override
130
131
public void prepareTestInstance (TestContext testContext ) throws Exception {
131
- org . testng . Assert . fail ("always failing prepareTestInstance()" );
132
+ fail ("always failing prepareTestInstance()" );
132
133
}
133
134
}
134
135
135
136
static class AlwaysFailingBeforeTestMethodTestExecutionListener implements TestExecutionListener {
136
137
137
138
@ Override
138
139
public void beforeTestMethod (TestContext testContext ) {
139
- org . testng . Assert . fail ("always failing beforeTestMethod()" );
140
+ fail ("always failing beforeTestMethod()" );
140
141
}
141
142
}
142
143
143
144
static class AlwaysFailingBeforeTestExecutionTestExecutionListener implements TestExecutionListener {
144
145
145
146
@ Override
146
147
public void beforeTestExecution (TestContext testContext ) {
147
- org . testng . Assert . fail ("always failing beforeTestExecution()" );
148
+ fail ("always failing beforeTestExecution()" );
148
149
}
149
150
}
150
151
151
152
static class AlwaysFailingAfterTestExecutionTestExecutionListener implements TestExecutionListener {
152
153
153
154
@ Override
154
155
public void afterTestExecution (TestContext testContext ) {
155
- org . testng . Assert . fail ("always failing afterTestExecution()" );
156
+ fail ("always failing afterTestExecution()" );
156
157
}
157
158
}
158
159
159
160
static class AlwaysFailingAfterTestMethodTestExecutionListener implements TestExecutionListener {
160
161
161
162
@ Override
162
163
public void afterTestMethod (TestContext testContext ) {
163
- org . testng . Assert . fail ("always failing afterTestMethod()" );
164
+ fail ("always failing afterTestMethod()" );
164
165
}
165
166
}
166
167
@@ -210,7 +211,7 @@ public void testNothing() {
210
211
211
212
@ BeforeTransaction
212
213
public void beforeTransaction () {
213
- org . testng . Assert . fail ("always failing beforeTransaction()" );
214
+ fail ("always failing beforeTransaction()" );
214
215
}
215
216
}
216
217
@@ -223,7 +224,7 @@ public void testNothing() {
223
224
224
225
@ AfterTransaction
225
226
public void afterTransaction () {
226
- org . testng . Assert . fail ("always failing afterTransaction()" );
227
+ fail ("always failing afterTransaction()" );
227
228
}
228
229
}
229
230
0 commit comments