forked from appsquickly/typhoon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test to try to reproduce appsquickly#77. Not luck for the moment,…
… hard to reproduce. Valid test anyway
- Loading branch information
Cesar Estebanez
committed
Sep 12, 2013
1 parent
e39487c
commit f83daa9
Showing
13 changed files
with
284 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// CROPrototypeA.h | ||
// Tests | ||
// | ||
// Created by Cesar Estebanez Tascon on 11/09/13. | ||
// | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@class CROPrototypeB; | ||
|
||
@interface CROPrototypeA : NSObject | ||
|
||
@property (nonatomic, strong, readonly) CROPrototypeB *prototypeB; | ||
|
||
- (id)initWithCROPrototypeB:(CROPrototypeB *)prototypeB; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// CROPrototypeA.m | ||
// Tests | ||
// | ||
// Created by Cesar Estebanez Tascon on 11/09/13. | ||
// | ||
// | ||
|
||
#import "CROPrototypeA.h" | ||
|
||
@implementation CROPrototypeA | ||
|
||
- (id)initWithCROPrototypeB:(CROPrototypeB *)prototypeB | ||
{ | ||
self = [super init]; | ||
if (self) { | ||
_prototypeB = prototypeB; | ||
} | ||
return self; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// CROPrototypeB.h | ||
// Tests | ||
// | ||
// Created by Cesar Estebanez Tascon on 11/09/13. | ||
// | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@class CROSingletonA; | ||
|
||
@interface CROPrototypeB : NSObject | ||
|
||
@property (nonatomic, strong, readonly) CROSingletonA *singletonA; | ||
|
||
- (id)initWithCROSingletonA:(CROSingletonA *)singletonA; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// CROPrototypeB.m | ||
// Tests | ||
// | ||
// Created by Cesar Estebanez Tascon on 11/09/13. | ||
// | ||
// | ||
|
||
#import "CROPrototypeB.h" | ||
|
||
@implementation CROPrototypeB | ||
|
||
- (id)initWithCROSingletonA:(CROSingletonA *)singletonA | ||
{ | ||
self = [super init]; | ||
if (self) { | ||
_singletonA = singletonA; | ||
} | ||
return self; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// SingletonA.h | ||
// Tests | ||
// | ||
// Created by Cesar Estebanez Tascon on 11/09/13. | ||
// | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@class CROPrototypeA; | ||
@class CROPrototypeB; | ||
|
||
@interface CROSingletonA : NSObject | ||
|
||
// property injection here to break circular CROSingletonA -> CROPrototypeB -> CROSingletonA | ||
@property (nonatomic, strong) CROPrototypeA *prototypeA; | ||
@property (nonatomic, strong) CROPrototypeB *prototypeB; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// SingletonA.m | ||
// Tests | ||
// | ||
// Created by Cesar Estebanez Tascon on 11/09/13. | ||
// | ||
// | ||
|
||
#import "CROSingletonA.h" | ||
|
||
@implementation CROSingletonA | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// CROSingletonB.h | ||
// Tests | ||
// | ||
// Created by Cesar Estebanez Tascon on 11/09/13. | ||
// | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@class CROPrototypeB; | ||
|
||
@interface CROSingletonB : NSObject | ||
|
||
@property (nonatomic, strong, readonly) CROPrototypeB *prototypeB; | ||
|
||
- (id)initWithPrototypeB:(CROPrototypeB *)prototypeB; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// CROSingletonB.m | ||
// Tests | ||
// | ||
// Created by Cesar Estebanez Tascon on 11/09/13. | ||
// | ||
// | ||
|
||
#import "CROSingletonB.h" | ||
|
||
@implementation CROSingletonB | ||
|
||
- (id)initWithPrototypeB:(CROPrototypeB *)prototypeB | ||
{ | ||
self = [super init]; | ||
if (self) { | ||
_prototypeB = prototypeB; | ||
} | ||
return self; | ||
} | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.