summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlexei Rousskikh <ext-alexei.rousskikh@nokia.com>2012-02-23 23:16:34 -0500
committerAndrew Christian <andrew.christian@nokia.com>2012-02-25 19:43:40 +0100
commit528878eb2b7ec94e69019c97fa736e08628b9fa3 (patch)
tree0be7158ce44550b0576ffc438e994f1d54f64cd7 /tests
parent581e5c36f6b93e0fdfb57cf7c67f11f8eea28267 (diff)
implemented schema indexing based on a property
Change-Id: I6d5b2038e7b988b699349f8bd80fae88162bcecf Reviewed-by: Andrew Christian <andrew.christian@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/jsonstream/tst_jsonstream.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/jsonstream/tst_jsonstream.cpp b/tests/auto/jsonstream/tst_jsonstream.cpp
index 8bccb9c..8a47f9c 100644
--- a/tests/auto/jsonstream/tst_jsonstream.cpp
+++ b/tests/auto/jsonstream/tst_jsonstream.cpp
@@ -428,11 +428,12 @@ void tst_JsonStream::schemaTest()
server.setValidatorFlags(JsonServer::ValidatorFlags(JsonServer::WarnIfInvalid | JsonServer::DropIfInvalid));
server.inboundValidator()->loadFromFolder(strSchemasDir);
server.inboundValidator()->setValidationFilter(QRegExp("Paint\\w+Event|BackgroundEvent"));
- server.inboundValidator()->setSchemaNameMatcher(new SchemaValidator::SchemaPropertyNameMatcher("event"));
+ server.inboundValidator()->setSchemaNameMatcher(SchemaValidator::SchemaUniqueKeyNameMatcher("event"));
server.outboundValidator()->loadFromFolder(strSchemasDir);
server.outboundValidator()->setValidationFilter(QRegExp("Reply\\w+"));
+ server.outboundValidator()->setSchemaNameMatcher(SchemaValidator::SchemaUniqueKeyNameMatcher("event"));
QVERIFY(!server.inboundValidator()->isEmpty());
QVERIFY(!server.outboundValidator()->isEmpty());