private WsActionTester actionTester = new WsActionTester(underTest);
@Test
- public void ws_is_internal() {
- assertThat(actionTester.getDef().isInternal()).isTrue();
+ public void define_shouldMarkWebServiceAsPublic() {
+ assertThat(actionTester.getDef().isInternal()).isFalse();
}
@Test
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
import org.sonar.api.issue.DefaultTransitions;
+import org.sonar.api.server.ws.Change;
import org.sonar.api.server.ws.Request;
import org.sonar.api.server.ws.Response;
import org.sonar.api.server.ws.WebService;
.setDescription("Change the status of a Security Hotpot.<br/>" +
"Requires the 'Administer Security Hotspot' permission.")
.setSince("8.1")
- .setInternal(true);
+ .setChangelog(
+ new Change("10.1", "Endpoint visibility change from internal to public"));
action.createParam(PARAM_HOTSPOT_KEY)
.setDescription("Key of the Security Hotspot")