Skip to content

Instantly share code, notes, and snippets.

@ivanursul
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save ivanursul/47876fc4c56646ddcaa8 to your computer and use it in GitHub Desktop.

Select an option

Save ivanursul/47876fc4c56646ddcaa8 to your computer and use it in GitHub Desktop.
DefaultTest.java for www.ivanursul.com
package org.ivanursul.investigration.rule;
import static org.junit.Assert.assertTrue;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.Test;
public class DefaultTest {
@Rule
public LoggingRule rule = new LoggingRule("local");
@ClassRule
public static LoggingRule globalRule = new LoggingRule("global");
@Test
public void testRule() throws Exception {
assertTrue(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment