Skip to content

Commit b08cfb2

Browse files
Make test methods public
1 parent 31ab44d commit b08cfb2

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

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
@@ -11,10 +11,10 @@
1111
import static org.hamcrest.Matchers.not;
1212
import static org.junit.jupiter.api.Assertions.assertEquals;
1313

14-
class KernelEnvIT extends ContainerizedKernelCase {
14+
public class KernelEnvIT extends ContainerizedKernelCase {
1515

1616
@Test
17-
void compilerOpts() throws Exception {
17+
public void compilerOpts() throws Exception {
1818
Map<String, String> env = Map.of(Env.JJAVA_COMPILER_OPTS, "-source 9");
1919
String snippet = "var value = 1;";
2020
Container.ExecResult snippetResult = executeInKernel(snippet, env);
@@ -29,7 +29,7 @@ void compilerOpts() throws Exception {
2929
}
3030

3131
@Test
32-
void timeout() throws Exception {
32+
public void timeout() throws Exception {
3333
Map<String, String> env = Map.of(Env.JJAVA_TIMEOUT, "3000");
3434
String snippet = "Thread.sleep(5000);";
3535
Container.ExecResult snippetResult = executeInKernel(snippet, env);
@@ -42,7 +42,7 @@ void timeout() throws Exception {
4242
}
4343

4444
@Test
45-
void classpath() throws Exception {
45+
public void classpath() throws Exception {
4646
Map<String, String> env = Map.of(Env.JJAVA_CLASSPATH, TEST_CLASSPATH);
4747
String snippet = String.join("\n",
4848
"import org.dflib.jjava.Dummy;",
@@ -56,7 +56,7 @@ void classpath() throws Exception {
5656
}
5757

5858
@Test
59-
void startUpScriptsPath() throws Exception {
59+
public void startUpScriptsPath() throws Exception {
6060
Map<String, String> env = Map.of(Env.JJAVA_STARTUP_SCRIPTS_PATH, CONTAINER_RESOURCES + "/test-ping.jshell");
6161
String snippet = "ping()";
6262
Container.ExecResult snippetResult = executeInKernel(snippet, env);
@@ -67,7 +67,7 @@ void startUpScriptsPath() throws Exception {
6767
}
6868

6969
@Test
70-
void startUpScript() throws Exception {
70+
public void startUpScript() throws Exception {
7171
Map<String, String> env = Map.of(Env.JJAVA_STARTUP_SCRIPT, "public String ping() { return \"pong!\"; }");
7272
String snippet = "ping()";
7373
Container.ExecResult snippetResult = executeInKernel(snippet, env);
@@ -78,7 +78,7 @@ void startUpScript() throws Exception {
7878
}
7979

8080
@Test
81-
void loadExtensions_Default() throws Exception {
81+
public void loadExtensions_Default() throws Exception {
8282
String snippet = "printf(\"Hello, %s!\", \"world\");";
8383
Container.ExecResult snippetResult = executeInKernel(snippet);
8484

@@ -88,7 +88,7 @@ void loadExtensions_Default() throws Exception {
8888
}
8989

9090
@Test
91-
void loadExtensions_Disable() throws Exception {
91+
public void loadExtensions_Disable() throws Exception {
9292
Map<String, String> env = Map.of(Env.JJAVA_LOAD_EXTENSIONS, "0");
9393
String snippet = "printf(\"Hello, %s!\", \"world\");";
9494
Container.ExecResult snippetResult = executeInKernel(snippet, env);
@@ -101,7 +101,7 @@ void loadExtensions_Disable() throws Exception {
101101
}
102102

103103
@Test
104-
void jvmOpts() throws Exception {
104+
public void jvmOpts() throws Exception {
105105
Map<String, String> env = Map.of(Env.JJAVA_JVM_OPTS, "-Xmx300m");
106106
String snippet = "Runtime.getRuntime().maxMemory()";
107107
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.Matchers.not;
99
import static org.junit.jupiter.api.Assertions.assertEquals;
1010

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

1313
@Deprecated
1414
@Test
15-
void jars() throws Exception {
15+
public 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",
@@ -34,7 +34,7 @@ void jars() throws Exception {
3434
}
3535

3636
@Test
37-
void classpath() throws Exception {
37+
public void classpath() throws Exception {
3838
String snippet = String.join("\n",
3939
"%classpath " + TEST_CLASSPATH,
4040
"import org.dflib.jjava.Dummy;",
@@ -48,7 +48,7 @@ void classpath() throws Exception {
4848
}
4949

5050
@Test
51-
void maven() throws Exception {
51+
public void maven() throws Exception {
5252
String snippet = String.join("\n",
5353
"%maven org.dflib:dflib-jupyter:1.0.0-RC1",
5454
"System.getProperty(\"java.class.path\")"
@@ -62,7 +62,7 @@ void maven() throws Exception {
6262

6363
@Deprecated
6464
@Test
65-
void mavenIvySyntax() throws Exception {
65+
public void mavenIvySyntax() throws Exception {
6666
String snippet = String.join("\n",
6767
"%maven jakarta.annotation#jakarta.annotation-api;3.0.0",
6868
"System.getProperty(\"java.class.path\")"
@@ -76,7 +76,7 @@ void mavenIvySyntax() throws Exception {
7676
}
7777

7878
@Test
79-
void load() throws Exception {
79+
public void load() throws Exception {
8080
String script = CONTAINER_RESOURCES + "/test-ping.jshell";
8181
String snippet = String.join("\n",
8282
"%load " + script,
@@ -90,7 +90,7 @@ void load() throws Exception {
9090
}
9191

9292
@Test
93-
void loadFromPOM() throws Exception {
93+
public void loadFromPOM() throws Exception {
9494
String pom = CONTAINER_RESOURCES + "/test-pom.xml";
9595
String snippet = String.join("\n",
9696
"%loadFromPOM " + pom,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
import static org.hamcrest.Matchers.not;
1212
import static org.junit.jupiter.api.Assertions.assertEquals;
1313

14-
class KernelStartupIT extends ContainerizedKernelCase {
14+
public class KernelStartupIT extends ContainerizedKernelCase {
1515

1616
@Test
17-
void startUp() throws Exception {
17+
public void startUp() throws Exception {
1818
String snippet = "1000d + 1";
1919
Container.ExecResult snippetResult = executeInKernel(snippet);
2020

@@ -24,7 +24,7 @@ void startUp() throws Exception {
2424
}
2525

2626
@Test
27-
void startUp_scriptRequiresClasspath() throws Exception {
27+
public void startUp_scriptRequiresClasspath() throws Exception {
2828
Map<String, String> env = Map.of(
2929
Env.JJAVA_CLASSPATH, TEST_CLASSPATH,
3030
Env.JJAVA_STARTUP_SCRIPT, "var obj = new org.dflib.jjava.Dummy()"

0 commit comments

Comments
 (0)