Skip to content

Commit 3247196

Browse files
committed
Remove custom env file, add test to cover GHMarketplaceAccount.getPlan
1 parent ea5867e commit 3247196

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.java-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/test/java/org/kohsuke/github/GHAppInstallationTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ public void testListRepositoriesNoPermissions() throws IOException {
5454
public void testGetMarketplaceAccount() throws IOException {
5555
GHAppInstallation appInstallation = getAppInstallationWithToken(jwtProvider3.getEncodedAuthorization());
5656

57-
GHMarketplacePlanTest.testMarketplaceAccount(appInstallation.getMarketplaceAccount());
57+
GHMarketplaceAccountPlan marketplaceAccount = appInstallation.getMarketplaceAccount();
58+
GHMarketplacePlanTest.testMarketplaceAccount(marketplaceAccount);
59+
60+
GHMarketplaceAccountPlan plan = marketplaceAccount.getPlan();
61+
assertThat(plan.getType(), equalTo(GHMarketplaceAccountType.ORGANIZATION));
5862
}
5963

6064
}

0 commit comments

Comments
 (0)