1 parent 023633d commit 2fdb508Copy full SHA for 2fdb508
3 files changed
hello/build.gradle
@@ -4,7 +4,7 @@ plugins {
4
}
5
6
dependencies {
7
- implementation libs.jspecify
+ compileOnly libs.jspecify
8
implementation libs.slf4j
9
runtimeOnly libs.logback
10
hello/src/main/java/module-info.java
@@ -1,5 +1,5 @@
1
module com.ak.app {
2
- requires org.jspecify;
+ requires static org.jspecify;
3
requires org.slf4j;
exports com.ak.app;
hello/src/test/java/com/ak/app/MainAppTest.java
@@ -1,12 +1,11 @@
package com.ak.app;
+import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
-import static org.assertj.core.api.Assertions.assertThatNoException;
-
class MainAppTest {
@Test
void testMain() {
- assertThatNoException().isThrownBy(MainApp::main);
+ Assertions.assertThatNoException().isThrownBy(MainApp::main);
11
12
0 commit comments