net.sf.twip.verify
Class VerifyExtensionTest
java.lang.Object
net.sf.twip.verify.VerifyExtensionTest
public class VerifyExtensionTest
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VerifyExtensionTest
public VerifyExtensionTest()
shouldAddFailedAssertionAfterSomeVerificationFailed
public void shouldAddFailedAssertionAfterSomeVerificationFailed()
throws Exception
- Throws:
Exception
shouldAddNpeAfterSomeVerificationFailed
public void shouldAddNpeAfterSomeVerificationFailed()
throws Exception
- Throws:
Exception
shouldCheckOneFailure
public void shouldCheckOneFailure()
throws Exception
- Throws:
Exception
shouldCheckTwoFailures
public void shouldCheckTwoFailures()
throws Exception
- Throws:
Exception
shouldCleanUpAfterFailure1
public void shouldCleanUpAfterFailure1()
throws Exception
- We want to check that the
VerifyExtension cleans up even when an error occurs in the
verification phase. This is not so easy to test, as it happens after the method
returns. We test it with these two tests running in a row... which admittedly is generally a
very, very bad practice.
- Throws:
Exception
shouldCleanUpAfterFailure2
public void shouldCleanUpAfterFailure2()
throws Exception
- This test just checks indirectly that no
VerificationAlreadyInitializedError is
thrown.
- Throws:
Exception- See Also:
shouldCleanUpAfterFailure1()
shouldFailDoubleInitializeAndStillCleanUp
public void shouldFailDoubleInitializeAndStillCleanUp()
throws Exception
- Throws:
Exception
shouldNotReachVerificationAfterAssertionFailed
public void shouldNotReachVerificationAfterAssertionFailed()
throws Exception
- Throws:
Exception
shouldPassMatching
public void shouldPassMatching()
throws Exception
- Throws:
Exception
Copyright © 2011. All Rights Reserved.