diff options
Diffstat (limited to 'UnitTests/SPDatabaseRenameTest.m')
-rw-r--r-- | UnitTests/SPDatabaseRenameTest.m | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/UnitTests/SPDatabaseRenameTest.m b/UnitTests/SPDatabaseRenameTest.m index 51562db9..7e787caa 100644 --- a/UnitTests/SPDatabaseRenameTest.m +++ b/UnitTests/SPDatabaseRenameTest.m @@ -24,6 +24,7 @@ // More info at <http://code.google.com/p/sequel-pro/> #import <OCMock/OCMock.h> + #import "SPDatabaseRenameTest.h" #import "SPDatabaseRename.h" #import "SPTableCopy.h" @@ -32,31 +33,38 @@ #import "SPStringAdditions.h" #import "SPLogger.h" - @implementation SPDatabaseRenameTest -- (SPDatabaseRename *) getDatabaseRenameFixture { +- (SPDatabaseRename *) getDatabaseRenameFixture +{ SPDatabaseRename *dbRename = [[SPDatabaseRename alloc] init]; + return [dbRename autorelease]; } -- (SPTableCopy *) getTableCopyFixture { +- (SPTableCopy *)getTableCopyFixture +{ SPTableCopy *tableCopy = [[SPTableCopy alloc] init]; + return [tableCopy autorelease]; } -- (id) getMockConnection { +- (id)getMockConnection +{ id mockConnection = [OCMockObject niceMockForClass:[MCPConnection class]]; - return mockConnection; + + eturn mockConnection; } -- (id) getMockDBInfo { +- (id)getMockDBInfo +{ id mockDBInfo = [OCMockObject niceMockForClass:[SPDatabaseInfo class]]; + return mockDBInfo; } -- (void) testRenameDatabase { - +- (void)testRenameDatabase +{ SPDatabaseRename *dbRename = [self getDatabaseRenameFixture]; id mockConnection = [self getMockConnection]; @@ -84,7 +92,8 @@ [target release]; } -- (void) testCreateDatabase { +- (void)testCreateDatabase +{ SPDatabaseRename *dbRename = [self getDatabaseRenameFixture]; } |