31
31
32
32
import org .hamcrest .core .IsEqual ;
33
33
import org .hamcrest .core .StringContains ;
34
- import org .junit .Ignore ;
35
- import org .junit .Test ;
34
+ import org .junit .jupiter . api . Disabled ;
35
+ import org .junit .jupiter . api . Test ;
36
36
37
37
/**
38
38
* Test case for {@link com.qulice.pmd.rules.UseStringIsEmptyRule}.
@@ -165,7 +165,7 @@ public void detectsLengthLessOrEqualZero() throws Exception {
165
165
* 0.
166
166
* @throws Exception If something goes wrong
167
167
*/
168
- @ Ignore
168
+ @ Disabled
169
169
@ Test
170
170
public void detectsLengthEqualsZeroThis () throws Exception {
171
171
new PmdAssert (
@@ -178,7 +178,7 @@ public void detectsLengthEqualsZeroThis() throws Exception {
178
178
* UseStringIsEmptyRule can detect when this.String.length() >= 1.
179
179
* @throws Exception If something goes wrong
180
180
*/
181
- @ Ignore
181
+ @ Disabled
182
182
@ Test
183
183
public void detectsLengthGreaterOrEqualOneThis () throws Exception {
184
184
new PmdAssert (
@@ -191,7 +191,7 @@ public void detectsLengthGreaterOrEqualOneThis() throws Exception {
191
191
* UseStringIsEmptyRule can detect when this.String.length() < 1.
192
192
* @throws Exception If something goes wrong
193
193
*/
194
- @ Ignore
194
+ @ Disabled
195
195
@ Test
196
196
public void detectsLengthLessThanOneThis () throws Exception {
197
197
new PmdAssert (
@@ -205,7 +205,7 @@ public void detectsLengthLessThanOneThis() throws Exception {
205
205
* 0, when String is returned by a method.
206
206
* @throws Exception If something goes wrong
207
207
*/
208
- @ Ignore
208
+ @ Disabled
209
209
@ Test
210
210
public void detectsLengthEqualsZeroMethod () throws Exception {
211
211
new PmdAssert (
@@ -219,7 +219,7 @@ public void detectsLengthEqualsZeroMethod() throws Exception {
219
219
* String is returned by a method.
220
220
* @throws Exception If something goes wrong
221
221
*/
222
- @ Ignore
222
+ @ Disabled
223
223
@ Test
224
224
public void detectsLengthGreaterOrEqualOneMethod () throws Exception {
225
225
new PmdAssert (
@@ -233,7 +233,7 @@ public void detectsLengthGreaterOrEqualOneMethod() throws Exception {
233
233
* String is returned by a method.
234
234
* @throws Exception If something goes wrong
235
235
*/
236
- @ Ignore
236
+ @ Disabled
237
237
@ Test
238
238
public void detectsLengthLessThanOneMethod () throws Exception {
239
239
new PmdAssert (
1 commit comments
0pdd commentedon Jan 30, 2019
Puzzle
939-39a57206
discovered inpom.xml
and submitted as #1019. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.