Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0c68a2f624
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (15 sloc) 0.739 kb
#import "CCMBuildStatusTransformerTest.h"
#import "CCMBuildStatusTransformer.h"
#import <OCMock/OCMock.h>
@implementation CCMBuildStatusTransformerTest
- (void)testResolvesImage
CCMBuildStatusTransformer *transformer = [[[CCMBuildStatusTransformer alloc] init] autorelease];
NSImage *testImage = [[[NSImage alloc] init] autorelease];
OCMockObject *imageFactoryMock = [OCMockObject mockForClass:[CCMImageFactory class]];
[[[imageFactoryMock expect] andReturn:testImage] imageForActivity:nil lastBuildStatus:@"test"];
[transformer setImageFactory:(id)imageFactoryMock];
NSImage *returnedImage = [transformer transformedValue:@"test"];
STAssertEquals(testImage, returnedImage, @"Should have returned correct image.");
Jump to Line
Something went wrong with that request. Please try again.