File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed
java/org/dflib/jjava/jupyter/kernel Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 8
8
import static org .hamcrest .MatcherAssert .assertThat ;
9
9
import static org .junit .jupiter .api .Assertions .assertEquals ;
10
10
11
- public class KernelMagicIT extends ContainerizedKernelCase {
11
+ class KernelMagicIT extends ContainerizedKernelCase {
12
12
13
13
@ Test
14
14
void jars () throws Exception {
@@ -68,4 +68,18 @@ void load() throws Exception {
68
68
assertThat (snippetResult .getStderr (), not (containsString ("|" )));
69
69
assertThat (snippetResult .getStdout (), containsString ("pong!" ));
70
70
}
71
+
72
+ @ Test
73
+ void loadFromPOM () throws Exception {
74
+ String pom = CONTAINER_RESOURCES + "/test-pom.xml" ;
75
+ String snippet = String .join ("\n " ,
76
+ "%loadFromPOM " + pom ,
77
+ "import jakarta.annotation.Nullable;" ,
78
+ "Nullable.class.getName()"
79
+ );
80
+ Container .ExecResult snippetResult = executeInKernel (snippet );
81
+
82
+ assertThat (snippetResult .getStderr (), not (containsString ("|" )));
83
+ assertThat (snippetResult .getStdout (), containsString ("jakarta.annotation.Nullable" ));
84
+ }
71
85
}
Original file line number Diff line number Diff line change
1
+ <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" >
2
+ <modelVersion >4.0.0</modelVersion >
3
+
4
+ <groupId >org.dflib.jjava</groupId >
5
+ <artifactId >jjava-test</artifactId >
6
+ <version >1.0</version >
7
+
8
+ <dependencies >
9
+ <dependency >
10
+ <groupId >jakarta.annotation</groupId >
11
+ <artifactId >jakarta.annotation-api</artifactId >
12
+ <version >3.0.0</version >
13
+ </dependency >
14
+ </dependencies >
15
+ </project >
You can’t perform that action at this time.
0 commit comments