Skip to content

Commit 5b46ec7

Browse files
updated test cases
1 parent 46bcafd commit 5b46ec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/contentstack/sdk/marketplace/MarketplaceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)