File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
src/test/java/com/contentstack/sdk/marketplace Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 161161 <artifactId >maven-surefire-plugin</artifactId >
162162 <version >3.0.0-M5</version >
163163 <configuration >
164- <skipTests >true</ skipTests >
164+ <reportsDirectory > ${project.build.directory} /surefire-reports</ reportsDirectory >
165165 <testFailureIgnore >true</testFailureIgnore >
166166 </configuration >
167167 </plugin >
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ void testConstructorWithNullOrganizationUidAndWithValidHost() {
3636 //String organizationUid = "nullOrganizationUid123";
3737 String organizationUid = null ;
3838 String host = "developerhub-api.contentstack.com" ;
39- assertThrows (IllegalArgumentException .class , () -> new Marketplace .Builder (organizationUid )
39+ assertThrows (NullPointerException .class , () -> new Marketplace .Builder (organizationUid )
4040 .host (host )
4141 .build ());
4242 }
@@ -63,7 +63,7 @@ void testConstructorWithNullOrganizationUid() {
6363 void testConstructorWithNullOrganizationUidNullCheck () {
6464 // Arrange
6565 String organizationUid = null ;
66- assertThrows (IllegalArgumentException .class , () -> new Marketplace .Builder (organizationUid )
66+ assertThrows (NullPointerException .class , () -> new Marketplace .Builder (organizationUid )
6767 .build ());
6868 }
6969
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ void testParamsAndHeaders() {
6060 Assertions .assertEquals (5 , request .headers ().size ());
6161 Assertions .assertEquals ("api.contentstack.io" , request .url ().host ());
6262 Assertions .assertNull (request .body ());
63- Assertions .assertEquals ("https://api.contentstack.io/installations/orgId999999999 /locations/configuration?param1=value1" , request .url ().toString ());
63+ Assertions .assertEquals ("https://api.contentstack.io/installations/" + ORG_UID + " /locations/configuration?param1=value1" , request .url ().toString ());
6464 }
6565
6666
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ void testParamsAndHeaders() {
111111 Assertions .assertEquals (5 , request .headers ().size ());
112112 Assertions .assertEquals ("api.contentstack.io" , request .url ().host ());
113113 Assertions .assertNull (request .body ());
114- Assertions .assertEquals ("https://api.contentstack.io/installations/installation_id/webhooks/orgId999999999 /executions?limit=10&skip=5&sort=asc&order=order" , request .url ().toString ());
114+ Assertions .assertEquals ("https://api.contentstack.io/installations/installation_id/webhooks/" + WEBHOOK_ID + " /executions?limit=10&skip=5&sort=asc&order=order" , request .url ().toString ());
115115 }
116116
117117
You can’t perform that action at this time.
0 commit comments