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

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

      
    
Rootfs path

      
    
Size
1221 (1.2 KB)
MD5
dd5fd951bfcc6a9f9ec1a3c827e6195e
SHA1
85813cb5930664050c3b23c7448714d85f59fa53
SHA256
b2d7eaabc3f7df9a3c3648a762df2b6bb9b777c752f63452071b0cb9c95ea0ef
SHA512

      
    
SHA1_git
3428ee28add4591599cf7e7d7afda3a0c8dc45ff
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
RunWith.java | 1.2 KB |

package org.junit.runner; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * When a class is annotated with <code>&#064;RunWith</code> or extends a class annotated * with <code>&#064;RunWith</code>, JUnit will invoke the class it references to run the * tests in that class instead of the runner built into JUnit. We added this feature late * in development. While it seems powerful we expect the runner API to change as we learn * how people really use it. Some of the classes that are currently internal will likely * be refined and become public. * * For example, suites in JUnit 4 are built using RunWith, and a custom runner named Suite: * * <pre> * &#064;RunWith(Suite.class) * &#064;SuiteClasses({ATest.class, BTest.class, CTest.class}) * public class ABCSuite { * } * </pre> * * @since 4.0 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Inherited public @interface RunWith { /** * @return a Runner class (must have a constructor that takes a single Class to run) */ Class<? extends Runner> value(); }