//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldConstructSuboptimalIndexDetails() internal virtual void ShouldConstructSuboptimalIndexDetails() { NotificationDetail detail = NotificationDetail_Factory.SuboptimalIndex("Person", "name"); assertThat(detail.Name(), equalTo("index")); assertThat(detail.Value(), equalTo("index on :Person(name)")); assertThat(detail.ToString(), equalTo("index is: index on :Person(name)")); }
//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")); }
//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)")); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldConstructNotificationsFor_DEPRECATED_PROCEDURE() internal virtual void ShouldConstructNotificationsForDEPRECATEDPROCEDURE() { NotificationDetail identifierDetail = NotificationDetail_Factory.DeprecatedName("oldName", "newName"); Notification notification = DEPRECATED_PROCEDURE.notification(InputPosition.empty, identifierDetail); assertThat(notification.Title, equalTo("This feature is deprecated and will be removed in future versions.")); assertThat(notification.Severity, equalTo(SeverityLevel.WARNING)); assertThat(notification.Code, equalTo("Neo.ClientNotification.Statement.FeatureDeprecationWarning")); assertThat(notification.Position, equalTo(InputPosition.empty)); assertThat(notification.Description, equalTo("The query used a deprecated procedure. ('oldName' has been replaced by 'newName')")); }
//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))")); }
//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)")); }
//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)")); }
//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))")); }