Skip to content

Instantly share code, notes, and snippets.

@mawek
Created July 15, 2013 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mawek/6000649 to your computer and use it in GitHub Desktop.
Save mawek/6000649 to your computer and use it in GitHub Desktop.
package com.mawek.test
import org.slf4j.Logger
import org.slf4j.LoggerFactory;
import static org.junit.Assert.assertEquals
import org.testng.annotations.Test
import org.testng.annotations.BeforeClass
class Test01 {
protected final Logger log = LoggerFactory.getLogger(getClass())
@BeforeClass
void init() {
throw new IllegalStateException("ups!")
}
@Test
void testSomething() {
log.info("running test")
assertEquals("hello world!", "hello world!")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment