use of com.google.api.codegen.configgen.nodes.metadata.Comment in project toolkit by googleapis.
the class FieldConfigNodeTest method testComment.
@Test
public void testComment() throws Exception {
FieldConfigNode node = new FieldConfigNode(0, "foo");
Comment comment = new DefaultComment("Lorem ispum");
Truth.assertThat(node.getComment().generate()).isEqualTo("");
Truth.assertThat(node.setComment(comment)).isSameAs(node);
Truth.assertThat(node.getComment()).isSameAs(comment);
}
use of com.google.api.codegen.configgen.nodes.metadata.Comment in project toolkit by googleapis.
the class ListItemConfigNodeTest method testComment.
@Test
public void testComment() throws Exception {
ListItemConfigNode node = new ListItemConfigNode(0);
Comment comment = new DefaultComment("Lorem ispum");
Truth.assertThat(node.getComment().generate()).isEqualTo("");
Truth.assertThat(node.setComment(comment)).isSameAs(node);
Truth.assertThat(node.getComment()).isSameAs(comment);
}
Aggregations