Skip to content

Commit

Permalink
fix: build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ebk45 committed Jul 4, 2023
1 parent 0ab4d22 commit 5e84a8f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions src/main/java/com/spotify/github/v3/orgs/requests/TeamCreate.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*-
* -\-\-
* github-api
* --
* Copyright (C) 2016 - 2020 Spotify AB
* --
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* -/-/-
*/
package com.spotify.github.v3.orgs.requests;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
Expand Down Expand Up @@ -29,8 +48,10 @@ public interface TeamCreate {
/** The full name (e.g., "organization-name/repository-name")
* of repositories to add the team to.
*/
@SuppressWarnings("checkstyle:methodname")
Optional<String> repo_names();

/** The ID of a team to set as the parent team. */
@SuppressWarnings("checkstyle:methodname")
Optional<String> parent_team_id();
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void createTeam() throws Exception {
TeamCreate.class);

final CompletableFuture<Team> fixtureResponse = completedFuture(json.fromJson(
getFixture("teams_patch_response.json"),
getFixture("team_get.json"),
Team.class));
when(github.post(any(), any(), eq(Team.class))).thenReturn(fixtureResponse);
final CompletableFuture<Team> actualResponse = organisationClient.createTeam(teamCreateRequest, "github");
Expand Down

0 comments on commit 5e84a8f

Please sign in to comment.