File tree Expand file tree Collapse file tree 5 files changed +19
-6
lines changed
src/test/java/com/contentstack/sdk/marketplace Expand file tree Collapse file tree 5 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 1+ # Changelog
2+
3+ A brief description of what changes project contains
4+
5+ #### v1.0.1
6+
7+ - added surefire plugin to generate test report
8+
9+ ## Introducing Release Of Java Marketplace SDK
10+
11+ #### v1.0.0
12+
13+ - Initial release for Marketplace SDK
Original file line number Diff line number Diff line change 55 <modelVersion >4.0.0</modelVersion >
66 <groupId >com.contentstack.sdk</groupId >
77 <artifactId >marketplace</artifactId >
8- <version >1.0.0 </version >
8+ <version >1.0.1 </version >
99 <description >Contentstack Java Management SDK for Content Management API</description >
1010 <url >https://github.com/contentstack/contentstack-management-java/</url >
1111
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