diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-20 15:25:05 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-21 09:18:50 +0200 |
commit | 9a03eb1a54c6289773bc1b8eb96181ed01553927 (patch) | |
tree | d820cd37e774f7b4404bd4994b627a02f8652a44 /tests/domainadaptortest.cpp | |
parent | da0c37dbad121252effa85941de4d49222176179 (diff) | |
download | sink-9a03eb1a54c6289773bc1b8eb96181ed01553927.tar.gz sink-9a03eb1a54c6289773bc1b8eb96181ed01553927.zip |
TypeImplementation cleanup
Diffstat (limited to 'tests/domainadaptortest.cpp')
-rw-r--r-- | tests/domainadaptortest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/domainadaptortest.cpp b/tests/domainadaptortest.cpp index f4ac008..c29e61b 100644 --- a/tests/domainadaptortest.cpp +++ b/tests/domainadaptortest.cpp | |||
@@ -18,7 +18,8 @@ class TestFactory : public DomainTypeAdaptorFactory<Sink::ApplicationDomain::Eve | |||
18 | public: | 18 | public: |
19 | TestFactory() | 19 | TestFactory() |
20 | { | 20 | { |
21 | mResourceWriteMapper = Sink::ApplicationDomain::TypeImplementation<Sink::ApplicationDomain::Event>::initializeWritePropertyMapper(); | 21 | mResourceWriteMapper = QSharedPointer<WritePropertyMapper<Sink::ApplicationDomain::Buffer::EventBuilder>>::create(); |
22 | Sink::ApplicationDomain::TypeImplementation<Sink::ApplicationDomain::Event>::configure(*mResourceWriteMapper); | ||
22 | } | 23 | } |
23 | }; | 24 | }; |
24 | 25 | ||
@@ -39,7 +40,8 @@ private slots: | |||
39 | 40 | ||
40 | void testCreateBufferPart() | 41 | void testCreateBufferPart() |
41 | { | 42 | { |
42 | auto writeMapper = Sink::ApplicationDomain::TypeImplementation<Sink::ApplicationDomain::Event>::initializeWritePropertyMapper(); | 43 | auto writeMapper = QSharedPointer<WritePropertyMapper<Sink::ApplicationDomain::Buffer::EventBuilder>>::create(); |
44 | Sink::ApplicationDomain::TypeImplementation<Sink::ApplicationDomain::Event>::configure(*writeMapper); | ||
43 | 45 | ||
44 | Sink::ApplicationDomain::Event event; | 46 | Sink::ApplicationDomain::Event event; |
45 | event.setProperty("summary", "foo"); | 47 | event.setProperty("summary", "foo"); |