package com.googlecode.zohhak.api;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import com.googlecode.zohhak.api.runners.ZohhakRunner;
import com.googlecode.zohhak.helper.CustomTest;
/**
* 'custom annotation' functionality is not yet implemented
*/
//@RunWith(ZohhakRunner.class)
public class CustomAnnotationTest {
private static int runMethods;
@BeforeClass
public static void before() {
runMethods = 0;
}
@AfterClass
public static void after() {
assertThat(runMethods).isEqualTo(1);
}
@CustomTest("1")
public void customAnnotation(int i) {
runMethods ++;
assertThat(i).isEqualTo(7);
}
}