File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/java/com/contentstack/sdk/marketplace Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 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 (NullPointerException .class , () -> new Marketplace .Builder (organizationUid )
39+ assertThrows (IllegalArgumentException .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 (NullPointerException .class , () -> new Marketplace .Builder (organizationUid )
66+ assertThrows (IllegalArgumentException .class , () -> new Marketplace .Builder (organizationUid )
6767 .build ());
6868 }
6969
You can’t perform that action at this time.
0 commit comments