From 31daf84cef623262f81e783517654259d1cf7a47 Mon Sep 17 00:00:00 2001 From: Alexey Valikov Date: Sat, 9 Feb 2019 22:47:54 +0100 Subject: [PATCH] Added simple and strategic projects to work on the quality of the generated code. #105 --- tests/pom.xml | 2 + tests/qa-simple/.gitignore | 4 + tests/qa-simple/pom.xml | 48 ++++ .../qa-simple/src/main/resources/binding.xjb | 21 ++ tests/qa-simple/src/main/resources/schema.xsd | 249 ++++++++++++++++++ .../src/test/resources/log4j.properties | 5 + tests/qa-strategic/.gitignore | 4 + tests/qa-strategic/pom.xml | 49 ++++ .../src/main/resources/binding.xjb | 21 ++ .../src/main/resources/schema.xsd | 249 ++++++++++++++++++ .../src/test/resources/log4j.properties | 5 + 11 files changed, 657 insertions(+) create mode 100644 tests/qa-simple/.gitignore create mode 100644 tests/qa-simple/pom.xml create mode 100644 tests/qa-simple/src/main/resources/binding.xjb create mode 100644 tests/qa-simple/src/main/resources/schema.xsd create mode 100644 tests/qa-simple/src/test/resources/log4j.properties create mode 100644 tests/qa-strategic/.gitignore create mode 100644 tests/qa-strategic/pom.xml create mode 100644 tests/qa-strategic/src/main/resources/binding.xjb create mode 100644 tests/qa-strategic/src/main/resources/schema.xsd create mode 100644 tests/qa-strategic/src/test/resources/log4j.properties diff --git a/tests/pom.xml b/tests/pom.xml index 5f037fc0..9f82a229 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -16,6 +16,8 @@ issues JAXB-1058 one + qa-simple + qa-strategic simple-hashCode-equals-01 simplify-01 superclass diff --git a/tests/qa-simple/.gitignore b/tests/qa-simple/.gitignore new file mode 100644 index 00000000..7ae0ae50 --- /dev/null +++ b/tests/qa-simple/.gitignore @@ -0,0 +1,4 @@ +.settings +.project +.classpath +target \ No newline at end of file diff --git a/tests/qa-simple/pom.xml b/tests/qa-simple/pom.xml new file mode 100644 index 00000000..10494359 --- /dev/null +++ b/tests/qa-simple/pom.xml @@ -0,0 +1,48 @@ + + 4.0.0 + + org.jvnet.jaxb2_commons + jaxb2-basics-tests + 0.12.1-SNAPSHOT + + jaxb2-basics-test-qa-simple + jar + JAXB2 Basics - Test [qa-simple] + + + org.jvnet.jaxb2.maven2 + maven-jaxb2-plugin-testing + test + + + org.jvnet.jaxb2_commons + jaxb2-basics + + + + test + + + org.jvnet.jaxb2.maven2 + maven-jaxb2-plugin + + true + + + + -XsimpleEquals + -XsimpleHashCode + + + + org.jvnet.jaxb2_commons + jaxb2-basics + + + + + + + \ No newline at end of file diff --git a/tests/qa-simple/src/main/resources/binding.xjb b/tests/qa-simple/src/main/resources/binding.xjb new file mode 100644 index 00000000..1bf3e1ec --- /dev/null +++ b/tests/qa-simple/src/main/resources/binding.xjb @@ -0,0 +1,21 @@ + + + + + + + + + + + + + diff --git a/tests/qa-simple/src/main/resources/schema.xsd b/tests/qa-simple/src/main/resources/schema.xsd new file mode 100644 index 00000000..8f8bd96b --- /dev/null +++ b/tests/qa-simple/src/main/resources/schema.xsd @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/qa-simple/src/test/resources/log4j.properties b/tests/qa-simple/src/test/resources/log4j.properties new file mode 100644 index 00000000..9c985635 --- /dev/null +++ b/tests/qa-simple/src/test/resources/log4j.properties @@ -0,0 +1,5 @@ +log4j.rootCategory=DEBUG, stdout +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.target=system.out +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n \ No newline at end of file diff --git a/tests/qa-strategic/.gitignore b/tests/qa-strategic/.gitignore new file mode 100644 index 00000000..7ae0ae50 --- /dev/null +++ b/tests/qa-strategic/.gitignore @@ -0,0 +1,4 @@ +.settings +.project +.classpath +target \ No newline at end of file diff --git a/tests/qa-strategic/pom.xml b/tests/qa-strategic/pom.xml new file mode 100644 index 00000000..d5231574 --- /dev/null +++ b/tests/qa-strategic/pom.xml @@ -0,0 +1,49 @@ + + 4.0.0 + + org.jvnet.jaxb2_commons + jaxb2-basics-tests + 0.12.1-SNAPSHOT + + jaxb2-basics-test-qa-strategic + jar + JAXB2 Basics - Test [qa-strategic] + + + org.jvnet.jaxb2.maven2 + maven-jaxb2-plugin-testing + test + + + org.jvnet.jaxb2_commons + jaxb2-basics + + + + test + + + org.jvnet.jaxb2.maven2 + maven-jaxb2-plugin + + true + + -XtoString + -Xequals + -XhashCode + -Xcopyable + -Xmergeable + + + + org.jvnet.jaxb2_commons + jaxb2-basics + + + + + + + \ No newline at end of file diff --git a/tests/qa-strategic/src/main/resources/binding.xjb b/tests/qa-strategic/src/main/resources/binding.xjb new file mode 100644 index 00000000..511f75fb --- /dev/null +++ b/tests/qa-strategic/src/main/resources/binding.xjb @@ -0,0 +1,21 @@ + + + + + + + + + + + + + diff --git a/tests/qa-strategic/src/main/resources/schema.xsd b/tests/qa-strategic/src/main/resources/schema.xsd new file mode 100644 index 00000000..8f8bd96b --- /dev/null +++ b/tests/qa-strategic/src/main/resources/schema.xsd @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/qa-strategic/src/test/resources/log4j.properties b/tests/qa-strategic/src/test/resources/log4j.properties new file mode 100644 index 00000000..9c985635 --- /dev/null +++ b/tests/qa-strategic/src/test/resources/log4j.properties @@ -0,0 +1,5 @@ +log4j.rootCategory=DEBUG, stdout +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.target=system.out +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n \ No newline at end of file