org.junit.runners.model
Class MultipleFailureException
java.lang.Object
   java.lang.Throwable
java.lang.Throwable
       java.lang.Exception
java.lang.Exception
           org.junit.runners.model.MultipleFailureException
org.junit.runners.model.MultipleFailureException
- All Implemented Interfaces: 
- Serializable
- public class MultipleFailureException 
- extends Exception
Collects multiple Throwables into one exception.
- Since:
- 4.9
- See Also:
- Serialized Form
 
 
 
 
MultipleFailureException
public MultipleFailureException(List<Throwable> errors)
getFailures
public List<Throwable> getFailures()
- 
 
getMessage
public String getMessage()
- 
- Overrides:
- getMessagein class- Throwable
 
- 
 
assertEmpty
public static void assertEmpty(List<Throwable> errors)
                        throws Exception
- Asserts that a list of throwables is empty. If it isn't empty,
 will throw MultipleFailureException(if there are
 multiple throwables in the list) or the first element in the list
 (if there is only one element).
 
- 
- Parameters:
- errors- list to check
- Throws:
- Exception- or Error if the list is not empty
 
Copyright © 2002–2014 JUnit. All rights reserved.