Esempio n. 1
0
        private static IndexDefineCommand Definitions(MutableObjectIntMap <string> names, MutableObjectIntMap <string> keys)
        {
            IndexDefineCommand definitions = new IndexDefineCommand();

            definitions.Init(names, keys);
            return(definitions);
        }
Esempio n. 2
0
        private IndexDefineCommand InitIndexDefineCommand(int nbrOfEntries)
        {
            IndexDefineCommand           command    = new IndexDefineCommand();
            MutableObjectIntMap <string> indexNames = InitMap(nbrOfEntries);
            MutableObjectIntMap <string> keys       = InitMap(nbrOfEntries);

            command.Init(indexNames, keys);
            return(command);
        }
Esempio n. 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldFailToWriteIndexDefineCommandIfMapIsLargerThanShort() throws java.io.IOException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldFailToWriteIndexDefineCommandIfMapIsLargerThanShort()
        {
            // GIVEN
            InMemoryClosableChannel      channel  = new InMemoryClosableChannel(1000);
            IndexDefineCommand           command  = new IndexDefineCommand();
            MutableObjectIntMap <string> largeMap = InitMap(0xFFFF + 1);

            command.Init(largeMap, largeMap);

            // WHEN
            assertTrue(Serialize(channel, command));
        }