Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions value/annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<includes>
<include>com/google/auto/value/*</include>
<include>com/google/auto/value/extension/memoized/*</include>
<include>com/google/auto/value/extension/serializable/*</include>
<include>com/google/auto/value/extension/toprettystring/*</include>
<include>com/google/auto/value/*.java</include>
<include>com/google/auto/value/extension/memoized/*.java</include>
<include>com/google/auto/value/extension/serializable/*.java</include>
<include>com/google/auto/value/extension/toprettystring/*.java</include>
</includes>
</configuration>
</plugin>
Expand Down
22 changes: 6 additions & 16 deletions value/src/it/functional/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,24 +115,10 @@
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<executions>
<!--
The Kotlin configuration here is a bit unusual. JetBrains recommends
<https://kotlinlang.org/docs/maven.html#compile-kotlin-and-java-sources>
a fairly invasive reconfiguration of the maven-compiler-plugin (which compiles Java)
in order to ensure that the Kotlin compiler can run first. In our case, we have just
one Kotlin file that a test in Java accesses. So, even though it is in src/test/java,
we compile it in the `compile` goal, which means it is available to the Java test sources
when they are compiled in the `default-testCompile` goal.

Currently if you want to use JDK ≥ 16 then you must set
JAVA_TOOL_OPTIONS=__illegal-access=permit
except the two underscores should be dashes (which XML comments won't allow us to write).
This is a bug that will presumably be fixed in a forthcoming version.
-->
<execution>
<id>compile</id>
<id>test-compile</id>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
<configuration>
<sourceDirs>
Expand Down Expand Up @@ -191,6 +177,10 @@
<systemPropertyVariables>
<autoValueVersion>${project.version}</autoValueVersion>
</systemPropertyVariables>
<includes>
<include>**/*Test.java</include>
<include>**/*IT.java</include>
</includes>
</configuration>
<executions>
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ static NullableProperties create(@Nullable String nullableString, int randomInt)
}
}

@Test
public void failMiserably() {
assertThat(true).isFalse();
}

@Test
public void testNullablePropertiesCanBeNull() {
NullableProperties instance = NullableProperties.create(null, 23);
Expand Down
Loading