Search in sources :

Example 1 with EmptyLineStatement

use of com.google.api.generator.engine.ast.EmptyLineStatement in project gapic-generator-java by googleapis.

the class JavaWriterVisitorTest method writeEmptyLineStatement.

@Test
public void writeEmptyLineStatement() {
    EmptyLineStatement statement = EmptyLineStatement.create();
    statement.accept(writerVisitor);
    assertEquals("\n", writerVisitor.write());
}
Also used : EmptyLineStatement(com.google.api.generator.engine.ast.EmptyLineStatement) Test(org.junit.Test)

Example 2 with EmptyLineStatement

use of com.google.api.generator.engine.ast.EmptyLineStatement in project gapic-generator-java by googleapis.

the class ImportWriterVisitorTest method writeEmptyLineStatementImports.

@Test
public void writeEmptyLineStatementImports() {
    EmptyLineStatement statement = EmptyLineStatement.create();
    statement.accept(writerVisitor);
    assertThat(writerVisitor.write()).isEmpty();
}
Also used : EmptyLineStatement(com.google.api.generator.engine.ast.EmptyLineStatement) Test(org.junit.Test)

Aggregations

EmptyLineStatement (com.google.api.generator.engine.ast.EmptyLineStatement)2 Test (org.junit.Test)2