use of com.google.api.ads.admanager.jaxws.v202202.Statement in project googleads-java-lib by googleads.
the class StatementBuilderTest method testIncreaseOffset.
@Test
public void testIncreaseOffset() {
StatementBuilder statementBuilder = new StatementBuilder();
Statement initialOffset = statementBuilder.limit(100).offset(100).toStatement();
assertEquals("LIMIT 100 OFFSET 100", initialOffset.getQuery());
Statement increasedOffset = statementBuilder.increaseOffsetBy(100).toStatement();
assertEquals("LIMIT 100 OFFSET 200", increasedOffset.getQuery());
}
use of com.google.api.ads.admanager.jaxws.v202202.Statement in project googleads-java-lib by googleads.
the class StatementBuilderTest method testLimit.
@Test
public void testLimit() {
StatementBuilder statementBuilder = new StatementBuilder();
Statement statement = statementBuilder.limit(500).toStatement();
assertEquals("LIMIT 500", statement.getQuery());
}
use of com.google.api.ads.admanager.jaxws.v202202.Statement in project googleads-java-lib by googleads.
the class StatementBuilderTest method testSelect_stripsSelect.
@Test
public void testSelect_stripsSelect() {
StatementBuilder statementBuilder = new StatementBuilder();
Statement statement = statementBuilder.select("SELECT id, name").toStatement();
assertEquals("SELECT id, name", statement.getQuery());
}
use of com.google.api.ads.admanager.jaxws.v202202.Statement in project googleads-java-lib by googleads.
the class StatementBuilderTest method testLimit.
@Test
public void testLimit() {
StatementBuilder statementBuilder = new StatementBuilder();
Statement statement = statementBuilder.limit(500).toStatement();
assertEquals("LIMIT 500", statement.getQuery());
}
use of com.google.api.ads.admanager.jaxws.v202202.Statement in project googleads-java-lib by googleads.
the class StatementBuilderTest method testIncreaseOffset.
@Test
public void testIncreaseOffset() {
StatementBuilder statementBuilder = new StatementBuilder();
Statement initialOffset = statementBuilder.limit(100).offset(100).toStatement();
assertEquals("LIMIT 100 OFFSET 100", initialOffset.getQuery());
Statement increasedOffset = statementBuilder.increaseOffsetBy(100).toStatement();
assertEquals("LIMIT 100 OFFSET 200", increasedOffset.getQuery());
}
Aggregations