Tabnine Logo
StorageBranchIndexer.getNewInstance
Code IndexAdd Tabnine to your IDE (free)

How to use
getNewInstance
method
in
rocks.inspectit.shared.cs.indexing.storage.impl.StorageBranchIndexer

Best Java code snippets using rocks.inspectit.shared.cs.indexing.storage.impl.StorageBranchIndexer.getNewInstance (Showing top 3 results out of 315)

origin: inspectIT/inspectIT

  /**
   * Test that new instance is correctly created based on the delegate indexer settings.
   */
  @Test
  public void newInstance() {
    when(delegateIndexer.sharedInstance()).thenReturn(true);
    IStorageBranchIndexer<DefaultData> instance = storageBranchIndexer.getNewInstance();
    verify(delegateIndexer, times(0)).getNewInstance();
    assertThat(instance, is(instanceOf(StorageBranchIndexer.class)));
    assertThat(((StorageBranchIndexer<DefaultData>) instance).getDelegateIndexer(), is(delegateIndexer));

    when(delegateIndexer.sharedInstance()).thenReturn(false);
    instance = storageBranchIndexer.getNewInstance();
    verify(delegateIndexer, times(1)).getNewInstance();
    assertThat(instance, is(instanceOf(StorageBranchIndexer.class)));
    assertThat(((StorageBranchIndexer<DefaultData>) instance).getDelegateIndexer(), is(not(delegateIndexer)));
  }
}
origin: inspectIT/inspectIT

when(childIndexer.getNewInstance()).thenReturn(mock(IStorageBranchIndexer.class));
when(childIndexer.getNewInstance()).thenReturn(mock(IStorageBranchIndexer.class));
origin: inspectIT/inspectIT

} else {
  IStorageBranchIndexer<E> indexer = childIndexer.getNewInstance();
  if (passId) {
    indexer.setId(id);
rocks.inspectit.shared.cs.indexing.storage.implStorageBranchIndexergetNewInstance

Popular methods of StorageBranchIndexer

  • <init>
    This constructor will generate unique ID and will not set child indexer.
  • isPassId
    Gets #passId.
  • equals
  • getDelegateIndexer
    Gets #delegateIndexer.
  • getNextTreeComponent
  • hashCode
  • setId
    Sets #id.
  • sharedInstance

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Runner (org.openjdk.jmh.runner)
  • 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