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

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

            assertThat(detail.Name(), equalTo("identifier"));
            assertThat(detail.Value(), equalTo("(n)"));
            assertThat(detail.ToString(), equalTo("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 shouldConstructCartesianProductDetails()
        internal virtual void ShouldConstructCartesianProductDetails()
        {
            ISet <string> idents = new SortedSet <string>();

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

            assertThat(detail.Name(), equalTo("identifiers"));
            assertThat(detail.Value(), equalTo("(n, node2)"));
            assertThat(detail.ToString(), equalTo("identifiers are: (n, node2)"));
        }
Example #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldConstructNotificationFor_CARTESIAN_PRODUCT()
        internal virtual void ShouldConstructNotificationForCARTESIANPRODUCT()
        {
            ISet <string> idents = new SortedSet <string>();

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

            assertThat(notification.Title, equalTo("This query builds a cartesian product between disconnected patterns."));
            assertThat(notification.Severity, equalTo(SeverityLevel.WARNING));
            assertThat(notification.Code, equalTo("Neo.ClientNotification.Statement.CartesianProductWarning"));
            assertThat(notification.Position, equalTo(InputPosition.empty));
            assertThat(notification.Description, equalTo("If a part of a query contains multiple disconnected patterns, this will build a cartesian product " + "between all those parts. This may produce a large amount of data and slow down query processing. While " + "occasionally intended, it may often be possible to reformulate the query that avoids the use of this cross " + "product, perhaps by adding a relationship between the different parts or by using OPTIONAL MATCH " + "(identifiers are: (n, node2))"));
        }