@SuppressWarnings({ "static-access" }) @Test public void getSelectQueryWithNameTestWithZero() { RegistrationUnitSearchCriteria regnUnitSearchWithName = registrationUnitSearchCriteria.builder().tenantId("1") .name("").build(); String selectQueryWithName = "SELECT * FROM egmr_registration_unit WHERE tenantId='1' ORDER BY createdTime ASC ;"; assertEquals(selectQueryWithName, registrationUnitQueryBuilder.getSelectQuery(regnUnitSearchWithName)); }
public String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria) { selectQuery = new StringBuilder(BASEQUERY); addWhereCluase(regnUnitSearchCriteria); return selectQuery.toString(); }
RegistrationUnitQueryBuilder { public String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria) { selectQuery = new StringBuilder(BASEQUERY); addWhereCluase(regnUnitSearchCriteria); return selectQuery.toString(); } }
RegistrationUnitQueryBuilder { public String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria) { selectQuery = new StringBuilder(BASEQUERY); addWhereCluase(regnUnitSearchCriteria); return selectQuery.toString(); }  }
RegistrationUnitQueryBuilder { public String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria) { selectQuery = new StringBuilder(BASEQUERY); addWhereCluase(regnUnitSearchCriteria); return selectQuery.toString(); }  String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria); String getIdNextValForRegnUnit(); String getCreateQuery(); String getUpdateQuery(); }
RegistrationUnitQueryBuilder { public String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria) { selectQuery = new StringBuilder(BASEQUERY); addWhereCluase(regnUnitSearchCriteria); return selectQuery.toString(); }  String getSelectQuery(RegistrationUnitSearchCriteria regnUnitSearchCriteria); String getIdNextValForRegnUnit(); String getCreateQuery(); String getUpdateQuery(); final String BASEQUERY; }