use of com.google.api.ads.admanager.axis.v202111.Statement in project googleads-java-lib by googleads.
the class StatementBuilderTest method testWhere_stripsWhere.
@Test
public void testWhere_stripsWhere() {
StatementBuilder statementBuilder = new StatementBuilder();
Statement statement = statementBuilder.where("WHERE id = 12345").toStatement();
assertEquals("WHERE id = 12345", statement.getQuery());
}
use of com.google.api.ads.admanager.axis.v202111.Statement in project googleads-java-lib by googleads.
the class StatementBuilderTest method testSelect.
@Test
public void testSelect() {
StatementBuilder statementBuilder = new StatementBuilder();
Statement statement = statementBuilder.select("id, name").toStatement();
assertEquals("SELECT id, name", statement.getQuery());
}
use of com.google.api.ads.admanager.axis.v202111.Statement in project googleads-java-lib by googleads.
the class StatementBuilderTest method testSelect.
@Test
public void testSelect() {
StatementBuilder statementBuilder = new StatementBuilder();
Statement statement = statementBuilder.select("id, name").toStatement();
assertEquals("SELECT id, name", statement.getQuery());
}
use of com.google.api.ads.admanager.axis.v202111.Statement in project googleads-java-lib by googleads.
the class StatementBuilderTest method testWhere_stripsWhere.
@Test
public void testWhere_stripsWhere() {
StatementBuilder statementBuilder = new StatementBuilder();
Statement statement = statementBuilder.where("WHERE id = 12345").toStatement();
assertEquals("WHERE id = 12345", statement.getQuery());
}
use of com.google.api.ads.admanager.axis.v202111.Statement in project googleads-java-lib by googleads.
the class StatementBuilderTest method testLimitOffsetDefaults.
@Test
public void testLimitOffsetDefaults() {
StatementBuilder statementBuilder = new StatementBuilder();
Statement initialOffset = statementBuilder.limit(100).toStatement();
assertEquals("LIMIT 100", initialOffset.getQuery());
Statement increasedOffset = statementBuilder.increaseOffsetBy(100).toStatement();
assertEquals("LIMIT 100 OFFSET 100", increasedOffset.getQuery());
}
Aggregations