Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

merging for #70

  • Loading branch information...
commit a8aefb5a7c761553e1c16b44d2dec4d082d8b822 2 parents 1dd83d2 + 42cbe6a
Mark Yoon authored
View
69 NUSurveyor.xcodeproj/project.pbxproj
@@ -7,7 +7,14 @@
objects = {
/* Begin PBXBuildFile section */
+ 005AA64B1521F04B00E67C10 /* NUResponseSetTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 006CE3B815214DB400DD32A2 /* NUResponseSetTest.m */; };
+ 005AA64C1521F04B00E67C10 /* NUResponseTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 005AA6491521676300E67C10 /* NUResponseTest.m */; };
+ 005AA64F152208DE00E67C10 /* NUResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 005AA64D152208DE00E67C10 /* NUResponse.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ 005AA650152208DE00E67C10 /* NUResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 005AA64E152208DE00E67C10 /* NUResponse.m */; };
0083A90C14F746F5005C1D94 /* NUConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 0083A90B14F746F5005C1D94 /* NUConstants.h */; };
+ 008AE62715224CE000F4F14C /* NUDatabaseTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 008AE62615224CE000F4F14C /* NUDatabaseTest.m */; };
+ 00C8457F152263DF003B9213 /* NSDateFormatter+Additions.h in Headers */ = {isa = PBXBuildFile; fileRef = 00C8457D152263DF003B9213 /* NSDateFormatter+Additions.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ 00C84580152263DF003B9213 /* NSDateFormatter+Additions.m in Sources */ = {isa = PBXBuildFile; fileRef = 00C8457E152263DF003B9213 /* NSDateFormatter+Additions.m */; };
3B24DED514EEEA8400E7D04C /* basic_survey.feature in Resources */ = {isa = PBXBuildFile; fileRef = 3B24DED414EEEA8400E7D04C /* basic_survey.feature */; };
3B24DED714EEEABF00E7D04C /* response_set_steps.rb in Resources */ = {isa = PBXBuildFile; fileRef = 3B24DED614EEEABF00E7D04C /* response_set_steps.rb */; };
3B2AB06E1522429E00525F25 /* NUOneStringOrNumberCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 3B2AB06C1522429E00525F25 /* NUOneStringOrNumberCell.h */; };
@@ -17,7 +24,6 @@
3B8CF201151B91C600EA4148 /* test-birth-date-survey.json in Resources */ = {isa = PBXBuildFile; fileRef = 3B8CF200151B91C600EA4148 /* test-birth-date-survey.json */; };
3BA2E94A14CDCD0F0057D05C /* NUSurvey.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BA2E94814CDCD0F0057D05C /* NUSurvey.h */; };
3BA2E94B14CDCD0F0057D05C /* NUSurvey.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BA2E94914CDCD0F0057D05C /* NUSurvey.m */; };
- 3BA2E94C14CDCD0F0057D05C /* NUSurvey.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BA2E94914CDCD0F0057D05C /* NUSurvey.m */; };
3BC61A7E1520CBDB00A8C20C /* NUAnyStringOrNumberCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BC61A7C1520CBDB00A8C20C /* NUAnyStringOrNumberCell.h */; };
3BC61A7F1520CBDB00A8C20C /* NUAnyStringOrNumberCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BC61A7D1520CBDB00A8C20C /* NUAnyStringOrNumberCell.m */; };
3BC61A841520F75000A8C20C /* NUAnyDatePickerCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BC61A821520F74F00A8C20C /* NUAnyDatePickerCell.h */; };
@@ -37,53 +43,38 @@
3BD52AC214C8B43500AB61E8 /* NUSurveyorTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52AC114C8B43500AB61E8 /* NUSurveyorTests.m */; };
3BD52AD014C8B5A200AB61E8 /* NUSurveyTVC.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52ACE14C8B5A200AB61E8 /* NUSurveyTVC.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52AD114C8B5A200AB61E8 /* NUSurveyTVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52ACF14C8B5A200AB61E8 /* NUSurveyTVC.m */; };
- 3BD52AD214C8B5A200AB61E8 /* NUSurveyTVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52ACF14C8B5A200AB61E8 /* NUSurveyTVC.m */; };
3BD52AD514C8B5B600AB61E8 /* NUSectionTVC.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52AD314C8B5B600AB61E8 /* NUSectionTVC.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52AD614C8B5B600AB61E8 /* NUSectionTVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52AD414C8B5B600AB61E8 /* NUSectionTVC.m */; };
- 3BD52AD714C8B5B600AB61E8 /* NUSectionTVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52AD414C8B5B600AB61E8 /* NUSectionTVC.m */; };
3BD52ADA14C8B5FE00AB61E8 /* UUID.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52AD814C8B5FE00AB61E8 /* UUID.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52ADB14C8B5FE00AB61E8 /* UUID.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52AD914C8B5FE00AB61E8 /* UUID.m */; };
- 3BD52ADC14C8B5FE00AB61E8 /* UUID.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52AD914C8B5FE00AB61E8 /* UUID.m */; };
3BD52ADF14C8B62600AB61E8 /* NUPickerVC.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52ADD14C8B62600AB61E8 /* NUPickerVC.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52AE014C8B62600AB61E8 /* NUPickerVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52ADE14C8B62600AB61E8 /* NUPickerVC.m */; };
- 3BD52AE114C8B62600AB61E8 /* NUPickerVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52ADE14C8B62600AB61E8 /* NUPickerVC.m */; };
3BD52AE414C8B65400AB61E8 /* NUResponseSet.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52AE214C8B65400AB61E8 /* NUResponseSet.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52AE514C8B65400AB61E8 /* NUResponseSet.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52AE314C8B65400AB61E8 /* NUResponseSet.m */; };
- 3BD52AE614C8B65400AB61E8 /* NUResponseSet.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52AE314C8B65400AB61E8 /* NUResponseSet.m */; };
3BD52AE914C8B6A400AB61E8 /* NUAnyCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52AE714C8B6A400AB61E8 /* NUAnyCell.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52AEA14C8B6A400AB61E8 /* NUAnyCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52AE814C8B6A400AB61E8 /* NUAnyCell.m */; };
- 3BD52AEB14C8B6A400AB61E8 /* NUAnyCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52AE814C8B6A400AB61E8 /* NUAnyCell.m */; };
3BD52AEE14C8B6B900AB61E8 /* NUDatePickerCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52AEC14C8B6B900AB61E8 /* NUDatePickerCell.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52AEF14C8B6B900AB61E8 /* NUDatePickerCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52AED14C8B6B900AB61E8 /* NUDatePickerCell.m */; };
- 3BD52AF014C8B6B900AB61E8 /* NUDatePickerCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52AED14C8B6B900AB61E8 /* NUDatePickerCell.m */; };
3BD52AFD14C8B6E900AB61E8 /* NUNoneCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52AFB14C8B6E800AB61E8 /* NUNoneCell.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52AFE14C8B6E900AB61E8 /* NUNoneCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52AFC14C8B6E800AB61E8 /* NUNoneCell.m */; };
- 3BD52AFF14C8B6E900AB61E8 /* NUNoneCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52AFC14C8B6E800AB61E8 /* NUNoneCell.m */; };
3BD52B0214C8B6F700AB61E8 /* NUNoneTextCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52B0014C8B6F600AB61E8 /* NUNoneTextCell.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52B0314C8B6F700AB61E8 /* NUNoneTextCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52B0114C8B6F600AB61E8 /* NUNoneTextCell.m */; };
- 3BD52B0414C8B6F700AB61E8 /* NUNoneTextCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52B0114C8B6F600AB61E8 /* NUNoneTextCell.m */; };
3BD52B0714C8B70500AB61E8 /* NUOneCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52B0514C8B70500AB61E8 /* NUOneCell.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52B0814C8B70500AB61E8 /* NUOneCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52B0614C8B70500AB61E8 /* NUOneCell.m */; };
- 3BD52B0914C8B70500AB61E8 /* NUOneCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52B0614C8B70500AB61E8 /* NUOneCell.m */; };
3BD52B1114C8B74800AB61E8 /* NUButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52B0F14C8B74800AB61E8 /* NUButton.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52B1214C8B74800AB61E8 /* NUButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52B1014C8B74800AB61E8 /* NUButton.m */; };
- 3BD52B1314C8B74800AB61E8 /* NUButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52B1014C8B74800AB61E8 /* NUButton.m */; };
3BD52B1614C8B76E00AB61E8 /* NUPickerCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52B1414C8B76E00AB61E8 /* NUPickerCell.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52B1714C8B76E00AB61E8 /* NUPickerCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52B1514C8B76E00AB61E8 /* NUPickerCell.m */; };
- 3BD52B1814C8B76E00AB61E8 /* NUPickerCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52B1514C8B76E00AB61E8 /* NUPickerCell.m */; };
3BD52B1B14C8B7A200AB61E8 /* NUMultiButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52B1914C8B7A200AB61E8 /* NUMultiButton.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52B1C14C8B7A200AB61E8 /* NUMultiButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52B1A14C8B7A200AB61E8 /* NUMultiButton.m */; };
- 3BD52B1D14C8B7A200AB61E8 /* NUMultiButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52B1A14C8B7A200AB61E8 /* NUMultiButton.m */; };
3BD52B2514C8B7EF00AB61E8 /* UILabel+NUResize.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BD52B2314C8B7EF00AB61E8 /* UILabel+NUResize.h */; settings = {ATTRIBUTES = (Public, ); }; };
3BD52B2614C8B7EF00AB61E8 /* UILabel+NUResize.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52B2414C8B7EF00AB61E8 /* UILabel+NUResize.m */; };
- 3BD52B2714C8B7EF00AB61E8 /* UILabel+NUResize.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BD52B2414C8B7EF00AB61E8 /* UILabel+NUResize.m */; };
3BE8673014CDF145002D04BD /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3BE8672F14CDF145002D04BD /* QuartzCore.framework */; };
671F3C9614C9C36D00CEE042 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671F3C9514C9C36D00CEE042 /* UIKit.framework */; };
671F3C9914C9C37500CEE042 /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671F3C9814C9C37500CEE042 /* CoreData.framework */; };
671F3C9B14C9C38100CEE042 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671F3C9A14C9C38100CEE042 /* CoreGraphics.framework */; };
671F3E6814C9C41000CEE042 /* libsbjson-ios.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 671F3E4814C9C3BB00CEE042 /* libsbjson-ios.a */; };
671F3E8914CA318100CEE042 /* NUCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 671F3E8814CA318100CEE042 /* NUCell.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 67DB495B14D071FE009CC8C3 /* libsbjson-ios.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 671F3E4814C9C3BB00CEE042 /* libsbjson-ios.a */; };
67DB495C14D07203009CC8C3 /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671F3C9814C9C37500CEE042 /* CoreData.framework */; };
67DB495D14D07207009CC8C3 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 671F3C9A14C9C38100CEE042 /* CoreGraphics.framework */; };
67DB495E14D07210009CC8C3 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3BE8672F14CDF145002D04BD /* QuartzCore.framework */; };
@@ -179,7 +170,17 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
+ 005AA6481521676300E67C10 /* NUResponseTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NUResponseTest.h; sourceTree = "<group>"; };
+ 005AA6491521676300E67C10 /* NUResponseTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NUResponseTest.m; sourceTree = "<group>"; };
+ 005AA64D152208DE00E67C10 /* NUResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NUResponse.h; path = Models/NUResponse.h; sourceTree = "<group>"; };
+ 005AA64E152208DE00E67C10 /* NUResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NUResponse.m; path = Models/NUResponse.m; sourceTree = "<group>"; };
+ 006CE3B715214DB400DD32A2 /* NUResponseSetTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NUResponseSetTest.h; sourceTree = "<group>"; };
+ 006CE3B815214DB400DD32A2 /* NUResponseSetTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NUResponseSetTest.m; sourceTree = "<group>"; };
0083A90B14F746F5005C1D94 /* NUConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NUConstants.h; sourceTree = "<group>"; };
+ 008AE62515224CE000F4F14C /* NUDatabaseTest.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = NUDatabaseTest.h; sourceTree = "<group>"; tabWidth = 4; usesTabs = 0; wrapsLines = 1; };
+ 008AE62615224CE000F4F14C /* NUDatabaseTest.m */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.objc; path = NUDatabaseTest.m; sourceTree = "<group>"; tabWidth = 4; usesTabs = 0; wrapsLines = 1; };
+ 00C8457D152263DF003B9213 /* NSDateFormatter+Additions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSDateFormatter+Additions.h"; path = "Models/NSDateFormatter+Additions.h"; sourceTree = "<group>"; };
+ 00C8457E152263DF003B9213 /* NSDateFormatter+Additions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSDateFormatter+Additions.m"; path = "Models/NSDateFormatter+Additions.m"; sourceTree = "<group>"; };
3B08678E14FED8C100D43E02 /* group_dependency.feature */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = group_dependency.feature; sourceTree = "<group>"; };
3B24DED414EEEA8400E7D04C /* basic_survey.feature */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = basic_survey.feature; sourceTree = "<group>"; };
3B24DED614EEEABF00E7D04C /* response_set_steps.rb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.ruby; path = response_set_steps.rb; sourceTree = "<group>"; };
@@ -609,7 +610,6 @@
67DB495E14D07210009CC8C3 /* QuartzCore.framework in Frameworks */,
67DB495D14D07207009CC8C3 /* CoreGraphics.framework in Frameworks */,
67DB495C14D07203009CC8C3 /* CoreData.framework in Frameworks */,
- 67DB495B14D071FE009CC8C3 /* libsbjson-ios.a in Frameworks */,
3BD52AB314C8B43500AB61E8 /* SenTestingKit.framework in Frameworks */,
3BD52AB614C8B43500AB61E8 /* Foundation.framework in Frameworks */,
3BD52AB914C8B43500AB61E8 /* libNUSurveyor.a in Frameworks */,
@@ -712,9 +712,15 @@
3BD52ABA14C8B43500AB61E8 /* NUSurveyorTests */ = {
isa = PBXGroup;
children = (
+ 006CE3B715214DB400DD32A2 /* NUResponseSetTest.h */,
+ 006CE3B815214DB400DD32A2 /* NUResponseSetTest.m */,
3BD52AC014C8B43500AB61E8 /* NUSurveyorTests.h */,
3BD52AC114C8B43500AB61E8 /* NUSurveyorTests.m */,
3BD52ABB14C8B43500AB61E8 /* Supporting Files */,
+ 008AE62515224CE000F4F14C /* NUDatabaseTest.h */,
+ 008AE62615224CE000F4F14C /* NUDatabaseTest.m */,
+ 005AA6481521676300E67C10 /* NUResponseTest.h */,
+ 005AA6491521676300E67C10 /* NUResponseTest.m */,
);
path = NUSurveyorTests;
sourceTree = "<group>";
@@ -779,6 +785,10 @@
3BD52AE314C8B65400AB61E8 /* NUResponseSet.m */,
3BA2E94814CDCD0F0057D05C /* NUSurvey.h */,
3BA2E94914CDCD0F0057D05C /* NUSurvey.m */,
+ 005AA64D152208DE00E67C10 /* NUResponse.h */,
+ 005AA64E152208DE00E67C10 /* NUResponse.m */,
+ 00C8457D152263DF003B9213 /* NSDateFormatter+Additions.h */,
+ 00C8457E152263DF003B9213 /* NSDateFormatter+Additions.m */,
);
name = Models;
sourceTree = "<group>";
@@ -1895,6 +1905,8 @@
3BD52B1114C8B74800AB61E8 /* NUButton.h in Headers */,
3BD52B1B14C8B7A200AB61E8 /* NUMultiButton.h in Headers */,
3BD52B2514C8B7EF00AB61E8 /* UILabel+NUResize.h in Headers */,
+ 005AA64F152208DE00E67C10 /* NUResponse.h in Headers */,
+ 00C8457F152263DF003B9213 /* NSDateFormatter+Additions.h in Headers */,
67DB499814D0933E009CC8C3 /* NUGridAnyCell.h in Headers */,
67DB499A14D0933E009CC8C3 /* NUGridOneCell.h in Headers */,
0083A90C14F746F5005C1D94 /* NUConstants.h in Headers */,
@@ -1985,6 +1997,7 @@
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0420;
+ ORGANIZATIONNAME = "Northwestern University";
};
buildConfigurationList = 3BD52A9B14C8B43400AB61E8 /* Build configuration list for PBXProject "NUSurveyor" */;
compatibilityVersion = "Xcode 3.2";
@@ -2146,10 +2159,12 @@
3BA2E94B14CDCD0F0057D05C /* NUSurvey.m in Sources */,
67DB499914D0933E009CC8C3 /* NUGridAnyCell.m in Sources */,
67DB499B14D0933E009CC8C3 /* NUGridOneCell.m in Sources */,
+ 005AA650152208DE00E67C10 /* NUResponse.m in Sources */,
3BC61A7F1520CBDB00A8C20C /* NUAnyStringOrNumberCell.m in Sources */,
3BC61A851520F75000A8C20C /* NUAnyDatePickerCell.m in Sources */,
3B2AB06F1522429E00525F25 /* NUOneStringOrNumberCell.m in Sources */,
3B2AB0731522483E00525F25 /* NUOneDatePickerCell.m in Sources */,
+ 00C84580152263DF003B9213 /* NSDateFormatter+Additions.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -2157,23 +2172,11 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ 005AA64B1521F04B00E67C10 /* NUResponseSetTest.m in Sources */,
+ 005AA64C1521F04B00E67C10 /* NUResponseTest.m in Sources */,
3BD52AC214C8B43500AB61E8 /* NUSurveyorTests.m in Sources */,
- 3BD52AD214C8B5A200AB61E8 /* NUSurveyTVC.m in Sources */,
- 3BD52AD714C8B5B600AB61E8 /* NUSectionTVC.m in Sources */,
- 3BD52ADC14C8B5FE00AB61E8 /* UUID.m in Sources */,
- 3BD52AE114C8B62600AB61E8 /* NUPickerVC.m in Sources */,
- 3BD52AE614C8B65400AB61E8 /* NUResponseSet.m in Sources */,
- 3BD52AEB14C8B6A400AB61E8 /* NUAnyCell.m in Sources */,
- 3BD52AF014C8B6B900AB61E8 /* NUDatePickerCell.m in Sources */,
- 3BD52AFF14C8B6E900AB61E8 /* NUNoneCell.m in Sources */,
- 3BD52B0414C8B6F700AB61E8 /* NUNoneTextCell.m in Sources */,
- 3BD52B0914C8B70500AB61E8 /* NUOneCell.m in Sources */,
- 3BD52B1314C8B74800AB61E8 /* NUButton.m in Sources */,
- 3BD52B1814C8B76E00AB61E8 /* NUPickerCell.m in Sources */,
- 3BD52B1D14C8B7A200AB61E8 /* NUMultiButton.m in Sources */,
- 3BD52B2714C8B7EF00AB61E8 /* UILabel+NUResize.m in Sources */,
- 3BA2E94C14CDCD0F0057D05C /* NUSurvey.m in Sources */,
67DB499314D085CA009CC8C3 /* NUSurveyor.xcdatamodel in Sources */,
+ 008AE62715224CE000F4F14C /* NUDatabaseTest.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -2381,6 +2384,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "NUSurveyor/NUSurveyor-Prefix.pch";
INFOPLIST_FILE = "NUSurveyorTests/NUSurveyorTests-Info.plist";
+ OTHER_LDFLAGS = "-all_load";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = octest;
};
@@ -2396,6 +2400,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "NUSurveyor/NUSurveyor-Prefix.pch";
INFOPLIST_FILE = "NUSurveyorTests/NUSurveyorTests-Info.plist";
+ OTHER_LDFLAGS = "-all_load";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = octest;
};
View
15 NUSurveyor/Models/NSDateFormatter+Additions.h
@@ -0,0 +1,15 @@
+//
+// NSDateFormatter+Additions.h
+// NUSurveyor
+//
+// Created by John Dzak on 3/27/12.
+// Copyright (c) 2012 Northwestern University. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+@interface NSDateFormatter (Additions)
+
++ (NSDateFormatter*) rfc3339DateFormatter;
+
+@end
View
21 NUSurveyor/Models/NSDateFormatter+Additions.m
@@ -0,0 +1,21 @@
+//
+// NSDateFormatter+Additions.m
+// NUSurveyor
+//
+// Created by John Dzak on 3/27/12.
+// Copyright (c) 2012 Northwestern University. All rights reserved.
+//
+
+#import "NSDateFormatter+Additions.h"
+
+@implementation NSDateFormatter (Additions)
+
++ (NSDateFormatter*) rfc3339DateFormatter {
+ NSDateFormatter* f = [[NSDateFormatter alloc] init];
+ [f setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]];
+ [f setDateFormat:@"yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'"];
+ [f setTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:0]];
+ return f;
+}
+
+@end
View
16 NUSurveyor/Models/NUResponse.h
@@ -0,0 +1,16 @@
+//
+// NUResponse.h
+// NUSurveyor
+//
+// Created by John Dzak on 3/27/12.
+// Copyright (c) 2012 Northwestern University. All rights reserved.
+//
+
+#import <CoreData/CoreData.h>
+
+@interface NUResponse : NSManagedObject
+
+- (NSDictionary*) toDict;
+- (NSString*) toJson;
+
+@end
View
33 NUSurveyor/Models/NUResponse.m
@@ -0,0 +1,33 @@
+//
+// NUResponse.m
+// NUSurveyor
+//
+// Created by John Dzak on 3/27/12.
+// Copyright (c) 2012 Northwestern University. All rights reserved.
+//
+
+#import "NUResponse.h"
+#import "SBJson.h"
+#import "NSDateFormatter+Additions.h"
+
+@implementation NUResponse
+
+- (NSDictionary*) toDict {
+ NSString* createdAt = [[NSDateFormatter rfc3339DateFormatter] stringFromDate:[self valueForKey:@"createdAt"]];
+ NSString* modifiedAt = [[NSDateFormatter rfc3339DateFormatter] stringFromDate:[self valueForKey:@"modifiedAt"]];
+
+ return [[NSDictionary alloc] initWithObjectsAndKeys:
+ [self valueForKey:@"uuid"], @"uuid",
+ [self valueForKey:@"answer"], @"answer_id",
+ [self valueForKey:@"question"], @"question_id",
+ [self valueForKey:@"value"], @"value",
+ createdAt, @"created_at",
+ modifiedAt, @"modified_at", nil];
+}
+
+- (NSString*) toJson {
+ SBJsonWriter* w = [[SBJsonWriter alloc] init];
+ return [w stringWithObject:[self toDict]];
+}
+
+@end
View
9 NUSurveyor/Models/NUResponseSet.h
@@ -8,24 +8,29 @@
#import <CoreData/CoreData.h>
+@class NUResponse;
+
@interface NUResponseSet : NSManagedObject
@property (nonatomic, retain) NSMutableDictionary *dependencyGraph;
@property (nonatomic, retain) NSMutableDictionary *dependencies;
@property (nonatomic, strong) NSString *uuid;
+@property (nonatomic, retain) NSSet* responses;
+ (NUResponseSet *) newResponseSetForSurvey:(NSDictionary *)survey withModel:(NSManagedObjectModel *)mom inContext:(NSManagedObjectContext *)moc;
+ (void) saveContext:(NSManagedObjectContext *)moc withMessage:(NSString *)message;
- (NSUInteger) responseCount;
- (NSArray *) responsesForQuestion:(NSString *)qid;
- (NSArray *) responsesForQuestion:(NSString *)qid Answer:(NSString *)aid;
-- (NSManagedObject *) newResponseForQuestion:(NSString *)qid Answer:(NSString *)aid Value:(NSString *)value;
-- (NSManagedObject *) newResponseForIndexQuestion:(NSString *)qid Answer:(NSString *)aid;
+- (NUResponse *) newResponseForQuestion:(NSString *)qid Answer:(NSString *)aid Value:(NSString *)value;
+- (NUResponse *) newResponseForIndexQuestion:(NSString *)qid Answer:(NSString *)aid;
- (void) deleteResponseForQuestion:(NSString *)qid Answer:(NSString *)aid;
- (void) generateDependencyGraph:(NSDictionary *)survey;
- (NSDictionary *) dependenciesTriggeredBy:(NSString *)qid;
- (BOOL) showDependency:(NSDictionary *)q;
- (NSMutableDictionary *) evaluateConditions:(NSArray *)conditions;
+- (NSDictionary*) toDict;
+- (NSString*) toJson;
@end
View
33 NUSurveyor/Models/NUResponseSet.m
@@ -8,10 +8,13 @@
#import "NUResponseSet.h"
#import "UUID.h"
+#import "NUResponse.h"
+#import "SBJson.h"
+#import "NSDateFormatter+Additions.h"
@implementation NUResponseSet
@synthesize dependencyGraph = _dependencyGraph, dependencies = _dependencies;
-@dynamic uuid;
+@dynamic uuid, responses;
// initializer
+ (NUResponseSet *) newResponseSetForSurvey:(NSDictionary *)survey withModel:(NSManagedObjectModel *)mom inContext:(NSManagedObjectContext *)moc {
@@ -126,9 +129,10 @@ - (NSArray *) responsesForQuestion:(NSString *)qid Answer:(NSString *)aid {
//
// Create a response with value
//
-- (NSManagedObject *) newResponseForQuestion:(NSString *)qid Answer:(NSString *)aid Value:(NSString *)value{
-
- NSManagedObject *newResponse = [NSEntityDescription insertNewObjectForEntityForName:@"Response" inManagedObjectContext:self.managedObjectContext];
+- (NUResponse *) newResponseForQuestion:(NSString *)qid Answer:(NSString *)aid Value:(NSString *)value{
+ NSDictionary* entities = [[[self.managedObjectContext persistentStoreCoordinator] managedObjectModel] entitiesByName];
+ NSEntityDescription *entity = [entities objectForKey:@"Response"];
+ NUResponse* newResponse = [[NUResponse alloc] initWithEntity:entity insertIntoManagedObjectContext:self.managedObjectContext];
[newResponse setValue:self forKey:@"responseSet"];
[newResponse setValue:qid forKey:@"question"];
[newResponse setValue:aid forKey:@"answer"];
@@ -341,4 +345,25 @@ - (NSMutableDictionary *) evaluateConditions:(NSArray *)conditions {
return values;
}
+- (NSDictionary*) toDict {
+ NSMutableArray* responseDictionaries = [NSMutableArray new];
+ for (NUResponse* r in [self responses]) {
+ [responseDictionaries addObject:[r toDict]];
+ }
+ NSString* createdAt = [[NSDateFormatter rfc3339DateFormatter] stringFromDate:[self valueForKey:@"createdAt"]];
+ NSString* completedAt = [[NSDateFormatter rfc3339DateFormatter] stringFromDate:[self valueForKey:@"completedAt"]];
+ return [[NSDictionary alloc]initWithObjectsAndKeys:
+ [self valueForKey:@"uuid"], @"uuid",
+ [self valueForKey:@"survey"], @"survey_id",
+ createdAt, @"created_at",
+ completedAt, @"completed_at",
+ [self valueForKey:@"completedAt"], @"created_at",
+ responseDictionaries, @"responses", nil];
+}
+
+- (NSString*) toJson {
+ SBJsonWriter* w = [[SBJsonWriter alloc] init];
+ return [w stringWithObject:[self toDict]];
+}
+
@end
View
2  NUSurveyorExample/NUSurveyorExample.xcdatamodel/contents
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model name="" userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="872" systemVersion="10K549" minimumToolsVersion="Automatic" macOSVersion="Automatic" iOSVersion="Automatic">
- <entity name="Response" representedClassName="NUResponseSet" syncable="YES">
+ <entity name="Response" representedClassName="NUResponse" syncable="YES">
<attribute name="answer" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="createdAt" optional="YES" attributeType="Date" syncable="YES"/>
<attribute name="modifiedAt" optional="YES" attributeType="Date" syncable="YES"/>
View
23 NUSurveyorTests/NUDatabaseTest.h
@@ -0,0 +1,23 @@
+//
+// NUDatabaseTest.h
+//
+//
+// Created by John Dzak on 3/27/12.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import <SenTestingKit/SenTestingKit.h>
+#import <CoreData/CoreData.h>
+
+@interface NUDatabaseTest : SenTestCase
+
+@property (nonatomic, strong) NSBundle *bundle;
+@property (nonatomic, strong) NSPersistentStoreCoordinator *coord;
+@property (nonatomic, strong) NSManagedObjectContext *ctx;
+@property (nonatomic, strong) NSManagedObjectModel *model;
+@property (nonatomic, strong) NSPersistentStore *store;
+
+- (void)setUp;
+- (void)tearDown;
+
+@end
View
51 NUSurveyorTests/NUDatabaseTest.m
@@ -0,0 +1,51 @@
+//
+// NUDatabaseTest.m
+//
+//
+// Created by John Dzak on 3/27/12.
+// Copyright (c) 2012 Northwestern University. All rights reserved.
+//
+
+#import "NUDatabaseTest.h"
+
+@implementation NUDatabaseTest
+
+@synthesize bundle = _bundle, coord = _coord, ctx = _ctx, model = _model, store = _store;
+
+- (void)setUp
+{
+ [super setUp];
+
+ // Set-up code here.
+ self.bundle = [NSBundle bundleWithIdentifier:@"NUBIC.NUSurveyorTests"];
+ self.model = [[NSManagedObjectModel alloc] initWithContentsOfURL:[self.bundle URLForResource:@"NUSurveyor" withExtension:@"mom"]];
+ self.coord = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel: self.model];
+ self.store = [self.coord addPersistentStoreWithType: NSInMemoryStoreType
+ configuration: nil
+ URL: nil
+ options: nil
+ error: NULL];
+ self.ctx = [[NSManagedObjectContext alloc] init];
+ [self.ctx setPersistentStoreCoordinator: self.coord];
+}
+
+- (void)tearDown
+{
+ // Tear-down code here.
+ self.ctx = nil;
+ NSError *error = nil;
+ STAssertTrue([self.coord removePersistentStore: self.store error: &error],
+ @"couldn't remove persistent store: %@", error);
+ self.store = nil;
+ self.coord = nil;
+ self.model = nil;
+ self.bundle = nil;
+
+ [super tearDown];
+}
+
+- (void)testThatEnvironmentWorks {
+ STAssertNotNil(self.store, @"no persistent store");
+}
+
+@end
View
14 NUSurveyorTests/NUResponseSetTest.h
@@ -0,0 +1,14 @@
+//
+// NUResponsetSetTest.h
+// NUSurveyor
+//
+// Created by John Dzak on 3/26/12.
+// Copyright (c) 2012 Northwestern University. All rights reserved.
+//
+
+#import <SenTestingKit/SenTestingKit.h>
+#import "NUDatabaseTest.h"
+
+@interface NUResponseSetTest : NUDatabaseTest
+
+@end
View
60 NUSurveyorTests/NUResponseSetTest.m
@@ -0,0 +1,60 @@
+//
+// NUResponsetSetTest.m
+// NUSurveyor
+//
+// Created by John Dzak on 3/26/12.
+// Copyright (c) 2012 Northwestern University. All rights reserved.
+//
+
+#import "NUResponseSetTest.h"
+#import "NUResponseSet.h"
+#import "NUSurvey.h"
+#import "NSDateFormatter+Additions.h"
+
+@implementation NUResponseSetTest
+
+NUResponseSet* rs;
+NSDate* createdAt;
+NSDate* completedAt;
+
+- (void)setUp {
+ [super setUp];
+ createdAt = [[NSDateFormatter rfc3339DateFormatter] dateFromString:@"1970-02-04T05:15:30Z"];
+ completedAt = [[NSDateFormatter rfc3339DateFormatter] dateFromString:@"1990-03-06T07:21:42Z"];
+
+ NSDictionary* s = [[NSDictionary alloc] initWithObjectsAndKeys:@"RECT", @"uuid", nil];
+ rs = [NUResponseSet newResponseSetForSurvey:s withModel:self.model inContext:self.ctx];
+ [rs setValue:@"OVAL" forKey:@"uuid"];
+ [rs setValue:createdAt forKey:@"createdAt"];
+ [rs setValue:completedAt forKey:@"completedAt"];
+
+ [rs newResponseForQuestion:@"abc" Answer:@"123" Value:@"foo"];
+ [rs newResponseForQuestion:@"xyz" Answer:@"456" Value:@"bar"];
+}
+
+- (void)testSanity {
+ NUResponseSet* rs = [NUResponseSet newResponseSetForSurvey:[NSDictionary dictionary] withModel:self.model inContext:self.ctx];
+ [rs newResponseForIndexQuestion:@"abc" Answer:@"123"];
+
+ STAssertEquals(1U, [[rs responsesForQuestion:@"abc" Answer:@"123"] count], @"Should have one element");
+}
+
+- (void)testToDict {
+ NSDictionary* actual = [rs toDict];
+ STAssertEqualObjects([actual objectForKey:@"uuid"], @"OVAL", @"Wrong value");
+ STAssertEqualObjects([actual objectForKey:@"survey_id"], @"RECT", @"Wrong value");
+ STAssertEqualObjects([actual objectForKey:@"created_at"], @"1970-02-04T05:15:30Z", @"Wrong value");
+ STAssertEqualObjects([actual objectForKey:@"completed_at"], @"1990-03-06T07:21:42Z", @"Wrong value");
+ STAssertEquals([[actual objectForKey:@"responses"] count], 2U, @"Wrong size");
+}
+
+- (void) testToJson {
+ NSString* actual = [rs toJson];
+ STAssertTrue([actual rangeOfString:@"\"uuid\":\"OVAL\""].location != NSNotFound, @"Should exist");
+ STAssertTrue([actual rangeOfString:@"\"survey_id\":\"RECT\""].location != NSNotFound, @"Should exist");
+ STAssertTrue([actual rangeOfString:@"\"created_at\":\"1970-02-04T05:15:30Z\""].location != NSNotFound, @"Should exist");
+ STAssertTrue([actual rangeOfString:@"\"completed_at\":\"1990-03-06T07:21:42Z\""].location != NSNotFound, @"Should exist");
+ STAssertTrue([actual rangeOfString:@"\"responses\":["].location != NSNotFound, @"Should exist");
+}
+
+@end
View
15 NUSurveyorTests/NUResponseTest.h
@@ -0,0 +1,15 @@
+//
+// NUResponseTest.h
+// NUSurveyor
+//
+// Created by John Dzak on 3/26/12.
+// Copyright (c) 2012 Northwestern University. All rights reserved.
+//
+
+#import <SenTestingKit/SenTestingKit.h>
+
+#import "NUDatabaseTest.h"
+
+@interface NUResponseTest : NUDatabaseTest
+
+@end
View
61 NUSurveyorTests/NUResponseTest.m
@@ -0,0 +1,61 @@
+//
+// NUResponseTest.m
+// NUSurveyor
+//
+// Created by John Dzak on 3/26/12.
+// Copyright (c) 2012 Northwestern University. All rights reserved.
+//
+
+#import "NUResponseTest.h"
+#import "NUResponseSet.h"
+#import "NUResponse.h"
+#import "NSDateFormatter+Additions.h"
+
+@implementation NUResponseTest
+
+NUResponse* response;
+NSDate* createdAt;
+NSDate* modifiedAt;
+
+- (void)setUp {
+ [super setUp];
+
+ createdAt = [[NSDateFormatter rfc3339DateFormatter] dateFromString:@"1970-02-04T05:15:30Z"];
+ modifiedAt = [[NSDateFormatter rfc3339DateFormatter] dateFromString:@"1990-03-06T07:21:42Z"];
+
+ NSDictionary* s = [[NSDictionary alloc] initWithObjectsAndKeys:@"RECT", @"uuid", nil];
+ NUResponseSet* rs = [NUResponseSet newResponseSetForSurvey:s withModel:self.model inContext:self.ctx];
+ response = [rs newResponseForQuestion:@"abc" Answer:@"123" Value:@"foo"];
+ [response setValue:@"OCT" forKey:@"uuid"];
+ [response setValue:createdAt forKey:@"createdAt"];
+ [response setValue:modifiedAt forKey:@"modifiedAt"];
+}
+
+- (void)testSanity {
+ NUResponseSet* rs = [NUResponseSet newResponseSetForSurvey:[NSDictionary dictionary] withModel:self.model inContext:self.ctx];
+ [rs newResponseForIndexQuestion:@"abc" Answer:@"123"];
+
+ STAssertEquals(1U, [[rs responsesForQuestion:@"abc" Answer:@"123"] count], @"Should have one element");
+}
+
+- (void)testToDict {
+ NSDictionary* actual = [response toDict];
+ STAssertEqualObjects([actual objectForKey:@"value"], @"foo", @"Wrong value");
+ STAssertEqualObjects([actual objectForKey:@"answer_id"], @"123", @"Wrong value");
+ STAssertEqualObjects([actual objectForKey:@"question_id"], @"abc", @"Wrong value");
+ STAssertEqualObjects([actual objectForKey:@"uuid"], @"OCT", @"Wrong value");
+ STAssertEqualObjects([actual objectForKey:@"created_at"], @"1970-02-04T05:15:30Z", @"Wrong value");
+ STAssertEqualObjects([actual objectForKey:@"modified_at"], @"1990-03-06T07:21:42Z", @"Wrong value");
+}
+
+- (void)testToJson {
+ NSString* actual = [response toJson];
+ STAssertTrue([actual rangeOfString:@"\"value\":\"foo\""].location != NSNotFound, @"Should exist");
+ STAssertTrue([actual rangeOfString:@"\"answer_id\":\"123\""].location != NSNotFound, @"Should exist");
+ STAssertTrue([actual rangeOfString:@"\"question_id\":\"abc\""].location != NSNotFound, @"Should exist");
+ STAssertTrue([actual rangeOfString:@"\"uuid\":\"OCT\""].location != NSNotFound, @"Should exist");
+ STAssertTrue([actual rangeOfString:@"\"created_at\":\"1970-02-04T05:15:30Z\""].location != NSNotFound, @"Should exist");
+ STAssertTrue([actual rangeOfString:@"\"modified_at\":\"1990-03-06T07:21:42Z\""].location != NSNotFound, @"Should exist");
+}
+
+@end
View
2  NUSurveyorTests/NUSurveyor.xcdatamodel/contents
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model name="" userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="872" systemVersion="10K549" minimumToolsVersion="Automatic" macOSVersion="Automatic" iOSVersion="Automatic">
- <entity name="Response" representedClassName="NUResponseSet" syncable="YES">
+ <entity name="Response" representedClassName="NUResponse" syncable="YES">
<attribute name="answer" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="createdAt" optional="YES" attributeType="Date" syncable="YES"/>
<attribute name="modifiedAt" optional="YES" attributeType="Date" syncable="YES"/>
View
10 NUSurveyorTests/NUSurveyorTests.h
@@ -7,14 +7,8 @@
//
#import <SenTestingKit/SenTestingKit.h>
-#import <CoreData/CoreData.h>
+#import "NUDatabaseTest.h"
-@interface NUSurveyorTests : SenTestCase
-
-@property (nonatomic, strong) NSBundle *bundle;
-@property (nonatomic, strong) NSPersistentStoreCoordinator *coord;
-@property (nonatomic, strong) NSManagedObjectContext *ctx;
-@property (nonatomic, strong) NSManagedObjectModel *model;
-@property (nonatomic, strong) NSPersistentStore *store;
+@interface NUSurveyorTests : NUDatabaseTest
@end
View
36 NUSurveyorTests/NUSurveyorTests.m
@@ -13,42 +13,6 @@
#import "SBJson.h"
@implementation NUSurveyorTests
-@synthesize bundle = _bundle, coord = _coord, ctx = _ctx, model = _model, store = _store;
-- (void)setUp
-{
- [super setUp];
-
- // Set-up code here.
- self.bundle = [NSBundle bundleWithIdentifier:@"NUBIC.NUSurveyorTests"];
- self.model = [[NSManagedObjectModel alloc] initWithContentsOfURL:[self.bundle URLForResource:@"NUSurveyor" withExtension:@"mom"]];
- self.coord = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel: self.model];
- self.store = [self.coord addPersistentStoreWithType: NSInMemoryStoreType
- configuration: nil
- URL: nil
- options: nil
- error: NULL];
- self.ctx = [[NSManagedObjectContext alloc] init];
- [self.ctx setPersistentStoreCoordinator: self.coord];
-}
-
-- (void)tearDown
-{
- // Tear-down code here.
- self.ctx = nil;
- NSError *error = nil;
- STAssertTrue([self.coord removePersistentStore: self.store error: &error],
- @"couldn't remove persistent store: %@", error);
- self.store = nil;
- self.coord = nil;
- self.model = nil;
- self.bundle = nil;
-
- [super tearDown];
-}
-- (void)testThatEnvironmentWorks
-{
- STAssertNotNil(self.store, @"no persistent store");
-}
- (void)testUUID{
NSString *str = [UUID generateUuidString];
Please sign in to comment.
Something went wrong with that request. Please try again.