Skip to content

Commit 603b5da

Browse files
authored
E2-1629 - tests for requestFactory (#224)
* tests for requestFactory * create instances of featureflag, mock external class instead * remove params and add nullability to LPRequest
1 parent 961769b commit 603b5da

File tree

4 files changed

+394
-7
lines changed

4 files changed

+394
-7
lines changed

Example/Leanplum-SDK.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; };
9090
653192A121517D4F00D7DDDC /* LPFeatureFlagManagerTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 653192A021517D4F00D7DDDC /* LPFeatureFlagManagerTest.m */; };
9191
65E189C421643631005E6B93 /* LPRequestSenderTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 65E189C321643631005E6B93 /* LPRequestSenderTest.m */; };
92+
65E189C6216BDB82005E6B93 /* LPRequestFactoryTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 65E189C5216BDB82005E6B93 /* LPRequestFactoryTest.m */; };
9293
65E53E982148786C00A05040 /* LPCountAggregatorTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 65E53E962148786C00A05040 /* LPCountAggregatorTest.m */; };
9394
873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; };
9495
9CB691DE1F15FFF5002D83D8 /* batch_response.json in Resources */ = {isa = PBXBuildFile; fileRef = 9CB691DD1F15FFF5002D83D8 /* batch_response.json */; };
@@ -192,6 +193,7 @@
192193
606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; };
193194
653192A021517D4F00D7DDDC /* LPFeatureFlagManagerTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LPFeatureFlagManagerTest.m; sourceTree = "<group>"; };
194195
65E189C321643631005E6B93 /* LPRequestSenderTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LPRequestSenderTest.m; sourceTree = "<group>"; };
196+
65E189C5216BDB82005E6B93 /* LPRequestFactoryTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LPRequestFactoryTest.m; sourceTree = "<group>"; };
195197
65E53E962148786C00A05040 /* LPCountAggregatorTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LPCountAggregatorTest.m; sourceTree = "<group>"; };
196198
73B565AA61D6B6A4E92607C4 /* Pods-Leanplum-SDK_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Leanplum-SDK_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Leanplum-SDK_Tests/Pods-Leanplum-SDK_Tests.release.xcconfig"; sourceTree = "<group>"; };
197199
74C2EA3F2D53CAE77A03BFFA /* Pods-Leanplum-tvOS-SDK_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Leanplum-tvOS-SDK_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Leanplum-tvOS-SDK_Example/Pods-Leanplum-tvOS-SDK_Example.release.xcconfig"; sourceTree = "<group>"; };
@@ -259,6 +261,7 @@
259261
07E5C86B1F052B7800A4B092 /* LPActionManagerTest.m */,
260262
A84527FC215C3035001FA20D /* LPRequestTest.m */,
261263
65E189C321643631005E6B93 /* LPRequestSenderTest.m */,
264+
65E189C5216BDB82005E6B93 /* LPRequestFactoryTest.m */,
262265
07E5C86C1F052B7800A4B092 /* LPAppIconManagerTest.m */,
263266
07E5C86D1F052B7800A4B092 /* LPEventDataManagerTest.m */,
264267
07E5C86E1F052B7800A4B092 /* ExceptionsTest.m */,
@@ -830,6 +833,7 @@
830833
07E5C8B91F052B7800A4B092 /* LPMessageTemplatesClassTest.m in Sources */,
831834
07E5C8B11F052B7800A4B092 /* LPNetworkEngine+Category.m in Sources */,
832835
07E5C8B61F052B7800A4B092 /* LeanplumTest.m in Sources */,
836+
65E189C6216BDB82005E6B93 /* LPRequestFactoryTest.m in Sources */,
833837
07E5C8AD1F052B7800A4B092 /* LPEventDataManagerTest.m in Sources */,
834838
65E189C421643631005E6B93 /* LPRequestSenderTest.m in Sources */,
835839
07E5C8AE1F052B7800A4B092 /* ExceptionsTest.m in Sources */,

0 commit comments

Comments
 (0)