@@ -34,7 +34,7 @@ void setUp() {
34
34
@ DisplayName ("Should build create run URL successfully" )
35
35
void buildCreateRunUrl_ValidProperties_ShouldReturnCorrectUrl () {
36
36
when (mockPropertyProvider .getProperty ("testomatio.url" )).thenReturn ("https://api.testomat.io" );
37
- when (mockPropertyProvider .getProperty ("testomatio.api.key " )).thenReturn ("test-api-key" );
37
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("test-api-key" );
38
38
39
39
try (MockedStatic <PropertyProviderFactoryImpl > mockedStatic =
40
40
mockStatic (PropertyProviderFactoryImpl .class )) {
@@ -56,7 +56,7 @@ void buildCreateRunUrl_ValidProperties_ShouldReturnCorrectUrl() {
56
56
@ DisplayName ("Should handle URL with trailing slash" )
57
57
void buildCreateRunUrl_UrlWithTrailingSlash_ShouldNormalizeUrl () {
58
58
when (mockPropertyProvider .getProperty ("testomatio.url" )).thenReturn ("https://api.testomat.io/" );
59
- when (mockPropertyProvider .getProperty ("testomatio.api.key " )).thenReturn ("api-key" );
59
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("api-key" );
60
60
61
61
try (MockedStatic <PropertyProviderFactoryImpl > mockedStatic =
62
62
mockStatic (PropertyProviderFactoryImpl .class )) {
@@ -75,7 +75,7 @@ void buildCreateRunUrl_UrlWithTrailingSlash_ShouldNormalizeUrl() {
75
75
@ DisplayName ("Should URL encode API key" )
76
76
void buildCreateRunUrl_SpecialCharactersInApiKey_ShouldEncodeCorrectly () {
77
77
when (mockPropertyProvider .getProperty ("testomatio.url" )).thenReturn ("https://api.testomat.io" );
78
- when (mockPropertyProvider .getProperty ("testomatio.api.key " )).thenReturn ("key with spaces & special chars" );
78
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("key with spaces & special chars" );
79
79
80
80
try (MockedStatic <PropertyProviderFactoryImpl > mockedStatic =
81
81
mockStatic (PropertyProviderFactoryImpl .class )) {
@@ -135,7 +135,7 @@ void buildCreateRunUrl_InvalidProtocol_ShouldThrowException() {
135
135
@ DisplayName ("Should throw exception for null API key" )
136
136
void buildCreateRunUrl_NullApiKey_ShouldThrowException () {
137
137
when (mockPropertyProvider .getProperty ("testomatio.url" )).thenReturn ("https://api.testomat.io" );
138
- when (mockPropertyProvider .getProperty ("testomatio.api.key " )).thenReturn (null );
138
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn (null );
139
139
140
140
try (MockedStatic <PropertyProviderFactoryImpl > mockedStatic =
141
141
mockStatic (PropertyProviderFactoryImpl .class )) {
@@ -157,7 +157,7 @@ void buildCreateRunUrl_NullApiKey_ShouldThrowException() {
157
157
void buildReportTestUrl_ValidInput_ShouldReturnCorrectUrl () {
158
158
String testRunUid = "run-123" ;
159
159
when (mockPropertyProvider .getProperty ("testomatio.url" )).thenReturn ("https://api.testomat.io" );
160
- when (mockPropertyProvider .getProperty ("testomatio.api.key " )).thenReturn ("test-key" );
160
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("test-key" );
161
161
162
162
try (MockedStatic <PropertyProviderFactoryImpl > mockedStatic =
163
163
mockStatic (PropertyProviderFactoryImpl .class )) {
@@ -211,7 +211,7 @@ void buildReportTestUrl_EmptyTestRunUid_ShouldThrowException() {
211
211
void buildReportTestUrl_WhitespaceInUid_ShouldTrimCorrectly () {
212
212
String testRunUid = " run-123 " ;
213
213
when (mockPropertyProvider .getProperty ("testomatio.url" )).thenReturn ("https://api.testomat.io" );
214
- when (mockPropertyProvider .getProperty ("testomatio.api.key " )).thenReturn ("test-key" );
214
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("test-key" );
215
215
216
216
try (MockedStatic <PropertyProviderFactoryImpl > mockedStatic =
217
217
mockStatic (PropertyProviderFactoryImpl .class )) {
@@ -231,7 +231,7 @@ void buildReportTestUrl_WhitespaceInUid_ShouldTrimCorrectly() {
231
231
void buildFinishTestRunUrl_ValidInput_ShouldReturnCorrectUrl () {
232
232
String testRunUid = "run-456" ;
233
233
when (mockPropertyProvider .getProperty ("testomatio.url" )).thenReturn ("https://api.testomat.io" );
234
- when (mockPropertyProvider .getProperty ("testomatio.api.key " )).thenReturn ("finish-key" );
234
+ when (mockPropertyProvider .getProperty ("testomatio" )).thenReturn ("finish-key" );
235
235
236
236
try (MockedStatic <PropertyProviderFactoryImpl > mockedStatic =
237
237
mockStatic (PropertyProviderFactoryImpl .class )) {
0 commit comments