Moved test files to better location
This commit is contained in:
@@ -150,6 +150,7 @@ class AmazonProductDataSourceTest {
|
|||||||
|
|
||||||
AmazonProductDataSource dataSource = mock(AmazonProductDataSource.class);
|
AmazonProductDataSource dataSource = mock(AmazonProductDataSource.class);
|
||||||
URL mockURL = mock(URL.class);
|
URL mockURL = mock(URL.class);
|
||||||
|
when(dataSource.getDataOrigin()).thenReturn(demoDataOrigin);
|
||||||
when(dataSource.createApiUrl(demoProductId)).thenReturn(mockURL);
|
when(dataSource.createApiUrl(demoProductId)).thenReturn(mockURL);
|
||||||
when(dataSource.getProductDTOById(demoProductId)).thenCallRealMethod();
|
when(dataSource.getProductDTOById(demoProductId)).thenCallRealMethod();
|
||||||
HttpURLConnection mockConnection = mock(HttpURLConnection.class);
|
HttpURLConnection mockConnection = mock(HttpURLConnection.class);
|
||||||
@@ -170,6 +171,7 @@ class AmazonProductDataSourceTest {
|
|||||||
// Set up the test environment
|
// Set up the test environment
|
||||||
AmazonProductDataSource dataSource = mock(AmazonProductDataSource.class);
|
AmazonProductDataSource dataSource = mock(AmazonProductDataSource.class);
|
||||||
URL mockURL = mock(URL.class);
|
URL mockURL = mock(URL.class);
|
||||||
|
when(dataSource.getDataOrigin()).thenReturn(demoDataOrigin);
|
||||||
when(dataSource.createApiUrl(demoProductId)).thenReturn(mockURL);
|
when(dataSource.createApiUrl(demoProductId)).thenReturn(mockURL);
|
||||||
when(dataSource.getProductDTOById(demoProductId)).thenCallRealMethod();
|
when(dataSource.getProductDTOById(demoProductId)).thenCallRealMethod();
|
||||||
when(dataSource.buildProductDTO(any(), anyString())).thenCallRealMethod();
|
when(dataSource.buildProductDTO(any(), anyString())).thenCallRealMethod();
|
||||||
|
|||||||
1
src/test/resources/empty.properties
Normal file
1
src/test/resources/empty.properties
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
1
src/test/resources/testdata.properties
Normal file
1
src/test/resources/testdata.properties
Normal file
@@ -0,0 +1 @@
|
|||||||
|
API_KEY=keyIsHere
|
||||||
@@ -1 +0,0 @@
|
|||||||
API_KEY=keyIsHere
|
|
||||||
Reference in New Issue
Block a user