-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
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> | ||
<parent> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-integration-tests-parent</artifactId> | ||
<version>999-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>quarkus-integration-test-repro-13261</artifactId> | ||
<name>Quarkus - Integration Tests - Reproducer #13261</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-arc</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-junit5</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<!-- Minimal test dependencies to *-deployment artifacts for consistent build order --> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-arc-deployment</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
<scope>test</scope> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>*</groupId> | ||
<artifactId>*</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>build</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package io.quarkus.it.repro13261; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertNotNull; | ||
|
||
import java.nio.file.Path; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.io.TempDir; | ||
|
||
import io.quarkus.test.junit.QuarkusTest; | ||
|
||
@QuarkusTest | ||
public class Repro13261Test { | ||
@TempDir | ||
Path tempDir; | ||
|
||
@Test | ||
public void defaultConfiguration() { | ||
System.out.println(tempDir); | ||
assertNotNull(tempDir); | ||
Check failure on line 20 in integration-tests/repro-13261/src/test/java/io/quarkus/it/repro13261/Repro13261Test.java GitHub Actions / Build summary for eed198a4057efaf590f667c994d05c6b2b6d1fb2JVM Tests - JDK 17
Raw output
Check failure on line 20 in integration-tests/repro-13261/src/test/java/io/quarkus/it/repro13261/Repro13261Test.java GitHub Actions / Build summary for eed198a4057efaf590f667c994d05c6b2b6d1fb2JVM Tests - JDK 17 Windows
Raw output
Check failure on line 20 in integration-tests/repro-13261/src/test/java/io/quarkus/it/repro13261/Repro13261Test.java GitHub Actions / Build summary for eed198a4057efaf590f667c994d05c6b2b6d1fb2JVM Tests - JDK 21
Raw output
|
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
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> | ||
<parent> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-integration-tests-parent</artifactId> | ||
<version>999-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>quarkus-integration-test-repro-42006</artifactId> | ||
<name>Quarkus - Integration Tests - Reproducer #42006</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-arc</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-junit5</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<!-- Minimal test dependencies to *-deployment artifacts for consistent build order --> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-arc-deployment</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
<scope>test</scope> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>*</groupId> | ||
<artifactId>*</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>build</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package io.quarkus.it.repro42006; | ||
Check failure on line 1 in integration-tests/repro-42006/src/test/java/io/quarkus/it/repro42006/Repro42006Test.java GitHub Actions / Build summary for eed198a4057efaf590f667c994d05c6b2b6d1fb2JVM Tests - JDK 17
Raw output
Check failure on line 1 in integration-tests/repro-42006/src/test/java/io/quarkus/it/repro42006/Repro42006Test.java GitHub Actions / Build summary for eed198a4057efaf590f667c994d05c6b2b6d1fb2JVM Tests - JDK 17 Windows
Raw output
Check failure on line 1 in integration-tests/repro-42006/src/test/java/io/quarkus/it/repro42006/Repro42006Test.java GitHub Actions / Build summary for eed198a4057efaf590f667c994d05c6b2b6d1fb2JVM Tests - JDK 21
Raw output
|
||
|
||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
|
||
import java.io.Serializable; | ||
import java.util.function.Supplier; | ||
import java.util.stream.Stream; | ||
|
||
import org.junit.jupiter.api.extension.ExtensionContext; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.Arguments; | ||
import org.junit.jupiter.params.provider.ArgumentsProvider; | ||
import org.junit.jupiter.params.provider.ArgumentsSource; | ||
|
||
import io.quarkus.test.junit.QuarkusTest; | ||
|
||
@QuarkusTest | ||
public class Repro42006Test { | ||
@ParameterizedTest | ||
@ArgumentsSource(LambdaProvider.class) | ||
void test(String type, Object lambda) { | ||
System.out.println(type + " | " + lambda); | ||
assertTrue(lambda.toString().contains("$$Lambda")); | ||
} | ||
|
||
private static class LambdaProvider implements ArgumentsProvider { | ||
@Override | ||
public Stream<? extends Arguments> provideArguments(ExtensionContext context) { | ||
return Stream.of( | ||
Arguments.of("SerializableSupplier", (SerializableSupplier) () -> "foo"), | ||
Arguments.of("SerializableCustom", (SerializableCustom) () -> "bar")); | ||
} | ||
} | ||
|
||
public interface SerializableSupplier extends Supplier<String>, Serializable { | ||
} | ||
|
||
public interface SerializableCustom extends Serializable { | ||
String get(); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
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> | ||
<parent> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-integration-tests-parent</artifactId> | ||
<version>999-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>quarkus-integration-test-repro-44320</artifactId> | ||
<name>Quarkus - Integration Tests - Reproducer #44320</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-arc</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-junit5</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<!-- Minimal test dependencies to *-deployment artifacts for consistent build order --> | ||
<dependency> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-arc-deployment</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
<scope>test</scope> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>*</groupId> | ||
<artifactId>*</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>io.quarkus</groupId> | ||
<artifactId>quarkus-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>build</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package io.quarkus.it.repro44320; | ||
|
||
import java.util.List; | ||
|
||
import jakarta.enterprise.context.ApplicationScoped; | ||
|
||
import io.quarkus.arc.Unremovable; | ||
import io.quarkus.runtime.Startup; | ||
|
||
@ApplicationScoped | ||
@Startup | ||
@Unremovable | ||
public class MyService { | ||
public List<String> get() { | ||
return List.of("a", "b", "c", "d", "b", "b", "h", "a"); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package io.quarkus.it.repro44320; | ||
Check failure on line 1 in integration-tests/repro-44320/src/test/java/io/quarkus/it/repro44320/Repro44320Test.java GitHub Actions / Build summary for eed198a4057efaf590f667c994d05c6b2b6d1fb2JVM Tests - JDK 17
Raw output
Check failure on line 1 in integration-tests/repro-44320/src/test/java/io/quarkus/it/repro44320/Repro44320Test.java GitHub Actions / Build summary for eed198a4057efaf590f667c994d05c6b2b6d1fb2JVM Tests - JDK 17 Windows
Raw output
Check failure on line 1 in integration-tests/repro-44320/src/test/java/io/quarkus/it/repro44320/Repro44320Test.java GitHub Actions / Build summary for eed198a4057efaf590f667c994d05c6b2b6d1fb2JVM Tests - JDK 21
Raw output
|
||
|
||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.Set; | ||
import java.util.stream.Collectors; | ||
|
||
import jakarta.inject.Inject; | ||
|
||
import org.junit.jupiter.api.BeforeAll; | ||
import org.junit.jupiter.api.TestInstance; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.MethodSource; | ||
|
||
import io.quarkus.test.junit.QuarkusTest; | ||
|
||
@TestInstance(TestInstance.Lifecycle.PER_CLASS) | ||
@QuarkusTest | ||
public class Repro44320Test { | ||
private static Map<String, Long> map = new HashMap<>(); | ||
|
||
@Inject | ||
MyService service; | ||
|
||
@BeforeAll | ||
public void beforeAllTests() { | ||
List<String> list = service.get(); | ||
map = list.stream().collect(Collectors.groupingBy(k -> k, Collectors.counting())); | ||
System.out.println("Map in @BeforeAll" + map); | ||
} | ||
|
||
@ParameterizedTest | ||
@MethodSource("getData") | ||
public void test(String key) { | ||
System.out.println("Key " + key); | ||
} | ||
|
||
public Set<String> getData() { | ||
System.out.println("Map in getData " + map); | ||
return map.keySet(); | ||
} | ||
} |