-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
1,209 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
|
||
## Build | ||
./gradlew clean build<br> | ||
or<br> | ||
./gradlew clean build -x test | ||
|
||
|
||
## When running tests from Idea | ||
turn off your Digma plugin observability :) | ||
|
||
## New instrumentation advices | ||
every new advice should be tested with java 7 bytecode. | ||
see Java7CompatibilityTests. | ||
read the comment there. | ||
|
||
|
||
|
||
### Using podman with testcontainers | ||
https://github.com/eugene-khyst/podman-testcontainers?tab=readme-ov-file#5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
.../src/test/java/com/digma/otel/javaagent/extension/smoketest/AllJdksParameterizedTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.digma.otel.javaagent.extension.smoketest; | ||
|
||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.Arguments; | ||
import org.junit.jupiter.params.provider.MethodSource; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.util.stream.IntStream; | ||
import java.util.stream.Stream; | ||
|
||
public abstract class AllJdksParameterizedTest extends IntegrationTest{ | ||
|
||
|
||
//Idea complains not finding this method, but it compiles and runs. | ||
//see https://youtrack.jetbrains.com/issue/IDEA-349571/Idea-complains-about-local-annotation-with-ParameterizedTest-and-MethodSource-but-it-runs-with-gradle-and-from-run-configuration | ||
protected static Stream<Arguments> allJdks() { | ||
return IntStream.of(8, 11,17).mapToObj(Arguments::of); | ||
// return IntStream.of(8, 11, 17,21).mapToObj(Arguments::of); | ||
} | ||
|
||
@ParameterizedTest(name = "jdk {0}") | ||
@MethodSource("allJdks") | ||
@Retention(RetentionPolicy.RUNTIME) | ||
protected @interface TestAllJdks { | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.