@@ -106,7 +106,7 @@ class ListeningRequiredLogicTests {
106
106
@ DisplayName ("Should return false when property throws PropertyNotFoundException" )
107
107
void shouldReturnFalseWhenPropertyThrowsPropertyNotFoundException () {
108
108
// Given
109
- when (mockPropertyProvider .getProperty ("testomatio.listening " ))
109
+ when (mockPropertyProvider .getProperty ("testomatio" ))
110
110
.thenThrow (new PropertyNotFoundException ("Property not found" ));
111
111
112
112
// When
@@ -120,7 +120,7 @@ void shouldReturnFalseWhenPropertyThrowsPropertyNotFoundException() {
120
120
@ DisplayName ("Should return false when property throws RuntimeException" )
121
121
void shouldReturnFalseWhenPropertyThrowsRuntimeException () {
122
122
// Given
123
- when (mockPropertyProvider .getProperty ("testomatio.listening " ))
123
+ when (mockPropertyProvider .getProperty ("testomatio" ))
124
124
.thenThrow (new RuntimeException ("Unexpected error" ));
125
125
126
126
// When
@@ -134,7 +134,7 @@ void shouldReturnFalseWhenPropertyThrowsRuntimeException() {
134
134
@ DisplayName ("Should return false when property returns null" )
135
135
void shouldReturnFalseWhenPropertyReturnsNull () {
136
136
// Given
137
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn (null );
137
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn (null );
138
138
139
139
// When
140
140
junitListener .beforeAll (mockExtensionContext );
@@ -152,7 +152,7 @@ class BeforeAllTests {
152
152
@ DisplayName ("Should increment suite counter when listening is required" )
153
153
void shouldIncrementSuiteCounterWhenListeningIsRequired () {
154
154
// Given
155
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
155
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
156
156
157
157
// When
158
158
junitListener .beforeAll (mockExtensionContext );
@@ -165,7 +165,7 @@ void shouldIncrementSuiteCounterWhenListeningIsRequired() {
165
165
@ DisplayName ("Should not increment suite counter when listening is not required" )
166
166
void shouldNotIncrementSuiteCounterWhenListeningIsNotRequired () {
167
167
// Given
168
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn (null );
168
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn (null );
169
169
170
170
// When
171
171
junitListener .beforeAll (mockExtensionContext );
@@ -178,7 +178,7 @@ void shouldNotIncrementSuiteCounterWhenListeningIsNotRequired() {
178
178
@ DisplayName ("Should handle multiple beforeAll calls when listening is required" )
179
179
void shouldHandleMultipleBeforeAllCallsWhenListeningIsRequired () {
180
180
// Given
181
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("enabled" );
181
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("enabled" );
182
182
183
183
// When
184
184
junitListener .beforeAll (mockExtensionContext );
@@ -198,7 +198,7 @@ class AfterAllTests {
198
198
@ DisplayName ("Should export test class and decrement suite counter when listening is required" )
199
199
void shouldExportTestClassAndDecrementSuiteCounterWhenListeningIsRequired () {
200
200
// Given
201
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
201
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
202
202
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .of (TestClassA .class ));
203
203
204
204
// When
@@ -213,7 +213,7 @@ void shouldExportTestClassAndDecrementSuiteCounterWhenListeningIsRequired() {
213
213
@ DisplayName ("Should not export or decrement when listening is not required" )
214
214
void shouldNotExportOrDecrementWhenListeningIsNotRequired () {
215
215
// Given
216
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn (null );
216
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn (null );
217
217
218
218
// When
219
219
junitListener .afterAll (mockExtensionContext );
@@ -227,7 +227,7 @@ void shouldNotExportOrDecrementWhenListeningIsNotRequired() {
227
227
@ DisplayName ("Should only decrement suite counter when no test class present" )
228
228
void shouldOnlyDecrementSuiteCounterWhenNoTestClassPresent () {
229
229
// Given
230
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
230
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
231
231
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .empty ());
232
232
233
233
// When
@@ -247,7 +247,7 @@ class BeforeEachTests {
247
247
@ DisplayName ("Should not perform any operations in beforeEach regardless of listening status" )
248
248
void shouldNotPerformAnyOperationsInBeforeEach () {
249
249
// Given
250
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
250
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
251
251
252
252
// When
253
253
junitListener .beforeEach (mockExtensionContext );
@@ -269,7 +269,7 @@ class TestDisabledTests {
269
269
void shouldReportTestAsDisabledWhenListeningIsRequired () {
270
270
// Given
271
271
String reason = "Test disabled for maintenance" ;
272
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
272
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
273
273
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .of (TestClassA .class ));
274
274
275
275
// When
@@ -285,7 +285,7 @@ void shouldReportTestAsDisabledWhenListeningIsRequired() {
285
285
void shouldNotReportWhenListeningIsNotRequired () {
286
286
// Given
287
287
String reason = "Test disabled" ;
288
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn (null );
288
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn (null );
289
289
290
290
// When
291
291
junitListener .testDisabled (mockExtensionContext , Optional .of (reason ));
@@ -299,7 +299,7 @@ void shouldNotReportWhenListeningIsNotRequired() {
299
299
@ DisplayName ("Should use default message when no reason provided" )
300
300
void shouldUseDefaultMessageWhenNoReasonProvided () {
301
301
// Given
302
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
302
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
303
303
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .of (TestClassA .class ));
304
304
305
305
// When
@@ -319,7 +319,7 @@ class TestSuccessfulTests {
319
319
@ DisplayName ("Should report test as successful when listening is required" )
320
320
void shouldReportTestAsSuccessfulWhenListeningIsRequired () {
321
321
// Given
322
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
322
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
323
323
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .of (TestClassA .class ));
324
324
325
325
// When
@@ -334,7 +334,7 @@ void shouldReportTestAsSuccessfulWhenListeningIsRequired() {
334
334
@ DisplayName ("Should not report when listening is not required" )
335
335
void shouldNotReportWhenListeningIsNotRequired () {
336
336
// Given
337
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn (null );
337
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn (null );
338
338
339
339
// When
340
340
junitListener .testSuccessful (mockExtensionContext );
@@ -354,7 +354,7 @@ class TestAbortedTests {
354
354
void shouldReportTestAsAbortedWhenListeningIsRequired () {
355
355
// Given
356
356
Throwable cause = new RuntimeException ("Test was aborted" );
357
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
357
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
358
358
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .of (TestClassA .class ));
359
359
360
360
// When
@@ -370,7 +370,7 @@ void shouldReportTestAsAbortedWhenListeningIsRequired() {
370
370
void shouldNotReportWhenListeningIsNotRequired () {
371
371
// Given
372
372
Throwable cause = new RuntimeException ("Test was aborted" );
373
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn (null );
373
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn (null );
374
374
375
375
// When
376
376
junitListener .testAborted (mockExtensionContext , cause );
@@ -385,7 +385,7 @@ void shouldNotReportWhenListeningIsNotRequired() {
385
385
void shouldHandleNullCauseMessage () {
386
386
// Given
387
387
Throwable cause = new RuntimeException (); // No message
388
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
388
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
389
389
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .of (TestClassA .class ));
390
390
391
391
// When
@@ -406,7 +406,7 @@ class TestFailedTests {
406
406
void shouldReportTestAsFailedWhenListeningIsRequired () {
407
407
// Given
408
408
Throwable cause = new AssertionError ("Expected <5> but was <3>" );
409
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
409
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
410
410
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .of (TestClassA .class ));
411
411
412
412
// When
@@ -422,7 +422,7 @@ void shouldReportTestAsFailedWhenListeningIsRequired() {
422
422
void shouldNotReportWhenListeningIsNotRequired () {
423
423
// Given
424
424
Throwable cause = new AssertionError ("Test failed" );
425
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn (null );
425
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn (null );
426
426
427
427
// When
428
428
junitListener .testFailed (mockExtensionContext , cause );
@@ -437,7 +437,7 @@ void shouldNotReportWhenListeningIsNotRequired() {
437
437
void shouldHandleNullCauseMessage () {
438
438
// Given
439
439
Throwable cause = new AssertionError (); // No message
440
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
440
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
441
441
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .of (TestClassA .class ));
442
442
443
443
// When
@@ -460,7 +460,7 @@ void shouldExportDifferentTestClassesSeparately() {
460
460
ExtensionContext contextA = org .mockito .Mockito .mock (ExtensionContext .class );
461
461
ExtensionContext contextB = org .mockito .Mockito .mock (ExtensionContext .class );
462
462
463
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
463
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
464
464
when (contextA .getTestClass ()).thenReturn (Optional .of (TestClassA .class ));
465
465
when (contextA .getUniqueId ()).thenReturn ("test-context-A" );
466
466
when (contextB .getTestClass ()).thenReturn (Optional .of (TestClassB .class ));
@@ -480,7 +480,7 @@ void shouldExportDifferentTestClassesSeparately() {
480
480
@ DisplayName ("Should not export when listening is not required" )
481
481
void shouldNotExportWhenListeningIsNotRequired () {
482
482
// Given
483
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn (null );
483
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn (null );
484
484
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .of (TestClassA .class ));
485
485
486
486
// When
@@ -495,7 +495,7 @@ void shouldNotExportWhenListeningIsNotRequired() {
495
495
@ DisplayName ("Should not export when test class is not present" )
496
496
void shouldNotExportWhenTestClassIsNotPresent () {
497
497
// Given
498
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
498
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
499
499
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .empty ());
500
500
501
501
// When
@@ -514,7 +514,7 @@ class PropertyProviderExceptionHandlingTests {
514
514
@ DisplayName ("Should handle PropertyNotFoundException gracefully in all callbacks" )
515
515
void shouldHandlePropertyNotFoundExceptionGracefullyInAllCallbacks () {
516
516
// Given
517
- when (mockPropertyProvider .getProperty ("testomatio.listening " ))
517
+ when (mockPropertyProvider .getProperty ("testomatio" ))
518
518
.thenThrow (new PropertyNotFoundException ("Property not found" ));
519
519
520
520
// When & Then - all callbacks should handle exception gracefully
@@ -542,7 +542,7 @@ void shouldHandlePropertyNotFoundExceptionGracefullyInAllCallbacks() {
542
542
@ DisplayName ("Should handle unexpected RuntimeException in property access" )
543
543
void shouldHandleUnexpectedRuntimeExceptionInPropertyAccess () {
544
544
// Given
545
- when (mockPropertyProvider .getProperty ("testomatio.listening " ))
545
+ when (mockPropertyProvider .getProperty ("testomatio" ))
546
546
.thenThrow (new RuntimeException ("Unexpected property access error" ));
547
547
548
548
// When & Then - should not propagate exception
@@ -557,7 +557,7 @@ void shouldHandleUnexpectedRuntimeExceptionInPropertyAccess() {
557
557
@ DisplayName ("Should handle intermittent property provider failures" )
558
558
void shouldHandleIntermittentPropertyProviderFailures () {
559
559
// Given - first call fails, second succeeds
560
- when (mockPropertyProvider .getProperty ("testomatio.listening " ))
560
+ when (mockPropertyProvider .getProperty ("testomatio" ))
561
561
.thenThrow (new RuntimeException ("Temporary failure" ))
562
562
.thenReturn ("true" );
563
563
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .of (TestClassA .class ));
@@ -580,7 +580,7 @@ class IntegrationTests {
580
580
@ DisplayName ("Should handle complete test lifecycle when listening is required" )
581
581
void shouldHandleCompleteTestLifecycleWhenListeningIsRequired () {
582
582
// Given
583
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("enabled" );
583
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("enabled" );
584
584
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .of (TestClassA .class ));
585
585
586
586
// When - simulate complete test lifecycle
@@ -603,7 +603,7 @@ void shouldHandleCompleteTestLifecycleWhenListeningIsRequired() {
603
603
@ DisplayName ("Should handle complete test lifecycle when listening is not required" )
604
604
void shouldHandleCompleteTestLifecycleWhenListeningIsNotRequired () {
605
605
// Given
606
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn (null );
606
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn (null );
607
607
608
608
// When - simulate complete test lifecycle
609
609
junitListener .beforeAll (mockExtensionContext );
@@ -623,7 +623,7 @@ void shouldHandleCompleteTestLifecycleWhenListeningIsNotRequired() {
623
623
@ DisplayName ("Should be thread-safe for concurrent test execution" )
624
624
void shouldBeThreadSafeForConcurrentTestExecution () {
625
625
// Given
626
- when (mockPropertyProvider .getProperty ("testomatio.listening " )).thenReturn ("true" );
626
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("true" );
627
627
when (mockExtensionContext .getTestClass ()).thenReturn (Optional .of (TestClassA .class ));
628
628
629
629
// When - simulate concurrent test execution
0 commit comments