Ejemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldCreateEqualRelTypes()
        public virtual void ShouldCreateEqualRelTypes()
        {
            RelationTypeSchemaDescriptor desc1 = SchemaDescriptorFactory.ForRelType(REL_TYPE_ID, 1);
            RelationTypeSchemaDescriptor desc2 = SchemaDescriptorFactory.ForRelType(REL_TYPE_ID, 1);

            SchemaTestUtil.AssertEquality(desc1, desc2);
        }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldCreateEqualLabels()
        public virtual void ShouldCreateEqualLabels()
        {
            LabelSchemaDescriptor desc1 = SchemaDescriptorFactory.ForLabel(LABEL_ID, 1);
            LabelSchemaDescriptor desc2 = SchemaDescriptorFactory.ForLabel(LABEL_ID, 1);

            SchemaTestUtil.AssertEquality(desc1, desc2);
        }
Ejemplo n.º 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldCreateRelTypeDescriptors()
        public virtual void ShouldCreateRelTypeDescriptors()
        {
            RelationTypeSchemaDescriptor relTypeDesc;

            relTypeDesc = SchemaDescriptorFactory.ForRelType(REL_TYPE_ID, 1);
            assertThat(relTypeDesc.RelTypeId, equalTo(REL_TYPE_ID));
            assertArray(relTypeDesc.PropertyIds, 1);

            relTypeDesc = SchemaDescriptorFactory.ForRelType(REL_TYPE_ID, 1, 2, 3);
            assertThat(relTypeDesc.RelTypeId, equalTo(REL_TYPE_ID));
            SchemaTestUtil.AssertArray(relTypeDesc.PropertyIds, 1, 2, 3);

            relTypeDesc = SchemaDescriptorFactory.ForRelType(REL_TYPE_ID);
            assertThat(relTypeDesc.RelTypeId, equalTo(REL_TYPE_ID));
            SchemaTestUtil.AssertArray(relTypeDesc.PropertyIds);
        }
Ejemplo n.º 4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldCreateLabelDescriptors()
        public virtual void ShouldCreateLabelDescriptors()
        {
            LabelSchemaDescriptor labelDesc;

            labelDesc = SchemaDescriptorFactory.ForLabel(LABEL_ID, 1);
            assertThat(labelDesc.LabelId, equalTo(LABEL_ID));
            assertArray(labelDesc.PropertyIds, 1);

            labelDesc = SchemaDescriptorFactory.ForLabel(LABEL_ID, 1, 2, 3);
            assertThat(labelDesc.LabelId, equalTo(LABEL_ID));
            SchemaTestUtil.AssertArray(labelDesc.PropertyIds, 1, 2, 3);

            labelDesc = SchemaDescriptorFactory.ForLabel(LABEL_ID);
            assertThat(labelDesc.LabelId, equalTo(LABEL_ID));
            SchemaTestUtil.AssertArray(labelDesc.PropertyIds);
        }