コード例 #1
0
 def test_false(self):
     self.fill_map()
     predicate = false()
     self.assertCountEqual(self.map.key_set(predicate), [])
コード例 #2
0
    REFERENCE_OBJECTS["LocalDate"],
    REFERENCE_OBJECTS["LocalTime"],
    REFERENCE_OBJECTS["OffsetDateTime"],
]

REFERENCE_OBJECTS.update(
    {
        "AnInnerPortable": _inner_portable,
        "CustomStreamSerializable": _custom_serializable,
        "CustomByteArraySerializable": _custom_byte_array_serializable,
        "AnIdentifiedDataSerializable": _identified,
        "APortable": _portable,
        "ArrayList": [None, _non_null_list],
        "LinkedList": [None, _non_null_list],
        "TruePredicate": predicate.true(),
        "FalsePredicate": predicate.false(),
        "SqlPredicate": predicate.sql(_sql_string),
        "EqualPredicate": predicate.equal(_sql_string, REFERENCE_OBJECTS["Integer"]),
        "NotEqualPredicate": predicate.not_equal(_sql_string, REFERENCE_OBJECTS["Integer"]),
        "GreaterLessPredicate": predicate.greater(_sql_string, REFERENCE_OBJECTS["Integer"]),
        "BetweenPredicate": predicate.between(
            _sql_string, REFERENCE_OBJECTS["Integer"], REFERENCE_OBJECTS["Integer"]
        ),
        "LikePredicate": predicate.like(_sql_string, _sql_string),
        "ILikePredicate": predicate.ilike(_sql_string, _sql_string),
        "InPredicate": predicate.in_(
            _sql_string, REFERENCE_OBJECTS["Integer"], REFERENCE_OBJECTS["Integer"]
        ),
        "RegexPredicate": predicate.regex(_sql_string, _sql_string),
        "AndPredicate": predicate.and_(
            predicate.sql(_sql_string),
コード例 #3
0
 "AnInnerPortable":
 _inner_portable,
 "CustomStreamSerializable":
 _custom_serializable,
 "CustomByteArraySerializable":
 _custom_byte_array_serializable,
 "AnIdentifiedDataSerializable":
 _identified,
 "APortable":
 _portable,
 "ArrayList": [None, _non_null_list],
 "LinkedList": [None, _non_null_list],
 "TruePredicate":
 predicate.true(),
 "FalsePredicate":
 predicate.false(),
 "SqlPredicate":
 predicate.sql(_sql_string),
 "EqualPredicate":
 predicate.equal(_sql_string, REFERENCE_OBJECTS["Integer"]),
 "NotEqualPredicate":
 predicate.not_equal(_sql_string, REFERENCE_OBJECTS["Integer"]),
 "GreaterLessPredicate":
 predicate.greater(_sql_string, REFERENCE_OBJECTS["Integer"]),
 "BetweenPredicate":
 predicate.between(_sql_string, REFERENCE_OBJECTS["Integer"],
                   REFERENCE_OBJECTS["Integer"]),
 "LikePredicate":
 predicate.like(_sql_string, _sql_string),
 "ILikePredicate":
 predicate.ilike(_sql_string, _sql_string),
コード例 #4
0
 def test_false(self):
     predicate = false()
     self.assertEqual(str(predicate), "FalsePredicate()")