@Test public void getCustomQuery() { when(context.getString("custom.query")).thenReturn("SELECT column FROM table"); SQLSourceHelper sqlSourceHelper = new SQLSourceHelper(context, "Source Name"); assertEquals("SELECT column FROM table", sqlSourceHelper.getQuery()); }
@Test public void getQuery() { SQLSourceHelper sqlSourceHelper = new SQLSourceHelper(context, "Source Name"); assertEquals("SELECT * FROM table", sqlSourceHelper.getQuery()); }