use of org.sonarsource.sonarlint.core.WsHelperImpl in project sonarlint-core by SonarSource.
the class ConnectedModeTest method generateToken.
@Test
public void generateToken() {
WsHelper ws = new WsHelperImpl();
ServerConfiguration serverConfig = getServerConfig(true);
if (!ORCHESTRATOR.getServer().version().isGreaterThanOrEquals("5.4")) {
exception.expect(UnsupportedServerException.class);
}
String token = ws.generateAuthenticationToken(serverConfig, "name", false);
assertThat(token).isNotNull();
token = ws.generateAuthenticationToken(serverConfig, "name", true);
assertThat(token).isNotNull();
}
Aggregations