SimpleSQLiteQuery implements SupportSQLiteQuery { @Override public int getArgCount() { return mBindArgs == null ? 0 : mBindArgs.length; } SimpleSQLiteQuery(String query, @Nullable Object[] bindArgs);  SimpleSQLiteQuery(String query); @Override String getSql(); @Override void bindTo(SupportSQLiteProgram statement); @Override int getArgCount(); static void bind(SupportSQLiteProgram statement, Object[] bindArgs);  }
@Test public void getArgCount_withArgs() { SimpleSQLiteQuery query = new SimpleSQLiteQuery("foo", new Object[]{"bar", 2, true}); assertThat(query.getArgCount(), is(3)); }
@Test public void getArgCount_noArgs() { SimpleSQLiteQuery query = new SimpleSQLiteQuery("foo"); assertThat(query.getArgCount(), is(0)); }