Mercurial > hg > orthanc
comparison UnitTestsSources/MultiThreadingTests.cpp @ 2658:ce770f095092 jobs
todo
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 06 Jun 2018 18:37:43 +0200 |
parents | 5eea2f11e8df |
children | c27f7ecf9b54 |
comparison
equal
deleted
inserted
replaced
2657:5eea2f11e8df | 2658:ce770f095092 |
---|---|
848 | 848 |
849 TEST(JobsSerialization, GenericJobs) | 849 TEST(JobsSerialization, GenericJobs) |
850 { | 850 { |
851 Json::Value s; | 851 Json::Value s; |
852 | 852 |
853 // This tests SetOfInstancesJob | |
854 | |
853 { | 855 { |
854 DummyInstancesJob job; | 856 DummyInstancesJob job; |
855 job.SetDescription("description"); | 857 job.SetDescription("description"); |
856 job.AddInstance("hello"); | 858 job.AddInstance("hello"); |
857 job.AddInstance("nope"); | 859 job.AddInstance("nope"); |
882 ASSERT_EQ("hello", tmp.GetInstance(0)); | 884 ASSERT_EQ("hello", tmp.GetInstance(0)); |
883 ASSERT_EQ("nope", tmp.GetInstance(1)); | 885 ASSERT_EQ("nope", tmp.GetInstance(1)); |
884 ASSERT_EQ("world", tmp.GetInstance(2)); | 886 ASSERT_EQ("world", tmp.GetInstance(2)); |
885 ASSERT_TRUE(tmp.IsFailedInstance("nope")); | 887 ASSERT_TRUE(tmp.IsFailedInstance("nope")); |
886 } | 888 } |
889 | |
890 // TODO : Test SequenceOfOperationsJob.h | |
891 } | |
892 | |
893 | |
894 TEST(JobsSerialization, Registry) | |
895 { | |
896 // TODO : Test serialization of JobsRegistry | |
887 } | 897 } |
888 | 898 |
889 | 899 |
890 namespace | 900 namespace |
891 { | 901 { |
976 | 986 |
977 OrthancJobUnserializer unserializer(GetContext()); | 987 OrthancJobUnserializer unserializer(GetContext()); |
978 | 988 |
979 std::auto_ptr<IJobOperation> operation; | 989 std::auto_ptr<IJobOperation> operation; |
980 operation.reset(unserializer.UnserializeOperation(s)); | 990 operation.reset(unserializer.UnserializeOperation(s)); |
981 } | 991 |
992 // TODO : StorePeerOperation | |
993 | |
994 // TODO : StoreScuOperation | |
995 | |
996 // TODO : SystemCallOperation | |
997 | |
998 // TODO : ModifyInstanceOperation | |
999 } | |
1000 | |
1001 | |
1002 TEST_F(OrthancJobsSerialization, Jobs) | |
1003 { | |
1004 // TODO : ArchiveJob | |
1005 | |
1006 // TODO : DicomModalityStoreJob | |
1007 | |
1008 // TODO : OrthancPeerStoreJob | |
1009 | |
1010 // TODO : ResourceModificationJob | |
1011 } |