public void assertAt() { assertThat(this.body.getText()).isEqualToIgnoringWhitespace("ok"); }
@Test public void protectedIndividualOptionsRedact() { String arg; arg = "-Dgemfire.security-password=secret"; assertThat(redact(arg)).endsWith("password=********"); arg = "--J=-Dsome.highly.qualified.password=secret"; assertThat(redact(arg)).endsWith("password=********"); arg = "--password=foo"; assertThat(redact(arg)).isEqualToIgnoringWhitespace("--password=********"); arg = "-Dgemfire.security-properties=\"c:\\Program Files (x86)\\My Folder\""; assertThat(redact(arg)).isEqualTo(arg); }
@Test public void buildClauseWithDepthTwo() { String clause = builder.build("r", "FOUNDED", 1); assertThat(clause).isEqualToIgnoringWhitespace( " RETURN r,n," + "[ " + "[ (n)-[r_f1:`FOUNDED`]->(o1:`Organisation`) | [ r_f1, o1 ] ]," + "[ (n)-[r_e1:`EMPLOYED_BY`]->(o1:`Organisation`) | [ r_e1, o1 ] ]," + "[ (n)-[r_l1:`LIVES_AT`]->(l1:`Location`) | [ r_l1, l1 ] ] " + "]," + "m" ); }
@Test public void callingVersionDisplayPantheonInfoVersion() { parseCommand("--version"); assertThat(commandOutput.toString()).isEqualToIgnoringWhitespace(PantheonInfo.version()); assertThat(commandErrorOutput.toString()).isEmpty(); }