Test: finally put the init of the CPApplication in the instance method setUp. See previous commit #6fe9dae3d62af995f2481bfebdd706aeb0b21365

This commit is contained in:
Alexandre Wilhelm
2015-07-07 15:04:29 -07:00
parent 6fe9dae3d6
commit 923d32ee6d
45 changed files with 47 additions and 143 deletions
+3 -6
View File
@@ -18,12 +18,6 @@
CPArray depValues @accessors;
}
+ (void)setUp
{
// This will init the global var CPApp which are used internally in the AppKit
[[CPApplication alloc] init];
}
- (CPArray)makeTestArray
{
return [[Employee employeeWithName:@"Francisco" department:[Department departmentWithName:@"Cappuccino"]],
@@ -62,6 +56,9 @@
- (void)setUp
{
// This will init the global var CPApp which are used internally in the AppKit
[[CPApplication alloc] init];
_contentArray = [self makeTestArray];
[self initControllerWithSimpleArray]
}