Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldConstructJoinHintDetailsSingular()
        internal virtual void ShouldConstructJoinHintDetailsSingular()
        {
            IList <string> idents = new List <string>();

            idents.Add("n");
            NotificationDetail detail = NotificationDetail_Factory.JoinKey(idents);

            assertThat(detail.Name(), equalTo("hinted join key identifier"));
            assertThat(detail.Value(), equalTo("n"));
            assertThat(detail.ToString(), equalTo("hinted join key identifier is: n"));
        }
Example #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldConstructNotificationsFor_JOIN_HINT_UNFULFILLABLE()
        internal virtual void ShouldConstructNotificationsForJOINHINTUNFULFILLABLE()
        {
            IList <string> idents = new List <string>();

            idents.Add("n");
            idents.Add("node2");
            NotificationDetail identifierDetail = NotificationDetail_Factory.JoinKey(idents);
            Notification       notification     = JOIN_HINT_UNFULFILLABLE.notification(InputPosition.empty, identifierDetail);

            assertThat(notification.Title, equalTo("The database was unable to plan a hinted join."));
            assertThat(notification.Severity, equalTo(SeverityLevel.WARNING));
            assertThat(notification.Code, equalTo("Neo.ClientNotification.Statement.JoinHintUnfulfillableWarning"));
            assertThat(notification.Position, equalTo(InputPosition.empty));
            assertThat(notification.Description, equalTo("The hinted join was not planned. This could happen because no generated plan contained the join key, " + "please try using a different join key or restructure your query. " + "(hinted join key identifiers are: n, node2)"));
        }