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

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

      
    
Rootfs path

      
    
Size
1279 (1.2 KB)
MD5
d67117f487c0b3b8a27bf4b03f1dca7c
SHA1
a3d8b0a7d7624ab79c468040dbdd0b85b4f4d5fe
SHA256
927f31de8ecc1776e97dae63ba1306295f3b01bfc34b9eaeaedfa379451cc7f1
SHA512

      
    
SHA1_git
94608f5a88f90660c0ef25e6f4410e08495b7081
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
MethodRule.java | 1.2 KB |

package org.junit.rules; import org.junit.Rule; import org.junit.runners.model.FrameworkMethod; import org.junit.runners.model.Statement; /** * A MethodRule is an alteration in how a test method is run and reported. * Multiple {@link MethodRule}s can be applied to a test method. The * {@link Statement} that executes the method is passed to each annotated * {@link Rule} in turn, and each may return a substitute or modified * {@link Statement}, which is passed to the next {@link Rule}, if any. For * an example of how this can be useful, see {@link TestWatchman}. * * <p>Note that {@link MethodRule} has been replaced by {@link TestRule}, * which has the added benefit of supporting class rules. * * @since 4.7 */ public interface MethodRule { /** * Modifies the method-running {@link Statement} to implement an additional * test-running rule. * * @param base The {@link Statement} to be modified * @param method The method to be run * @param target The object on which the method will be run. * @return a new statement, which may be the same as {@code base}, * a wrapper around {@code base}, or a completely new Statement. */ Statement apply(Statement base, FrameworkMethod method, Object target); }