use of org.sonarsource.sonarlint.core.serverapi.organization.ServerOrganization in project sonarlint-core by SonarSource.
the class DefaultRemoteOrganizationTests method testRoundTrip.
@Test
void testRoundTrip() {
var org = Organization.newBuilder().setName("name").setKey("key").setDescription("desc").build();
ServerOrganization remoteOrg = new DefaultRemoteOrganization(org);
assertThat(remoteOrg.getKey()).isEqualTo("key");
assertThat(remoteOrg.getName()).isEqualTo("name");
assertThat(remoteOrg.getDescription()).isEqualTo("desc");
}
Aggregations