Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vermeer, Edwin authored and Vermeer, Edwin committed Dec 13, 2017
1 parent 77cabac commit 66f0d97
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 77 deletions.
8 changes: 8 additions & 0 deletions Demo/Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/* Begin PBXBuildFile section */
13FEBE801FE101BE008716AA /* License.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13FEBE7F1FE101BE008716AA /* License.swift */; };
13FEBE821FE10539008716AA /* GitHubUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13FEBE811FE10539008716AA /* GitHubUser.swift */; };
13FEBE841FE1055C008716AA /* Issue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13FEBE831FE1055B008716AA /* Issue.swift */; };
306F6BF71D22BCEB00F727A6 /* Repository.swift in Sources */ = {isa = PBXBuildFile; fileRef = 306F6BF61D22BCEB00F727A6 /* Repository.swift */; };
306F6BF91D22BCF400F727A6 /* Owner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 306F6BF81D22BCF400F727A6 /* Owner.swift */; };
5EC197E61A1BB16D00F4DFD4 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EC197E51A1BB16D00F4DFD4 /* AppDelegate.swift */; };
Expand All @@ -24,6 +26,8 @@

/* Begin PBXFileReference section */
13FEBE7F1FE101BE008716AA /* License.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = License.swift; sourceTree = "<group>"; };
13FEBE811FE10539008716AA /* GitHubUser.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GitHubUser.swift; sourceTree = "<group>"; };
13FEBE831FE1055B008716AA /* Issue.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Issue.swift; sourceTree = "<group>"; };
1A8B0F00D6903A046FE40BCE /* Pods-Demo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Demo/Pods-Demo.debug.xcconfig"; sourceTree = "<group>"; };
306F6BF61D22BCEB00F727A6 /* Repository.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Repository.swift; sourceTree = "<group>"; };
306F6BF81D22BCF400F727A6 /* Owner.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Owner.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -126,6 +130,8 @@
7F4D38B51E1FADC90083A99F /* API */ = {
isa = PBXGroup;
children = (
13FEBE831FE1055B008716AA /* Issue.swift */,
13FEBE811FE10539008716AA /* GitHubUser.swift */,
5EC198071A1BB24600F4DFD4 /* MoyaGitHubAPI.swift */,
306F6BF61D22BCEB00F727A6 /* Repository.swift */,
306F6BF81D22BCF400F727A6 /* Owner.swift */,
Expand Down Expand Up @@ -293,6 +299,7 @@
buildActionMask = 2147483647;
files = (
5EC197E81A1BB16D00F4DFD4 /* MoyaViewController.swift in Sources */,
13FEBE841FE1055C008716AA /* Issue.swift in Sources */,
5EC197E61A1BB16D00F4DFD4 /* AppDelegate.swift in Sources */,
7FC775DE1E211D70003D436E /* MoyaRxViewController.swift in Sources */,
5EC198081A1BB24600F4DFD4 /* MoyaGitHubAPI.swift in Sources */,
Expand All @@ -301,6 +308,7 @@
7F1C9D351E23CE5100A18776 /* README.md in Sources */,
306F6BF71D22BCEB00F727A6 /* Repository.swift in Sources */,
13FEBE801FE101BE008716AA /* License.swift in Sources */,
13FEBE821FE10539008716AA /* GitHubUser.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
147 changes: 74 additions & 73 deletions Demo/Demo/Repository.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,77 +3,78 @@ import Foundation
import EVReflection

class Repository: EVObject { // Could also use any NSObject with EVReflectable but then you should also implement most methods of EVObject (like setValue forUndefinedKey and debugDescription
var keysUrl: String?
var statusesUrl: String?
var issuesUrl: String?
var defaultBranch: String?
var issueEventsUrl: String?
var id: NSNumber?
var owner: Owner?
var eventsUrl: String?
var subscriptionUrl: String?
var watchers: NSNumber?
var gitCommitsUrl: String?
var subscribersUrl: String?
var subscribersCount: NSNumber?
var networkCount: NSNumber?
var cloneUrl: String?
var hasWiki: Bool = false
var Url: String?
var pullsUrl: String?
var fork: Bool = false
var notificationsUrl: String?
var _description: String?
var collaboratorsUrl: String?
var deploymentsUrl: String?
var languagesUrl: String?
var hasIssues: Bool = false
var commentsUrl: String?
var isPrivate: Bool = false
var size: NSNumber?
var gitTagsUrl: String?
var updatedAt: String?
var sshUrl: String?
var name: String?
var contentsUrl: String?
var archiveUrl: String?
var milestonesUrl: String?
var blobsUrl: String?
var contributorsUrl: String?
var openIssuesCount: NSNumber?
var forksCount: NSNumber?
var treesUrl: String?
var svnUrl: String?
var commitsUrl: String?
var createdAt: String?
var forksUrl: String?
var hasDownloads: Bool = false
var mirrorUrl: String?
var homepage: String?
var teamsUrl: String?
var branchesUrl: String?
var issueCommentUrl: String?
var mergesUrl: String?
var gitRefsUrl: String?
var gitUrl: String?
var forks: NSNumber?
var openIssues: NSNumber?
var hooksUrl: String?
var htmlUrl: String?
var stargazersUrl: String?
var assigneesUrl: String?
var compareUrl: String?
var fullName: String?
var tagsUrl: String?
var releasesUrl: String?
var pushedAt: String?
var labelsUrl: String?
var downloadsUrl: String?
var stargazersCount: NSNumber?
var watchersCount: NSNumber?
var language: String?
var hasPages: Bool = false
var hasProjects: Bool = false
var license: License?
var archived: String?
var owner: Owner?
var license: License?

var keysUrl: String?
var statusesUrl: String?
var issuesUrl: String?
var defaultBranch: String?
var issueEventsUrl: String?
var id: NSNumber?
var eventsUrl: String?
var subscriptionUrl: String?
var watchers: NSNumber?
var gitCommitsUrl: String?
var subscribersUrl: String?
var subscribersCount: NSNumber?
var networkCount: NSNumber?
var cloneUrl: String?
var hasWiki: Bool = false
var Url: String?
var pullsUrl: String?
var fork: Bool = false
var notificationsUrl: String?
var _description: String?
var collaboratorsUrl: String?
var deploymentsUrl: String?
var languagesUrl: String?
var hasIssues: Bool = false
var commentsUrl: String?
var isPrivate: Bool = false
var size: NSNumber?
var gitTagsUrl: String?
var updatedAt: String?
var sshUrl: String?
var name: String?
var contentsUrl: String?
var archiveUrl: String?
var milestonesUrl: String?
var blobsUrl: String?
var contributorsUrl: String?
var openIssuesCount: NSNumber?
var forksCount: NSNumber?
var treesUrl: String?
var svnUrl: String?
var commitsUrl: String?
var createdAt: String?
var forksUrl: String?
var hasDownloads: Bool = false
var mirrorUrl: String?
var homepage: String?
var teamsUrl: String?
var branchesUrl: String?
var issueCommentUrl: String?
var mergesUrl: String?
var gitRefsUrl: String?
var gitUrl: String?
var forks: NSNumber?
var openIssues: NSNumber?
var hooksUrl: String?
var htmlUrl: String?
var stargazersUrl: String?
var assigneesUrl: String?
var compareUrl: String?
var fullName: String?
var tagsUrl: String?
var releasesUrl: String?
var pushedAt: String?
var labelsUrl: String?
var downloadsUrl: String?
var stargazersCount: NSNumber?
var watchersCount: NSNumber?
var language: String?
var hasPages: Bool = false
var hasProjects: Bool = false
var archived: String?
}
Binary file not shown.
16 changes: 12 additions & 4 deletions UnitTests/UnitTests.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@
13EF3F691EDDF63700CDBFF4 /* CDUser+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13EF3F671EDDF63700CDBFF4 /* CDUser+CoreDataClass.swift */; };
13EF3F6A1EDDF63700CDBFF4 /* CDUser+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13EF3F671EDDF63700CDBFF4 /* CDUser+CoreDataClass.swift */; };
13EF3F6B1EDDF63700CDBFF4 /* CDUser+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13EF3F671EDDF63700CDBFF4 /* CDUser+CoreDataClass.swift */; };
13FEBE861FE1059F008716AA /* License.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13FEBE851FE1059E008716AA /* License.swift */; };
13FEBE871FE1059F008716AA /* License.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13FEBE851FE1059E008716AA /* License.swift */; };
13FEBE881FE1059F008716AA /* License.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13FEBE851FE1059E008716AA /* License.swift */; };
13FEBE891FE105D2008716AA /* Repository.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F98018E1E260A4D00D6C5C0 /* Repository.swift */; };
13FEBE8A1FE105D7008716AA /* Owner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F98018F1E260A4D00D6C5C0 /* Owner.swift */; };
1A0222E332CA330C2093A72E /* Pods_UnitTestsiOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F65C8B938B44FD44F26FD855 /* Pods_UnitTestsiOS.framework */; };
422668011CB77DD800145E17 /* EVReflectionCustomInitTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 422667FF1CB77DD000145E17 /* EVReflectionCustomInitTests.swift */; };
422668021CB7802C00145E17 /* EVReflectionCustomInitTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 422667FF1CB77DD000145E17 /* EVReflectionCustomInitTests.swift */; };
Expand Down Expand Up @@ -201,10 +206,8 @@
7F9801911E260A4D00D6C5C0 /* MoyaGitHubAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F98018D1E260A4D00D6C5C0 /* MoyaGitHubAPI.swift */; };
7F9801921E260A4D00D6C5C0 /* MoyaGitHubAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F98018D1E260A4D00D6C5C0 /* MoyaGitHubAPI.swift */; };
7F9801931E260A4D00D6C5C0 /* MoyaGitHubAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F98018D1E260A4D00D6C5C0 /* MoyaGitHubAPI.swift */; };
7F9801941E260A4D00D6C5C0 /* Repository.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F98018E1E260A4D00D6C5C0 /* Repository.swift */; };
7F9801951E260A4D00D6C5C0 /* Repository.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F98018E1E260A4D00D6C5C0 /* Repository.swift */; };
7F9801961E260A4D00D6C5C0 /* Repository.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F98018E1E260A4D00D6C5C0 /* Repository.swift */; };
7F9801971E260A4D00D6C5C0 /* Owner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F98018F1E260A4D00D6C5C0 /* Owner.swift */; };
7F9801981E260A4D00D6C5C0 /* Owner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F98018F1E260A4D00D6C5C0 /* Owner.swift */; };
7F9801991E260A4D00D6C5C0 /* Owner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F98018F1E260A4D00D6C5C0 /* Owner.swift */; };
7F98019B1E260AD000D6C5C0 /* MoyaRxSwiftTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F98019A1E260AD000D6C5C0 /* MoyaRxSwiftTests.swift */; };
Expand Down Expand Up @@ -300,6 +303,7 @@
13E937DE1EE74EB600541DC8 /* EVReflectionTests2.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EVReflectionTests2.swift; sourceTree = "<group>"; };
13EF3F671EDDF63700CDBFF4 /* CDUser+CoreDataClass.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "CDUser+CoreDataClass.swift"; path = "CoreDataTests/CDUser+CoreDataClass.swift"; sourceTree = "<group>"; };
13F5E81C1EBC7AEE0038EDB4 /* EVReflectionTest.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = EVReflectionTest.xcdatamodel; sourceTree = "<group>"; };
13FEBE851FE1059E008716AA /* License.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = License.swift; sourceTree = "<group>"; };
16F24E2F358BA7E02E9739C7 /* Pods_UnitTestsOSX.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_UnitTestsOSX.framework; sourceTree = BUILT_PRODUCTS_DIR; };
422667FF1CB77DD000145E17 /* EVReflectionCustomInitTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = EVReflectionCustomInitTests.swift; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
47E08CAF57F8BB1CBE89AD73 /* Pods_UnitTestsTVOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_UnitTestsTVOS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -550,6 +554,7 @@
7F9801901E260A4D00D6C5C0 /* API */ = {
isa = PBXGroup;
children = (
13FEBE851FE1059E008716AA /* License.swift */,
7F98018D1E260A4D00D6C5C0 /* MoyaGitHubAPI.swift */,
7F98018E1E260A4D00D6C5C0 /* Repository.swift */,
7F98018F1E260A4D00D6C5C0 /* Owner.swift */,
Expand Down Expand Up @@ -1075,17 +1080,18 @@
7FC41DE81E8B8C2C0080DB80 /* RealmTests.swift in Sources */,
7F7903CA1E7D4F760086D111 /* EVReflectionExtendingNSObjects.swift in Sources */,
7F9930201E2426B500792CF1 /* AlamofireXml3Tests.swift in Sources */,
7F9801971E260A4D00D6C5C0 /* Owner.swift in Sources */,
1303DBCA1F2DFB550077E55C /* RealmTestIssue221.swift in Sources */,
7F41ECB01B91F306003A2236 /* ProfilePhotoUrlListTest.swift in Sources */,
7F9930261E2426B500792CF1 /* Issue4Test.swift in Sources */,
7F1C9D481E23D76D00A18776 /* ArrayConversionIssue.swift in Sources */,
13FEBE8A1FE105D7008716AA /* Owner.swift in Sources */,
422668011CB77DD800145E17 /* EVReflectionCustomInitTests.swift in Sources */,
7F3FF3B41CF9A0F600BAE767 /* EVReflectionIssue88.swift in Sources */,
7F70E80E1D96C0AB0020DB2C /* EVReflectionIssueAF30.swift in Sources */,
7F59F9DB1C07999300C14CF9 /* EVReflectionEVObjectTests.swift in Sources */,
7F1F1E471E3261C9002CCF02 /* Issue.swift in Sources */,
7F8818F91C04447100E17072 /* EVReflectionPropertyMappingTest.swift in Sources */,
13FEBE861FE1059F008716AA /* License.swift in Sources */,
7FA506E41E68C953003D83E7 /* EVReflectionCustomConverterTests.swift in Sources */,
7F41ECA51B91F2E0003A2236 /* TestObjects.swift in Sources */,
7F9E680C1C62396500F0F4D3 /* EVReflectionNestedObjectsTests.swift in Sources */,
Expand All @@ -1095,7 +1101,6 @@
7F479E1C1C84D7A000F03BEF /* EVReflectionSyncAlternateDesync.swift in Sources */,
131C31C21EBF1EB100EF2039 /* EVReflectionTest.xcdatamodeld in Sources */,
7F41ECAD1B91F306003A2236 /* EVObjectDescriptionTests.swift in Sources */,
7F9801941E260A4D00D6C5C0 /* Repository.swift in Sources */,
7F99302A1E2426B500792CF1 /* Issue6Test.swift in Sources */,
7F41ECB11B91F306003A2236 /* WorkaroundEnumTest.swift in Sources */,
7F83A6711D132F6100A4C508 /* EVReflectionIssue96.swift in Sources */,
Expand All @@ -1105,6 +1110,7 @@
1387E85F1EA92A55007522BB /* EVReflectionIssue186.swift in Sources */,
13AC7EE31ED21DEE00BA89FB /* EVReflectionIssue197.swift in Sources */,
7FF953671E4A8237003B40A6 /* EVReflectionIssueAF39.swift in Sources */,
13FEBE891FE105D2008716AA /* Repository.swift in Sources */,
7F7BBC661C009EE90046F05E /* EVReflectionMappingTest.swift in Sources */,
7FE271661DDDCF9F00C8B4CD /* EVReflectionIssue141.swift in Sources */,
7F1C9D471E23D76D00A18776 /* AlamofireTests.swift in Sources */,
Expand Down Expand Up @@ -1177,6 +1183,7 @@
131C31C61EBF2D2700EF2039 /* EVReflectionTestData.swift in Sources */,
7F479E1D1C84D7A100F03BEF /* EVReflectionSyncAlternateDesync.swift in Sources */,
7F3E31911BB909A7001E6788 /* TestObjects.swift in Sources */,
13FEBE871FE1059F008716AA /* License.swift in Sources */,
131201141EBC4E6D00A189C8 /* CoreDataTests.swift in Sources */,
7F9801951E260A4D00D6C5C0 /* Repository.swift in Sources */,
7F3E31951BB909A7001E6788 /* ProfilePhotoUrlListTest.swift in Sources */,
Expand Down Expand Up @@ -1256,6 +1263,7 @@
131C31C71EBF2D2700EF2039 /* EVReflectionTestData.swift in Sources */,
7F9336CB1C2822B700AF7076 /* EVReflectionEVObjectTests.swift in Sources */,
7F479E1E1C84D7A200F03BEF /* EVReflectionSyncAlternateDesync.swift in Sources */,
13FEBE881FE1059F008716AA /* License.swift in Sources */,
131201151EBC4E6D00A189C8 /* CoreDataTests.swift in Sources */,
7F9336CE1C2822B700AF7076 /* EVReflectionJsonTests.swift in Sources */,
7F9336D11C2822B700AF7076 /* ProfilePhotoUrlListTest.swift in Sources */,
Expand Down

0 comments on commit 66f0d97

Please sign in to comment.