Skip to content

Instantly share code, notes, and snippets.

@ewolff
Created June 30, 2013 10:57
Show Gist options
  • Save ewolff/5894741 to your computer and use it in GitHub Desktop.
Save ewolff/5894741 to your computer and use it in GitHub Desktop.
package com.mycompany.myproject.test.integration.java;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Test;
import org.vertx.testtools.VertxAssert;
import static org.junit.Assert.*;
public class AfterTest extends org.vertx.testtools.TestVerticle {
private static boolean afterCalled=false;
@Test
public void empty() {
VertxAssert.testComplete();
}
@After
public void after() {
afterCalled=true;
}
@AfterClass
public static void afterClass() {
assertTrue(afterCalled);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment