All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.switcherapi.client.test.SwitcherTest Maven / Gradle / Ivy

package com.github.switcherapi.client.test;

import org.junit.jupiter.api.TestTemplate;
import org.junit.jupiter.api.extension.ExtendWith;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotate test cases with the Switcher Key and the expected result.
 * 
 * 

* Requires JUnit 5 Jupiter * * @author Roger Floriano (petruki) */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) @ExtendWith(SwitcherTestExtension.class) @TestTemplate public @interface SwitcherTest { String key() default ""; boolean result() default true; String metadata() default ""; boolean abTest() default false; SwitcherTestValue[] switchers() default {}; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy