use of org.opendaylight.mdsal.binding.model.api.AccessModifier in project mdsal by opendaylight.
the class MethodSignatureImplTest method setup.
@Before
public void setup() {
Type type = Types.STRING;
String name = "customMethod";
List<AnnotationType> annotations = new ArrayList<>();
TypeMemberComment comment = TypeMemberComment.contractOf("This is just a comment");
AccessModifier accessModifier = AccessModifier.PUBLIC;
Type returnType = Types.STRING;
List<Parameter> params = new ArrayList<>();
boolean isFinal = false;
boolean isAbstract = false;
boolean isStatic = false;
signature1 = new MethodSignatureImpl(name, annotations, comment, accessModifier, returnType, params, isFinal, isAbstract, isStatic);
signature2 = new MethodSignatureImpl(name, annotations, comment, accessModifier, returnType, params, isFinal, isAbstract, isStatic);
returnType = null;
signature3 = new MethodSignatureImpl(name, annotations, comment, accessModifier, returnType, params, isFinal, isAbstract, isStatic);
name = null;
signature4 = new MethodSignatureImpl(name, annotations, comment, accessModifier, returnType, params, isFinal, isAbstract, isStatic);
hash1 = signature1.hashCode();
hash4 = signature4.hashCode();
}
Aggregations