package com.jsmadja.wall.hudsonclient.it;

import org.junit.Test;

import com.jsmadja.wall.hudsonclient.Hudson;
import com.jsmadja.wall.hudsonclient.HudsonBuildNotFoundException;
import com.jsmadja.wall.hudsonclient.HudsonProjectNotFoundException;

public class HudsonTest {

    private static final String FLUXX_HUDSON_URL = "http://fluxx.fr.cr:8080/hudson";
    private static final String AWIRED_HUDSON_URL = "http://ci.awired.net/jenkins";

    private Hudson hudsonFluxx = new Hudson(FLUXX_HUDSON_URL);
    private Hudson hudsonAwired = new Hudson(AWIRED_HUDSON_URL);

    @Test(expected = HudsonBuildNotFoundException.class)
    public void should_throw_an_exception_when_searching_an_inexistant_build() throws HudsonBuildNotFoundException {
        hudsonFluxx.findBuild("dev-radar", -1);
    }

    @Test
    public void should_find_not_built_project() throws HudsonProjectNotFoundException {
        hudsonAwired.findProject("ajsl");
    }

}

@@ -301,22 +301,16 @@
  String 
-FLUXX_
 HUDSON_U
@@ -326,96 +326,16 @@
 p://
-fluxx.fr.cr:8080/hudson%22;%0A    private static final String AWIRED_HUDSON_URL = %22http://ci
+ci.jwall
 .awi
@@ -345,16 +345,8 @@
 .net
-/jenkins
 %22;%0A%0A
@@ -370,21 +370,16 @@
 n hudson
-Fluxx
  = new H
@@ -388,79 +388,8 @@
 son(
-FLUXX_HUDSON_URL);%0A    private Hudson hudsonAwired = new Hudson(AWIRED_
 HUDS
@@ -590,13 +590,8 @@
 dson
-Fluxx
 .fin
@@ -738,14 +738,8 @@
 dson
-Awired
 .fin
@@ -752,12 +752,18 @@
 ct(%22
-ajsl
+neverbuild
 %22);%0A

change hudson target in tests