From b9c6dec6df4d81214ee1ca998805e49db0265977 Mon Sep 17 00:00:00 2001 From: Alexander Kobelev Date: Tue, 24 Sep 2024 17:49:39 +0300 Subject: [PATCH] Add test --- .../test/java/com/ak/micronaut/MntTest.java | 18 ++++++++++++++++++ .../java/com/ak/micronaut/package-info.java | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 mnt/src/test/java/com/ak/micronaut/MntTest.java create mode 100644 mnt/src/test/java/com/ak/micronaut/package-info.java diff --git a/mnt/src/test/java/com/ak/micronaut/MntTest.java b/mnt/src/test/java/com/ak/micronaut/MntTest.java new file mode 100644 index 0000000..5c22c5b --- /dev/null +++ b/mnt/src/test/java/com/ak/micronaut/MntTest.java @@ -0,0 +1,18 @@ +package com.ak.micronaut; + +import io.micronaut.runtime.EmbeddedApplication; +import io.micronaut.test.extensions.junit5.annotation.MicronautTest; +import jakarta.inject.Inject; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +@MicronautTest +class MntTest { + @Inject + EmbeddedApplication application; + + @Test + void testItWorks() { + Assertions.assertTrue(application.isRunning()); + } +} diff --git a/mnt/src/test/java/com/ak/micronaut/package-info.java b/mnt/src/test/java/com/ak/micronaut/package-info.java new file mode 100644 index 0000000..b475136 --- /dev/null +++ b/mnt/src/test/java/com/ak/micronaut/package-info.java @@ -0,0 +1,4 @@ +@NullMarked +package com.ak.micronaut; + +import org.jspecify.annotations.NullMarked; \ No newline at end of file