use of com.thoughtworks.qdox.model.JavaField in project jsonschema2pojo by joelittlejohn.
the class RequiredArrayIT method requiredAppearsInFieldJavadoc.
@Test
public void requiredAppearsInFieldJavadoc() {
JavaField javaField = classWithRequired.getFieldByName("requiredProperty");
String javaDocComment = javaField.getComment();
assertThat(javaDocComment, containsString("(Required)"));
}
use of com.thoughtworks.qdox.model.JavaField in project jsonschema2pojo by joelittlejohn.
the class RequiredArrayIT method nonRequiredFiedHasNoRequiredText.
@Test
public void nonRequiredFiedHasNoRequiredText() {
JavaField javaField = classWithRequired.getFieldByName("nonRequiredProperty");
String javaDocComment = javaField.getComment();
assertThat(javaDocComment, not(containsString("(Required)")));
}
Aggregations