Skip to content

Commit

Permalink
Conditionally disable test
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Feb 29, 2024
1 parent 71b1bd3 commit 3f243ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/mpo/dayon/common/network/NetworkSenderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import mpo.dayon.common.squeeze.CompressionMethod;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIf;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;

Expand Down Expand Up @@ -42,7 +43,12 @@ void init() {
sender.start(1);
}

static boolean isLocaleNull() {
return InputContext.getInstance().getLocale() == null;
}

@Test
@DisabledIf("isLocaleNull")
void sendHello() throws IOException {
// given
final char osId = 'l';
Expand All @@ -57,6 +63,7 @@ void sendHello() throws IOException {
verify(outMock).writeUTF(inputLocale);
}


@Test
void sendCapture() throws IOException {
// given
Expand Down

0 comments on commit 3f243ce

Please sign in to comment.