Skip to content

Commit

Permalink
Sonar: JUnit 5 test classes, methods should have default visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
okotsopoulos committed Jul 11, 2024
1 parent 4484f4e commit 93f139f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

@Tag("unit")
@ExtendWith(MockitoExtension.class)
public class QueueMessageTest {
class QueueMessageTest {

@Mock private StairwayImpl stairway;
private static final String FLIGHT_ID = "flight-abc";
Expand All @@ -43,7 +43,7 @@ private static Stream<Map<String, String>> message_serde() {

@ParameterizedTest
@MethodSource
public void message_serde(Map<String, String> expectedMdc) {
void message_serde(Map<String, String> expectedMdc) {
MdcUtils.overwriteContext(expectedMdc);
QueueMessageReady messageReady = new QueueMessageReady(FLIGHT_ID);
WorkQueueProcessor workQueueProcessor = new WorkQueueProcessor(stairway);
Expand All @@ -68,7 +68,7 @@ public void message_serde(Map<String, String> expectedMdc) {

@ParameterizedTest
@ValueSource(booleans = {true, false})
public void process(boolean resumeAnswer) throws InterruptedException {
void process(boolean resumeAnswer) throws InterruptedException {
QueueMessageReady messageReady = new QueueMessageReady(FLIGHT_ID);
messageReady.setCallingThreadContext(CALLING_THREAD_CONTEXT);

Expand All @@ -91,7 +91,7 @@ public void process(boolean resumeAnswer) throws InterruptedException {
}

@Test
public void process_DatabaseOperationException() throws InterruptedException {
void process_DatabaseOperationException() throws InterruptedException {
QueueMessageReady messageReady = new QueueMessageReady(FLIGHT_ID);
messageReady.setCallingThreadContext(CALLING_THREAD_CONTEXT);

Expand Down

0 comments on commit 93f139f

Please sign in to comment.