Skip to content

Commit ae70cce

Browse files
Clean up
1 parent 3a9b295 commit ae70cce

File tree

4 files changed

+18
-20
lines changed

4 files changed

+18
-20
lines changed

jjava-distro/src/test/java/org/dflib/jjava/distro/ContainerizedKernelCase.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ public abstract class ContainerizedKernelCase {
3939

4040
@BeforeAll
4141
static void setUp() throws IOException, InterruptedException {
42-
System.out.println("ContainerizedKernelCase.setUp");
4342
initializeContainer();
4443
Assumptions.assumeTrue(container != null, "Docker tests are disabled. Enable with -Pdocker");
45-
System.out.println("container = " + container);
4644

4745
String source = "$(find " + CONTAINER_RESOURCES + "/src -name '*.java')";
4846
Container.ExecResult compileResult = executeInContainer("javac -d " + TEST_CLASSPATH + " " + source);

jjava-distro/src/test/java/org/dflib/jjava/distro/KernelEnvIT.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
import static org.hamcrest.CoreMatchers.not;
1111
import static org.hamcrest.MatcherAssert.assertThat;
1212

13-
public class KernelEnvIT extends ContainerizedKernelCase {
13+
class KernelEnvIT extends ContainerizedKernelCase {
1414

1515
@Test
16-
public void compilerOpts() throws Exception {
16+
void compilerOpts() throws Exception {
1717
Map<String, String> env = Map.of(Env.JJAVA_COMPILER_OPTS, "-source 9");
1818
String snippet = "var value = 1;";
1919
Container.ExecResult snippetResult = executeInKernel(snippet, env);
@@ -27,7 +27,7 @@ public void compilerOpts() throws Exception {
2727
}
2828

2929
@Test
30-
public void timeout() throws Exception {
30+
void timeout() throws Exception {
3131
Map<String, String> env = Map.of(Env.JJAVA_TIMEOUT, "3000");
3232
String snippet = "Thread.sleep(5000);";
3333
Container.ExecResult snippetResult = executeInKernel(snippet, env);
@@ -39,7 +39,7 @@ public void timeout() throws Exception {
3939
}
4040

4141
@Test
42-
public void classpath() throws Exception {
42+
void classpath() throws Exception {
4343
Map<String, String> env = Map.of(Env.JJAVA_CLASSPATH, TEST_CLASSPATH);
4444
String snippet = String.join("; ",
4545
"import org.dflib.jjava.Dummy",
@@ -52,7 +52,7 @@ public void classpath() throws Exception {
5252
}
5353

5454
@Test
55-
public void startUpScriptsPath() throws Exception {
55+
void startUpScriptsPath() throws Exception {
5656
Map<String, String> env = Map.of(Env.JJAVA_STARTUP_SCRIPTS_PATH, CONTAINER_RESOURCES + "/test-ping.jshell");
5757
String snippet = "ping()";
5858
Container.ExecResult snippetResult = executeInKernel(snippet, env);
@@ -62,7 +62,7 @@ public void startUpScriptsPath() throws Exception {
6262
}
6363

6464
@Test
65-
public void startUpScript() throws Exception {
65+
void startUpScript() throws Exception {
6666
Map<String, String> env = Map.of(Env.JJAVA_STARTUP_SCRIPT, "public String ping() { return \"pong!\"; }");
6767
String snippet = "ping()";
6868
Container.ExecResult snippetResult = executeInKernel(snippet, env);
@@ -72,7 +72,7 @@ public void startUpScript() throws Exception {
7272
}
7373

7474
@Test
75-
public void loadExtensions_Default() throws Exception {
75+
void loadExtensions_Default() throws Exception {
7676
String snippet = "printf(\"Hello, %s!\", \"world\");";
7777
Container.ExecResult snippetResult = executeInKernel(snippet);
7878

@@ -81,7 +81,7 @@ public void loadExtensions_Default() throws Exception {
8181
}
8282

8383
@Test
84-
public void loadExtensions_Disable() throws Exception {
84+
void loadExtensions_Disable() throws Exception {
8585
Map<String, String> env = Map.of(Env.JJAVA_LOAD_EXTENSIONS, "0");
8686
String snippet = "printf(\"Hello, %s!\", \"world\");";
8787
Container.ExecResult snippetResult = executeInKernel(snippet, env);
@@ -93,7 +93,7 @@ public void loadExtensions_Disable() throws Exception {
9393
}
9494

9595
@Test
96-
public void jvmOpts() throws Exception {
96+
void jvmOpts() throws Exception {
9797
Map<String, String> env = Map.of(Env.JJAVA_JVM_OPTS, "-Xmx300m");
9898
String snippet = "Runtime.getRuntime().maxMemory()";
9999
Container.ExecResult snippetResult = executeInKernel(snippet, env);

jjava-distro/src/test/java/org/dflib/jjava/distro/KernelMagicIT.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
import static org.hamcrest.MatcherAssert.assertThat;
99
import static org.junit.jupiter.api.Assertions.assertEquals;
1010

11-
public class KernelMagicIT extends ContainerizedKernelCase {
11+
class KernelMagicIT extends ContainerizedKernelCase {
1212

1313
@Deprecated
1414
@Test
15-
public void jars() throws Exception {
15+
void jars() throws Exception {
1616
String jar = CONTAINER_RESOURCES + "/jakarta.annotation-api-3.0.0.jar";
1717
Container.ExecResult fetchResult = container.execInContainer(
1818
"curl", "-L", "-s", "-S", "-f",
@@ -33,7 +33,7 @@ public void jars() throws Exception {
3333
}
3434

3535
@Test
36-
public void classpath() throws Exception {
36+
void classpath() throws Exception {
3737
String snippet = String.join("\n",
3838
"%classpath " + TEST_CLASSPATH,
3939
"import org.dflib.jjava.Dummy;",
@@ -46,7 +46,7 @@ public void classpath() throws Exception {
4646
}
4747

4848
@Test
49-
public void maven() throws Exception {
49+
void maven() throws Exception {
5050
String snippet = String.join("\n",
5151
"%maven org.dflib:dflib-jupyter:1.0.0-RC1",
5252
"System.getProperty(\"java.class.path\")"
@@ -59,7 +59,7 @@ public void maven() throws Exception {
5959

6060
@Deprecated
6161
@Test
62-
public void mavenIvySyntax() throws Exception {
62+
void mavenIvySyntax() throws Exception {
6363
String snippet = String.join("\n",
6464
"%maven jakarta.annotation#jakarta.annotation-api;3.0.0",
6565
"System.getProperty(\"java.class.path\")"
@@ -72,7 +72,7 @@ public void mavenIvySyntax() throws Exception {
7272
}
7373

7474
@Test
75-
public void load() throws Exception {
75+
void load() throws Exception {
7676
String script = CONTAINER_RESOURCES + "/test-ping.jshell";
7777
String snippet = String.join("\n",
7878
"%load " + script,
@@ -85,7 +85,7 @@ public void load() throws Exception {
8585
}
8686

8787
@Test
88-
public void loadFromPOM() throws Exception {
88+
void loadFromPOM() throws Exception {
8989
String pom = CONTAINER_RESOURCES + "/test-pom.xml";
9090
String snippet = String.join("\n",
9191
"%loadFromPOM " + pom,

jjava-distro/src/test/java/org/dflib/jjava/distro/KernelStartupIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
import static org.hamcrest.CoreMatchers.not;
88
import static org.hamcrest.MatcherAssert.assertThat;
99

10-
public class KernelStartupIT extends ContainerizedKernelCase {
10+
class KernelStartupIT extends ContainerizedKernelCase {
1111

1212
@Test
13-
public void startUp() throws Exception {
13+
void startUp() throws Exception {
1414
String snippet = "1000d + 1";
1515
Container.ExecResult snippetResult = executeInKernel(snippet);
1616

0 commit comments

Comments
 (0)