diff options
author | stuconnolly <stuart02@gmail.com> | 2010-10-17 14:03:37 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-10-17 14:03:37 +0000 |
commit | 48e6751fa18dd030815917c2f613fa6604e05cb8 (patch) | |
tree | a19a5b263c703fa4165bac8d9fe7dd5f8674748f /UnitTests/SPDatabaseRenameTest.m | |
parent | c11cf1b6014c84523a7c876288b396ed85e4b0b2 (diff) | |
download | sequelpro-48e6751fa18dd030815917c2f613fa6604e05cb8.tar.gz sequelpro-48e6751fa18dd030815917c2f613fa6604e05cb8.tar.bz2 sequelpro-48e6751fa18dd030815917c2f613fa6604e05cb8.zip |
Tidy up the project's logical structure in Xcode.
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]; } |