removed warnings
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.customer.work.model;
|
||||
|
||||
import org.jspecify.annotations.NonNull;
|
||||
import org.junit.jupiter.api.extension.AfterEachCallback;
|
||||
import org.junit.jupiter.api.extension.BeforeEachCallback;
|
||||
import org.junit.jupiter.api.extension.ExtensionContext;
|
||||
@@ -7,12 +8,12 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
|
||||
public class TestMailServerExtension implements BeforeEachCallback, AfterEachCallback {
|
||||
@Override
|
||||
public void beforeEach(ExtensionContext context) {
|
||||
public void beforeEach(@NonNull ExtensionContext context) {
|
||||
getTestMailServer(context).setup();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterEach(ExtensionContext context) {
|
||||
public void afterEach(@NonNull ExtensionContext context) {
|
||||
getTestMailServer(context).stop();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user