diff --git a/src/main/java/com/spotify/github/v3/orgs/requests/TeamCreate.java b/src/main/java/com/spotify/github/v3/orgs/requests/TeamCreate.java index 78077d15..9bd88cc6 100644 --- a/src/main/java/com/spotify/github/v3/orgs/requests/TeamCreate.java +++ b/src/main/java/com/spotify/github/v3/orgs/requests/TeamCreate.java @@ -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; @@ -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 repo_names(); /** The ID of a team to set as the parent team. */ + @SuppressWarnings("checkstyle:methodname") Optional parent_team_id(); } diff --git a/src/test/java/com/spotify/github/v3/clients/OrganisationClientTest.java b/src/test/java/com/spotify/github/v3/clients/OrganisationClientTest.java index dc6537a0..03a0e370 100644 --- a/src/test/java/com/spotify/github/v3/clients/OrganisationClientTest.java +++ b/src/test/java/com/spotify/github/v3/clients/OrganisationClientTest.java @@ -110,7 +110,7 @@ public void createTeam() throws Exception { TeamCreate.class); final CompletableFuture 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 actualResponse = organisationClient.createTeam(teamCreateRequest, "github");