Skip to content

Commit

Permalink
updated test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithad0703 committed Jun 6, 2024
1 parent 46bcafd commit 5b46ec7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void testConstructorWithNullOrganizationUidAndWithValidHost() {
//String organizationUid = "nullOrganizationUid123";
String organizationUid = null;
String host = "developerhub-api.contentstack.com";
assertThrows(NullPointerException.class, () -> new Marketplace.Builder(organizationUid)
assertThrows(IllegalArgumentException.class, () -> new Marketplace.Builder(organizationUid)
.host(host)
.build());
}
Expand All @@ -63,7 +63,7 @@ void testConstructorWithNullOrganizationUid() {
void testConstructorWithNullOrganizationUidNullCheck() {
// Arrange
String organizationUid = null;
assertThrows(NullPointerException.class, () -> new Marketplace.Builder(organizationUid)
assertThrows(IllegalArgumentException.class, () -> new Marketplace.Builder(organizationUid)
.build());
}

Expand Down

0 comments on commit 5b46ec7

Please sign in to comment.