Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void reusableTypeConfiguration()
        public virtual void ReusableTypeConfiguration()
        {
            IdTypeConfigurationProvider provider          = CreateIdTypeProvider();
            IdTypeConfiguration         typeConfiguration = provider.GetIdTypeConfiguration(_reusableType);

            assertTrue(typeConfiguration.AllowAggressiveReuse());
            assertEquals(IdTypeConfiguration.AGGRESSIVE_GRAB_SIZE, typeConfiguration.GrabSize);
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void nonReusableTypeConfiguration()
        public virtual void NonReusableTypeConfiguration()
        {
            IdTypeConfigurationProvider provider          = CreateIdTypeProvider();
            IdTypeConfiguration         typeConfiguration = provider.GetIdTypeConfiguration(IdType.RELATIONSHIP);

            assertFalse("Relationship ids are not reusable.", typeConfiguration.AllowAggressiveReuse());
            assertEquals("Relationship ids are not reusable.", IdTypeConfiguration.DEFAULT_GRAB_SIZE, typeConfiguration.GrabSize);
        }