Skip to content

Commit

Permalink
Added simple and strategic projects to work on the quality of the gen…
Browse files Browse the repository at this point in the history
…erated code. #105
  • Loading branch information
highsource authored and mattrpav committed Aug 28, 2023
1 parent 1ecf3db commit fb98f74
Show file tree
Hide file tree
Showing 10 changed files with 698 additions and 45 deletions.
91 changes: 46 additions & 45 deletions basics/tests/po/pom.xml
Original file line number Diff line number Diff line change
@@ -1,46 +1,47 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb2-basics-tests</artifactId>
<version>0.11.2-SNAPSHOT</version>
</parent>
<artifactId>jaxb2-basics-test-po</artifactId>
<packaging>jar</packaging>
<name>JAXB Tools :: JAXB Basics :: Test [po]</name>
<dependencies>
<dependency>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin-testing</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb2-basics</artifactId>
</dependency>
</dependencies>
<build>
<defaultGoal>test</defaultGoal>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin</artifactId>
<configuration>
<extension>true</extension>
<args>
<arg>-Xequals</arg>
<arg>-XhashCode</arg>
</args>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb2-basics</artifactId>
</plugin>
</plugins>
</configuration>
</plugin>
</plugins>
</build>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb2-basics-tests</artifactId>
<version>2.0.5-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>jaxb2-basics-test-po</artifactId>
<packaging>jar</packaging>
<name>JAXB Tools :: JAXB Basics :: Test [po]</name>
<dependencies>
<dependency>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin-testing</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb2-basics-runtime</artifactId>
</dependency>
</dependencies>
<build>
<defaultGoal>test</defaultGoal>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin</artifactId>
<configuration>
<extension>true</extension>
<args>
<arg>-Xequals</arg>
<arg>-XhashCode</arg>
</args>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb2-basics</artifactId>
</plugin>
</plugins>
</configuration>
</plugin>
</plugins>
</build>
</project>
3 changes: 3 additions & 0 deletions basics/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<module>JAXB-1058</module>
<module>namespace</module>
<module>one</module>
<module>po</module>
<module>qa-simple</module>
<module>qa-strategic</module>
<module>simple-hashCode-equals-01</module>
<module>simplify-01</module>
<module>simplify-02</module>
Expand Down
49 changes: 49 additions & 0 deletions basics/tests/qa-simple/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb2-basics-tests</artifactId>
<version>2.0.5-SNAPSHOT</version>
</parent>
<artifactId>jaxb2-basics-tests-qa-simple</artifactId>
<packaging>jar</packaging>
<name>JAXB Tools :: JAXB Basics :: Test [qa-simple]</name>

<dependencies>
<dependency>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin-testing</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb2-basics-runtime</artifactId>
</dependency>
</dependencies>
<build>
<defaultGoal>test</defaultGoal>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin</artifactId>
<configuration>
<extension>true</extension>
<args>
<!-- Not implemented yet -->
<!--arg>-XsimpleToString</arg-->
<arg>-XsimpleEquals</arg>
<arg>-XsimpleHashCode</arg>
</args>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb2-basics</artifactId>
</plugin>
</plugins>
</configuration>
</plugin>
</plugins>
</build>
</project>
21 changes: 21 additions & 0 deletions basics/tests/qa-simple/src/main/resources/binding.xjb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<jaxb:bindings
version="2.1"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema"

xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"

jaxb:extensionBindingPrefixes="xjc">

<jaxb:globalBindings choiceContentProperty="true" generateIsSetMethod="true" generateElementClass="true">
<!--xjc:noValidator />
<xjc:noValidatingUnmarshaller /-->
</jaxb:globalBindings>

<jaxb:bindings schemaLocation="schema.xsd" node="/xs:schema">
<jaxb:schemaBindings>
<jaxb:package name="org.jvnet.jaxb2_commons.tests.qa.simple"/>
</jaxb:schemaBindings>
</jaxb:bindings>
</jaxb:bindings>
Loading

0 comments on commit fb98f74

Please sign in to comment.