ttomcat-1778514358873.zip-extract/_dependencies/maven/junit_junit-4.13.2/org/junit/Ignore.java

Path
ttomcat-1778514358873.zip-extract/_dependencies/maven/junit_junit-4.13.2/org/junit/Ignore.java
Status
scanned
Type
file
Name
Ignore.java
Extension
.java
Programming language
Java
Mime type
text/x-java
File type
Java source, ASCII text
Tag

      
    
Rootfs path

      
    
Size
1454 (1.4 KB)
MD5
9a3caf7a1f50057c8bc18014c19eea84
SHA1
bd198b73f7fea6c5f0c1a9624c3cd14e813501bb
SHA256
f94d8b39d6f104c6b59080927b37489770e0d6bcb4718f8151e118698a8b084c
SHA512

      
    
SHA1_git
db23581073bd419be745313227a0756d439981ca
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Ignore.java | 1.4 KB |

package org.junit; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Sometimes you want to temporarily disable a test or a group of tests. Methods annotated with * {@link org.junit.Test} that are also annotated with <code>&#064;Ignore</code> will not be executed as tests. * Also, you can annotate a class containing test methods with <code>&#064;Ignore</code> and none of the containing * tests will be executed. Native JUnit 4 test runners should report the number of ignored tests along with the * number of tests that ran and the number of tests that failed. * * <p>For example: * <pre> * &#064;Ignore &#064;Test public void something() { ... * </pre> * &#064;Ignore takes an optional default parameter if you want to record why a test is being ignored: * <pre> * &#064;Ignore("not ready yet") &#064;Test public void something() { ... * </pre> * &#064;Ignore can also be applied to the test class: * <pre> * &#064;Ignore public class IgnoreMe { * &#064;Test public void test1() { ... } * &#064;Test public void test2() { ... } * } * </pre> * * @since 4.0 */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.TYPE}) public @interface Ignore { /** * The optional reason why the test is ignored. */ String value() default ""; }