예제 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldConstructIndexDetails()
        internal virtual void ShouldConstructIndexDetails()
        {
            NotificationDetail detail = NotificationDetail_Factory.Index("Person", "name");

            assertThat(detail.Name(), equalTo("hinted index"));
            assertThat(detail.Value(), equalTo("index on :Person(name)"));
            assertThat(detail.ToString(), equalTo("hinted index is: index on :Person(name)"));
        }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldConstructNotificationFor_INDEX_HINT_UNFULFILLABLE()
        internal virtual void ShouldConstructNotificationForINDEXHINTUNFULFILLABLE()
        {
            NotificationDetail indexDetail  = NotificationDetail_Factory.Index("Person", "name");
            Notification       notification = INDEX_HINT_UNFULFILLABLE.notification(InputPosition.empty, indexDetail);

            assertThat(notification.Title, equalTo("The request (directly or indirectly) referred to an index that does not exist."));
            assertThat(notification.Severity, equalTo(SeverityLevel.WARNING));
            assertThat(notification.Code, equalTo("Neo.ClientError.Schema.IndexNotFound"));
            assertThat(notification.Position, equalTo(InputPosition.empty));
            assertThat(notification.Description, equalTo("The hinted index does not exist, please check the schema (hinted index is: index on :Person(name))"));
        }