From 1d7543f9167ac2fa3432858c550dd8b18166597f Mon Sep 17 00:00:00 2001 From: Pavel Alexeev Date: Mon, 24 Feb 2020 23:01:11 +0300 Subject: [PATCH] https://github.com/Hubbitus/xjc-documentation-annotation-plugin/issues/2 Extend test on case of element without annotation --- .../info/hubbitus/XJCPluginDescriptionAnnotationTest.groovy | 3 ++- src/test/resources/Example.xsd | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/groovy/info/hubbitus/XJCPluginDescriptionAnnotationTest.groovy b/src/test/groovy/info/hubbitus/XJCPluginDescriptionAnnotationTest.groovy index 9280c36..8321e9f 100644 --- a/src/test/groovy/info/hubbitus/XJCPluginDescriptionAnnotationTest.groovy +++ b/src/test/groovy/info/hubbitus/XJCPluginDescriptionAnnotationTest.groovy @@ -100,12 +100,13 @@ class XJCPluginDescriptionAnnotationTest extends Specification { + ''' - cls.getDeclaredFields().size() == 2 + cls.getDeclaredFields().size() == 3 cls.getDeclaredFields().find{ 'name' == it.name }.getAnnotation(XsdInfo).name() == 'Фамилия и имя' cls.getDeclaredFields().find{ 'age' == it.name }.getAnnotation(XsdInfo).name() == 'Возраст' } diff --git a/src/test/resources/Example.xsd b/src/test/resources/Example.xsd index c431b03..079a580 100644 --- a/src/test/resources/Example.xsd +++ b/src/test/resources/Example.xsd @@ -16,6 +16,7 @@ Возраст + \ No newline at end of file