aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/junitparams/internal/annotation/CustomParametersDescriptor.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/junitparams/internal/annotation/CustomParametersDescriptor.java')
-rw-r--r--src/main/java/junitparams/internal/annotation/CustomParametersDescriptor.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/main/java/junitparams/internal/annotation/CustomParametersDescriptor.java b/src/main/java/junitparams/internal/annotation/CustomParametersDescriptor.java
new file mode 100644
index 0000000..7f0729e
--- /dev/null
+++ b/src/main/java/junitparams/internal/annotation/CustomParametersDescriptor.java
@@ -0,0 +1,30 @@
+package junitparams.internal.annotation;
+
+import java.lang.annotation.Annotation;
+
+import junitparams.custom.CustomParameters;
+import junitparams.custom.ParametersProvider;
+
+public class CustomParametersDescriptor {
+
+ private final Annotation customAnnotation;
+
+ private final Class<? extends ParametersProvider> provider;
+
+ public CustomParametersDescriptor(CustomParameters customParameters) {
+ this(customParameters, customParameters);
+ }
+
+ public CustomParametersDescriptor(CustomParameters customParameters, Annotation customAnnotation) {
+ this.provider = customParameters.provider();
+ this.customAnnotation = customAnnotation;
+ }
+
+ public Class<? extends ParametersProvider> provider() {
+ return provider;
+ }
+
+ public Annotation annotation() {
+ return customAnnotation;
+ }
+}