Tabnine Logo
UserQuery$Builder.includeDeactivated
Code IndexAdd Tabnine to your IDE (free)

How to use
includeDeactivated
method
in
org.sonar.api.user.UserQuery$Builder

Best Java code snippets using org.sonar.api.user.UserQuery$Builder.includeDeactivated (Showing top 2 results out of 315)

origin: SonarSource/sonarqube

@Test
public void test_all() throws Exception {
 UserQuery all = UserQuery.builder().includeDeactivated().build();
 assertThat(all.includeDeactivated()).isTrue();
 assertThat(all.logins()).isNull();
}
origin: SonarSource/sonarqube

@Test
public void selectUsersByQuery_all() {
 db.users().insertUser(user -> user.setLogin("user").setName("User"));
 db.users().insertUser(user -> user.setLogin("inactive_user").setName("Disabled").setActive(false));
 List<UserDto> users = underTest.selectUsers(session, UserQuery.builder().includeDeactivated().build());
 assertThat(users).hasSize(2);
}
org.sonar.api.userUserQuery$BuilderincludeDeactivated

Popular methods of UserQuery$Builder

  • build
  • <init>
  • mustBeRoot
  • logins
  • searchText
  • mustNotBeRoot

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now