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

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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