Skip to content

Instantly share code, notes, and snippets.

@zakgrant
Created January 13, 2012 11:13
Show Gist options
  • Save zakgrant/1605591 to your computer and use it in GitHub Desktop.
Save zakgrant/1605591 to your computer and use it in GitHub Desktop.
Junit - Validating exception thrown WIP
public class Car {
}
public class CarTest {
}
@zakgrant
Copy link
Author

This is an example of how to validate that the exception thrown by the SUT is indeed not only the correct type but has also been instantiated correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment