• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package junitparams.internal.annotation;
2 
3 import java.lang.annotation.Annotation;
4 
5 import junitparams.custom.CustomParameters;
6 import junitparams.custom.ParametersProvider;
7 
8 public class CustomParametersDescriptor {
9 
10     private final Annotation customAnnotation;
11 
12     private final Class<? extends ParametersProvider> provider;
13 
CustomParametersDescriptor(CustomParameters customParameters)14     public CustomParametersDescriptor(CustomParameters customParameters) {
15         this(customParameters, customParameters);
16     }
17 
CustomParametersDescriptor(CustomParameters customParameters, Annotation customAnnotation)18     public CustomParametersDescriptor(CustomParameters customParameters, Annotation customAnnotation) {
19         this.provider = customParameters.provider();
20         this.customAnnotation = customAnnotation;
21     }
22 
provider()23     public Class<? extends ParametersProvider> provider() {
24         return provider;
25     }
26 
annotation()27     public Annotation annotation() {
28         return customAnnotation;
29     }
30 }
31