Skip to content

Commit

Permalink
[#148] changed extension folder to integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasstamann committed Apr 9, 2024
1 parent 86dfa0a commit eeccbc4
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 12 deletions.
17 changes: 9 additions & 8 deletions extensions/java16/pom.xml → integrationtest/java16/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<parent>
<groupId>io.toolisticon.aptk</groupId>
<artifactId>extension-parent</artifactId>
<artifactId>integrationtest-parent</artifactId>
<version>0.24.1-148_records-SNAPSHOT</version>
</parent>

Expand All @@ -16,12 +16,6 @@

<dependencies>

<!-- Should transitively bind all extensions for lesser java versions -->
<dependency>
<groupId>io.toolisticon.aptk</groupId>
<artifactId>aptk-tools-java9</artifactId>
</dependency>

<dependency>
<groupId>io.toolisticon.aptk</groupId>
<artifactId>aptk-tools</artifactId>
Expand Down Expand Up @@ -57,7 +51,6 @@
</excludes>
<includes>
<include>io.toolisticon.aptk:aptk-tools:*</include>
<include>io.toolisticon.aptk:aptk-tools-java9:*</include>
<include>*:*:*:*:test:*</include>
<include>*:*:*:*:provided:*</include>
</includes>
Expand All @@ -84,6 +77,14 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>


</plugins>

Expand Down
9 changes: 8 additions & 1 deletion extensions/java9/pom.xml → integrationtest/java9/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<parent>
<groupId>io.toolisticon.aptk</groupId>
<artifactId>extension-parent</artifactId>
<artifactId>integrationtest-parent</artifactId>
<version>0.24.1-148_records-SNAPSHOT</version>
</parent>

Expand Down Expand Up @@ -77,6 +77,13 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

</plugins>

Expand Down
4 changes: 2 additions & 2 deletions extensions/pom.xml → integrationtest/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<artifactId>extension-parent</artifactId>
<artifactId>integrationtest-parent</artifactId>
<packaging>pom</packaging>

<parent>
Expand All @@ -10,7 +10,7 @@
<version>0.24.1-148_records-SNAPSHOT</version>
</parent>

<name>extension-parent</name>
<name>integrationtest-parent</name>


<!-- activate module support for Java 9 -->
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<module>tools</module>
<module>example</module>
<module>templating</module>
<module>extensions</module>
<module>integrationtest</module>

<!-- wrapper processor -->
<module>annotationwrapper</module>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,24 @@ public ExecutableElementWrapper getAccessor() {
return ExecutableElementWrapper.wrap(this.<ExecutableElement>invokeParameterlessMethodOfElement("getAccessor", null));
}

/**
* Re-wraps an ElementWrapper to a RecordComponentElementWrapper.
* @param element the wrapper to re-wrap
* @return The RecordComponentElementWrapper or null if the passed ElementWrapper doesn't wrap a RecordComponentElement
*/
public static RecordComponentElementWrapper toRecordComponentElement(ElementWrapper<?> element) {
if (element == null) {
return null;
}
return RecordComponentElementWrapper.wrap(element.unwrap());
}

/**
* Wraps an element with the RecordComponentElementWrapper.
*
* @param element the element to wrap
* @return the wrapped element, or null if passed element isn't an RecordComponentElement
*/
public static RecordComponentElementWrapper wrap(Element element) {
if (element == null || !"RECORD_COMPONENT".equals(element.getKind().name())) {
return null;
Expand Down

0 comments on commit eeccbc4

Please sign in to comment.