Skip to content

QueryTest

codefriar edited this page Oct 5, 2023 · 2 revisions

SUPPRESSWARNINGS

APIVERSION: 58

STATUS: ACTIVE

MIT License Copyright (c) 2020 Rafał Kopaczewski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Methods

private static void testSetup()

TESTSETUP

private static void testFieldExpressionConstructor()

ISTEST

private static void testFieldExpressionValueFormat()

ISTEST

private static void testFieldExpressionValueFormatUnsupportedValue()

ISTEST

private static void testFieldExpressionToExpressionString()

ISTEST

private static void testFieldExpressionToStringOverride()

ISTEST

private static void testConditionExpressionConstructor()

ISTEST

private static void testConditionExpressionToExpressionString()

ISTEST

private static void testConditionExpressionToStringOverride()

ISTEST

private static void testConditionDenialExpressionConstructor()

ISTEST

private static void testConditionDenialExpressionToExpressionString()

ISTEST

private static void testConditionDenialExpressionToStringOverride()

ISTEST

private static void testDateLiteralConstructorForDateLiteralName()

ISTEST

private static void testDateLiteralConstructorForDateLiteralNameWithNumberOfUnits()

ISTEST

private static void testDateLiteralToDateLiteralStringForDateLiteralName()

ISTEST

private static void testDateLiteralToDateLiteralStringForDateLiteralNameWithNumberOfUnits()

ISTEST

private static void testDateLiteralToStringOverride()

ISTEST

private static void testScriptVariableConstructor()

ISTEST

private static void testScriptVariableToScriptVariableString()

ISTEST

private static void testScriptVariableToStringOverride()

ISTEST

private static void testConditionDefaultConstructor()

ISTEST

private static void testConditionParametrizedConstructor()

ISTEST

private static void testConditionEquals()

ISTEST

private static void testConditionNotEquals()

ISTEST

private static void testConditionLessThan()

ISTEST

private static void testConditionLessOrEqual()

ISTEST

private static void testConditionGreaterThan()

ISTEST

private static void testConditionGreaterOrEquals()

ISTEST

private static void testConditionIsLike()

ISTEST

private static void testConditionIsIn()

ISTEST

private static void testConditionIsNotIn()

ISTEST

private static void testConditionIncludesSetOfValueSets()

ISTEST

private static void testConditionIncludesValueSet()

ISTEST

private static void testConditionExcludesSetOfValueSets()

ISTEST

private static void testConditionExcludesValueSet()

ISTEST

private static void assertFieldConditionExpression(String fieldName, String comparisonOperator, Object value, Query condition)

private static void testConditionWithSubcondition()

ISTEST

private static void testConditionWithNegatedSubcondition()

ISTEST

private static void testConditionConjunctionToExpressionString()

ISTEST

private static void testConditionDisjunctionToExpressionString()

ISTEST

private static void testConditionToExpressionStringUnsupporterOperator()

ISTEST

private static String prepareExpectedConditionString(Query condition)

private static void testConditionToStringOverride()

ISTEST

private static void testSortOrderConstructorFieldName()

ISTEST

private static void testSortOrderConstructorSortDirection()

ISTEST

private static void testSortOrderConstructorNullRecords()

ISTEST

private static void testSortOrderStringAscendingNullsLast()

ISTEST

private static void testSortOrderStringAscendingNullsFirst()

ISTEST

private static void testSortOrderStringDescendingNullsLast()

ISTEST

private static void testSortOrderStringDescendingNullsFirst()

ISTEST

private static void testSortOrderToStringOverride()

ISTEST

private static void testPhraseExpressionConstructor()

ISTEST

private static void testPhraseExpressionToExpressionString()

ISTEST

private static void testPhraseExpressionToStringOverride()

ISTEST

private static void testSearchExpressionConstructor()

ISTEST

private static void testSearchExpressionToExpressionString()

ISTEST

private static void testSearchExpressionToStringOverride()

ISTEST

private static void testDenialSearchExpressionConstructor()

ISTEST

private static void testDenialSearchExpressionToExpressionString()

ISTEST

private static void testDenialSearchExpressionToStringOverride()

ISTEST

private static void testTypeOfConstructor()

ISTEST

private static void testTypeOfWhenSObjectTypeWithFieldSet()

ISTEST

private static void testTypeOfWhenSObjectTypeWithFieldList()

ISTEST

private static void testTypeOfElseFieldListWithFieldSet()

ISTEST

private static void testTypeOfElseFieldListWithFieldList()

ISTEST

private static void testTypeOfElseFieldListWithSingleField()

ISTEST

private static void testTypeOfString()

ISTEST

private static void testTypeOftoStringOverride()

ISTEST

private static User selectTestUser()


Clone this wiki locally