[sword-svn] r2535 - in trunk/bindings/objc: src test

mdbergmann at crosswire.org mdbergmann at crosswire.org
Tue Aug 3 02:17:05 MST 2010


Author: mdbergmann
Date: 2010-08-03 02:17:05 -0700 (Tue, 03 Aug 2010)
New Revision: 2535

Removed:
   trunk/bindings/objc/src/SwordModCategory.h
   trunk/bindings/objc/src/SwordModCategory.m
   trunk/bindings/objc/test/SetClassTest.h
   trunk/bindings/objc/test/SetClassTest.m
   trunk/bindings/objc/test/Test1.h
   trunk/bindings/objc/test/Test1.m
   trunk/bindings/objc/test/TestLocalTest.h
   trunk/bindings/objc/test/TestLocalTest.m
Log:
removed some test files which were not needed any longer.

Deleted: trunk/bindings/objc/src/SwordModCategory.h
===================================================================
--- trunk/bindings/objc/src/SwordModCategory.h	2010-08-03 09:14:49 UTC (rev 2534)
+++ trunk/bindings/objc/src/SwordModCategory.h	2010-08-03 09:17:05 UTC (rev 2535)
@@ -1,22 +0,0 @@
-//
-//  SwordModCategory.h
-//  MacSword2
-//
-//  Created by Manfred Bergmann on 23.10.08.
-//  Copyright 2008 __MyCompanyName__. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "SwordModule.h"
-
- at interface SwordModCategory : NSObject {
-    ModuleType type;
-}
-
- at property (readwrite) ModuleType type;
-
-+ (NSArray *)moduleCategories;
-- (id)initWithType:(ModuleType)aType;
-- (NSString *)name;
-
- at end

Deleted: trunk/bindings/objc/src/SwordModCategory.m
===================================================================
--- trunk/bindings/objc/src/SwordModCategory.m	2010-08-03 09:14:49 UTC (rev 2534)
+++ trunk/bindings/objc/src/SwordModCategory.m	2010-08-03 09:17:05 UTC (rev 2535)
@@ -1,73 +0,0 @@
-//
-//  SwordModCategory.m
-//  MacSword2
-//
-//  Created by Manfred Bergmann on 23.10.08.
-//  Copyright 2008 __MyCompanyName__. All rights reserved.
-//
-
-#import "SwordModCategory.h"
-#import "SwordManager.h"
-
-
- at implementation SwordModCategory
-
- at synthesize type;
-
-+ (NSArray *)moduleCategories {
-    static NSArray *cats;
-    if(cats == nil) {
-        cats = [NSArray arrayWithObjects:
-                [[SwordModCategory alloc] initWithType:bible], 
-                [[SwordModCategory alloc] initWithType:commentary],
-                [[SwordModCategory alloc] initWithType:dictionary],
-                [[SwordModCategory alloc] initWithType:genbook], nil];
-    }
-    
-    return cats;
-}
-
-- (id)initWithType:(ModuleType)aType {
-    self = [super init];
-    if(self) {
-        [self setType:aType];
-    }
-    
-    return self;
-}
-
-- (void)finalize {
-    [super finalize];
-}
-
-- (void)dealloc {
-    [super dealloc];
-}
-
-- (NSString *)name {
-    NSString *ret = @"";
-    
-    switch(type) {
-        case bible:
-            ret = SWMOD_CATEGORY_BIBLES;
-            break;
-        case commentary:
-            ret = SWMOD_CATEGORY_COMMENTARIES;
-            break;
-        case devotional:
-        case dictionary:
-            ret = SWMOD_CATEGORY_DICTIONARIES;
-            break;
-        case genbook:
-            ret = SWMOD_CATEGORY_GENBOOKS;
-            break;
-    }
-    
-    return ret;    
-}
-
-- (NSString *)description {    
-    return NSLocalizedString([self name], @"");
-}
-
- at end

Deleted: trunk/bindings/objc/test/SetClassTest.h
===================================================================
--- trunk/bindings/objc/test/SetClassTest.h	2010-08-03 09:14:49 UTC (rev 2534)
+++ trunk/bindings/objc/test/SetClassTest.h	2010-08-03 09:17:05 UTC (rev 2535)
@@ -1,22 +0,0 @@
-//
-//  SetClassTest.h
-//  ObjCSword
-//
-//  Created by Manfred Bergmann on 12.06.10.
-//  Copyright 2010 Software by MABE. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-
-
- at protocol TestLocal
-- (void)sayHello;
- at end
-
- at interface Test : NSObject <TestLocal> {
-}
-
-- (void)sayHello;
-- (void)setClass:(Class<TestLocal>)classImpl;
-
- at end

