Search in sources :

Example 1 with Comment

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);
}
Also used : DefaultComment(com.google.api.codegen.configgen.nodes.metadata.DefaultComment) Comment(com.google.api.codegen.configgen.nodes.metadata.Comment) DefaultComment(com.google.api.codegen.configgen.nodes.metadata.DefaultComment) Test(org.junit.Test)

Example 2 with 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);
}
Also used : DefaultComment(com.google.api.codegen.configgen.nodes.metadata.DefaultComment) Comment(com.google.api.codegen.configgen.nodes.metadata.Comment) DefaultComment(com.google.api.codegen.configgen.nodes.metadata.DefaultComment) Test(org.junit.Test)

Aggregations

Comment (com.google.api.codegen.configgen.nodes.metadata.Comment)2 DefaultComment (com.google.api.codegen.configgen.nodes.metadata.DefaultComment)2 Test (org.junit.Test)2