Esempio n. 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void before()
        public virtual void Before()
        {
            _indexMap = new IndexMap();

            _indexProxy1            = mock(typeof(IndexProxy));
            _schemaIndexDescriptor1 = forSchema(forLabel(2, 3), PROVIDER_DESCRIPTOR).withId(0).withoutCapabilities();
            _indexUpdater1          = mock(typeof(IndexUpdater));
            when(_indexProxy1.Descriptor).thenReturn(_schemaIndexDescriptor1);
            when(_indexProxy1.newUpdater(any(typeof(IndexUpdateMode)))).thenReturn(_indexUpdater1);

            _indexProxy2            = mock(typeof(IndexProxy));
            _schemaIndexDescriptor2 = forSchema(forLabel(5, 6), PROVIDER_DESCRIPTOR).withId(1).withoutCapabilities();
            IndexUpdater indexUpdater2 = mock(typeof(IndexUpdater));

            when(_indexProxy2.Descriptor).thenReturn(_schemaIndexDescriptor2);
            when(_indexProxy2.newUpdater(any(typeof(IndexUpdateMode)))).thenReturn(indexUpdater2);

            _indexProxy3            = mock(typeof(IndexProxy));
            _schemaIndexDescriptor3 = forSchema(forLabel(5, 7, 8), PROVIDER_DESCRIPTOR).withId(2).withoutCapabilities();
            IndexUpdater indexUpdater3 = mock(typeof(IndexUpdater));

            when(_indexProxy3.Descriptor).thenReturn(_schemaIndexDescriptor3);
            when(_indexProxy3.newUpdater(any(typeof(IndexUpdateMode)))).thenReturn(indexUpdater3);

            _updaterMap = new IndexUpdaterMap(_indexMap, IndexUpdateMode.Online);
        }
Esempio n. 2
0
 public PrefetchingIteratorAnonymousInnerClass(IndexUpdaterMap outerInstance)
 {
     this.outerInstance = outerInstance;
     descriptors        = outerInstance.indexMap.Descriptors();
 }