Skip to content

Commit

Permalink
Merge pull request #10 from onuba/master
Browse files Browse the repository at this point in the history
  • Loading branch information
onuba committed Dec 6, 2015
2 parents 71238ff + 4f82c37 commit 6f76b06
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@
/.classpath
/.project
/.DS_Store
/work/
Expand Up @@ -14,8 +14,8 @@ public class SiteMonitorRecorderTest extends TestCase {

public void testGetSitesShouldGiveExpectedSites() {
List<Site> sites = new ArrayList<Site>();
sites.add(new Site("http://hudson-ci.org"));
sites.add(new Site("http://hudson.dev.java.net"));
sites.add(Site.builder("http://hudson-ci.org").build());
sites.add(Site.builder("http://hudson.dev.java.net").build());
builder = new SiteMonitorRecorder(sites);
assertEquals(sites, builder.getSites());
}
Expand Down
Expand Up @@ -16,9 +16,9 @@ public class SiteMonitorRootActionTest extends TestCase {

public void setUp() {
List<Result> results = new ArrayList<Result>();
Result result1 = new Result(new Site("http://hudson-ci.org"),
Result result1 = new Result(Site.builder("http://hudson-ci.org").build(),
HttpURLConnection.HTTP_OK, Status.UP, "some note 1");
Result result2 = new Result(new Site("http://blah"),
Result result2 = new Result(Site.builder("http://blah").build(),
HttpURLConnection.HTTP_BAD_GATEWAY, Status.ERROR, "some note 2");
results.add(result1);
results.add(result2);
Expand Down
Expand Up @@ -9,7 +9,7 @@ public class ResultTest extends TestCase {
private Result result;

public void setUp() {
result = new Result(new Site("http://hudson-ci.org"),
result = new Result(Site.builder("http://hudson-ci.org").build(),
HttpURLConnection.HTTP_OK, Status.DOWN, "some note");
}

Expand Down
Expand Up @@ -8,7 +8,7 @@ public class SiteTest extends TestCase {
private Site site;

public void testGetUrlShouldGiveExpectedUrlValue() {
site = new Site("http://hudson-ci.org");
site = Site.builder("http://hudson-ci.org").build();
assertEquals("http://hudson-ci.org", site.getUrl());
}
}

0 comments on commit 6f76b06

Please sign in to comment.