Skip to content

Commit

Permalink
Close #13
Browse files Browse the repository at this point in the history
  • Loading branch information
yaravind committed May 26, 2016
1 parent 015c5a1 commit a4ae410
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void start(Map<String, String> props) {

@Override
public Class<? extends Task> taskClass() {
return null;
return JenkinsSourceTask.class;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ class JenkinsSourceConnectorTest extends Specification {
def cleanup() {
if (connector != null) connector.stop()
}

//API Contracts

def "taskClass()"() {
when:
Class taskClass = connector.taskClass()

then:
taskClass == JenkinsSourceTask.class
}

//Error scenarios

def "Config - Wrong jenkins url should throw exception"() {
Expand Down

0 comments on commit a4ae410

Please sign in to comment.