public class ExistsTest extends SqlableTestCase
| Constructor and Description |
|---|
ExistsTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testCountGroupBy()
Should not change the result if group by is used.
|
void |
testCountGroupByEmpty()
Should not exist if group by eliminates all rows.
|
void |
testCountOrderBy()
Should not change the result if order by is used.
|
void |
testCountOrderBySql()
Shouldn't include order by as it has no influence on the result of exists and
should improve performance.
|
void |
testCountTableSql()
Should be a simple exists for the entire table.
|
void |
testCountWhereClauseSql()
Should be an exists with the specified where-clause.
|
void |
testExistsEmptyResult()
Should return
false since the where-clause matches zero rows and thus the result set
is empty. |
void |
testExistsTable()
Should return
true since the result set/table isn't empty. |
void |
testExistsWhereClause()
Should return
true since the where-clause matches rows and thus the result set isn't
empty. |
assertSqlEquals, assertSqlEqualsassertArrayEquals, setUp, tearDowncreateApplication, getApplication, getSystemContext, terminateApplication, testApplicationTestCaseSetUpProperlyassertActivityRequiresPermission, assertReadingContentUriRequiresPermission, assertWritingContentUriRequiresPermission, getContext, scrubClass, setContext, testAndroidTestCaseSetupProperlycountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatpublic void testExistsTable()
true since the result set/table isn't empty.public void testCountTableSql()
public void testCountWhereClauseSql()
public void testCountOrderBySql()
public void testExistsWhereClause()
true since the where-clause matches rows and thus the result set isn't
empty.public void testExistsEmptyResult()
false since the where-clause matches zero rows and thus the result set
is empty.public void testCountOrderBy()
public void testCountGroupBy()
public void testCountGroupByEmpty()
Copyright © 2014. All rights reserved.