+- (void)tearDown;
+{
+ [super tearDown];
+
+ for (VALValet *additionalValet in self.additionalValets) {
+ [additionalValet removeAllObjects];
+ }
+}
+
tearDown()はCode Completeだかで見た気がする。 setupしたリソースを最終的に解放する時に呼ばれていたと思う。
Tear down - refers to the process of freeing resources after they're no longer required.
...
Tear down -> means destroy objects! It's fundamentally related to Unit Testing frameworks... they have a tearDown() method into which is possible to release/destroy object used for the test