![JAR search and dependency download from the Maven repository](/logo.png)
de.tsl2.nano.autotest.creator.Expectations Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.autotest Show documentation
Show all versions of tsl2.nano.autotest Show documentation
Generates unit tests from code or annotated methods
The newest version!
package de.tsl2.nano.autotest.creator;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* annotate your method to do automated creation of unit tests - without coding
* - checking all expectations.
*
* as a constraint of defining annotations, only primitive types, strings and classes are allowed, so {@link Expect} uses
* strings as values for {@link Expect#when()} and {@link Expect#then()}. you are only able to use this {@link Expectations},
* if your method parameter values and return type are convertible to strings and vice versa.
*
* @author Tom
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD })
public @interface Expectations {
Expect[] value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy