Imgflip Logo Icon

Expanding Brain

Expanding Brain Meme | @Test
fun throws() {
  try {
    sut()
   } catch(e: Exception) {
     assertTrue(e is MyException)
   }
}; @Test(expected = MyException::class.java)
fun throws() {
    sut()
}; @get:Rule 
val exceptionRule = ExpectedException.none()
@Test
fun throws() {
    exceptionRule.expect(My exception::class.java)
    sut()
}; @Test
fun returnsError() {
    assertEquals(MyError, sut())
} | image tagged in memes,expanding brain | made w/ Imgflip meme maker
376 views Made by anonymous 5 years ago
Expanding Brain memeCaption this Meme
Expanding Brain memeCaption this Meme
Created with the Imgflip Meme Generator
IMAGE DESCRIPTION:
@Test fun throws() { try { sut() } catch(e: Exception) { assertTrue(e is MyException) } }; @Test(expected = MyException::class.java) fun throws() { sut() }; @get:Rule val exceptionRule = ExpectedException.none() @Test fun throws() { exceptionRule.expect(My exception::class.java) sut() }; @Test fun returnsError() { assertEquals(MyError, sut()) }