use of com.thoughtworks.qdox.model.JavaField in project jsonschema2pojo by joelittlejohn.
the class RequiredIT method nonRequiredFiedHasNoRequiredText.
@Test
public void nonRequiredFiedHasNoRequiredText() {
JavaField javaField = classWithRequired.getFieldByName("nonRequiredProperty");
String javaDocComment = javaField.getComment();
assertThat(javaDocComment, not(containsString("(Required)")));
}
use of com.thoughtworks.qdox.model.JavaField in project jsonschema2pojo by joelittlejohn.
the class DescriptionIT method descriptionAppearsInFieldJavadoc.
@Test
public void descriptionAppearsInFieldJavadoc() {
JavaField javaField = classWithDescription.getFieldByName("description");
String javaDocComment = javaField.getComment();
assertThat(javaDocComment, containsString("A description for this property"));
}
use of com.thoughtworks.qdox.model.JavaField in project jsonschema2pojo by joelittlejohn.
the class DescriptionIT method descriptionAppearsAfterTitleInJavadoc.
@Test
public void descriptionAppearsAfterTitleInJavadoc() {
JavaField javaField = classWithDescription.getFieldByName("descriptionAndTitle");
String javaDocComment = javaField.getComment();
assertThat(javaDocComment, containsString("A title for this property"));
assertThat(javaDocComment.indexOf("A description for this property"), is(greaterThan(javaDocComment.indexOf("A title for this property"))));
}
use of com.thoughtworks.qdox.model.JavaField in project jsonschema2pojo by joelittlejohn.
the class RequiredArrayIT method notRequiredIsTheDefault.
@Test
public void notRequiredIsTheDefault() {
JavaField javaField = classWithRequired.getFieldByName("defaultNotRequiredProperty");
String javaDocComment = javaField.getComment();
assertThat(javaDocComment, not(containsString("(Required)")));
}
use of com.thoughtworks.qdox.model.JavaField in project jsonschema2pojo by joelittlejohn.
the class TitleIT method descriptionAppearsInFieldJavadoc.
@Test
public void descriptionAppearsInFieldJavadoc() {
JavaField javaField = classWithTitle.getFieldByName("title");
String javaDocComment = javaField.getComment();
assertThat(javaDocComment, containsString("A title for this property"));
}
Aggregations