Deleted: trunk/bindings/objc/test/SetClassTest.m
===================================================================
--- trunk/bindings/objc/test/SetClassTest.m	2010-08-03 09:14:49 UTC (rev 2534)
+++ trunk/bindings/objc/test/SetClassTest.m	2010-08-03 09:17:05 UTC (rev 2535)
@@ -1,21 +0,0 @@
-//
-//  TestLocal.m
-//  ObjCSword
-//
-//  Created by Manfred Bergmann on 12.06.10.
-//  Copyright 2010 Software by MABE. All rights reserved.
-//
-
-#import "SetClassTest.h"
-
- at implementation Test
-
-- (void)sayHello {
-    NSLog(@"TestLocal");
-}
-
-- (void)setClass:(Class<TestLocal>)classImpl {
-    object_setClass(self, classImpl);
-}
-
- at end

Deleted: trunk/bindings/objc/test/Test1.h
===================================================================
--- trunk/bindings/objc/test/Test1.h	2010-08-03 09:14:49 UTC (rev 2534)
+++ trunk/bindings/objc/test/Test1.h	2010-08-03 09:17:05 UTC (rev 2535)
@@ -1,18 +0,0 @@
-//
-//  Test1.h
-//  ObjCSword
-//
-//  Created by Manfred Bergmann on 12.06.10.
-//  Copyright 2010 Software by MABE. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-#import <SetClassTest.h>
-
- at interface Test1 : NSObject <TestLocal> {
-
-}
-
-- (void)sayHello;
-
- at end

Deleted: trunk/bindings/objc/test/Test1.m
===================================================================
--- trunk/bindings/objc/test/Test1.m	2010-08-03 09:14:49 UTC (rev 2534)
+++ trunk/bindings/objc/test/Test1.m	2010-08-03 09:17:05 UTC (rev 2535)
@@ -1,18 +0,0 @@
-//
-//  Test1.m
-//  ObjCSword
-//
-//  Created by Manfred Bergmann on 12.06.10.
-//  Copyright 2010 Software by MABE. All rights reserved.
-//
-
-#import "Test1.h"
-
-
- at implementation Test1
-
-- (void)sayHello {
-    NSLog(@"Hello Test1");
-}
-
- at end

Deleted: trunk/bindings/objc/test/TestLocalTest.h
===================================================================
--- trunk/bindings/objc/test/TestLocalTest.h	2010-08-03 09:14:49 UTC (rev 2534)
+++ trunk/bindings/objc/test/TestLocalTest.h	2010-08-03 09:17:05 UTC (rev 2535)
@@ -1,20 +0,0 @@
-//
-//  TestLocalTest.h
-//  ObjCSword
-//
-//  Created by Manfred Bergmann on 12.06.10.
-//  Copyright 2010 Software by MABE. All rights reserved.
-//
-
-#import <SenTestingKit/SenTestingKit.h>
-#import <SetClassTest.h>
-#import <Test1.h>
-
- at interface TestLocalTest : SenTestCase {
-
-}
-
-- (void)testCreateTest;
-- (void)testOtherClass;
-
- at end

Deleted: trunk/bindings/objc/test/TestLocalTest.m
===================================================================
--- trunk/bindings/objc/test/TestLocalTest.m	2010-08-03 09:14:49 UTC (rev 2534)
+++ trunk/bindings/objc/test/TestLocalTest.m	2010-08-03 09:17:05 UTC (rev 2535)
@@ -1,27 +0,0 @@
-//
-//  TestLocalTest.m
-//  ObjCSword
-//
-//  Created by Manfred Bergmann on 12.06.10.
-//  Copyright 2010 Software by MABE. All rights reserved.
-//
-
-#import "TestLocalTest.h"
-
-
- at implementation TestLocalTest
-
-- (void)testCreateTest {
-    Test *testLocal = [[Test alloc] init];
-    [testLocal sayHello];
-}
-
-- (void)testOtherClass {
-    Test *testLocal = [[Test alloc] init];
-    [testLocal sayHello];
-
-    [testLocal setClass:[Test1 class]];
-    [testLocal sayHello];
-}
-
- at end




More information about the sword-cvs mailing list