test/unit/util/ResourceTest.java
changeset 12 bb6990c0dd1a
parent 1 6fceb66e1ad7
     1.1 --- a/test/unit/util/ResourceTest.java	Mon Aug 17 11:00:51 2009 +0200
     1.2 +++ b/test/unit/util/ResourceTest.java	Thu Aug 20 14:31:19 2009 +0200
     1.3 @@ -41,7 +41,7 @@
     1.4      assertNull(url);
     1.5      
     1.6      // This file should exist
     1.7 -    url = Resource.getAsURL("org/sonews/daemon/Main.class");
     1.8 +    url = Resource.getAsURL("org/sonews/Main.class");
     1.9      assertNotNull(url);
    1.10    }
    1.11    
    1.12 @@ -55,7 +55,7 @@
    1.13      stream = Resource.getAsStream("this is bullshit");
    1.14      assertNull(stream);
    1.15      
    1.16 -    stream = Resource.getAsStream("org/sonews/daemon/Main.class");
    1.17 +    stream = Resource.getAsStream("org/sonews/Main.class");
    1.18      assertNotNull(stream);
    1.19    }
    1.20    
    1.21 @@ -69,10 +69,10 @@
    1.22      str = Resource.getAsString("this is bullshit", true);
    1.23      assertNull(str);
    1.24      
    1.25 -    str = Resource.getAsString("org/sonews/daemon/Main.class", true);
    1.26 +    str = Resource.getAsString("org/sonews/Main.class", true);
    1.27      assertNotNull(str);
    1.28      
    1.29 -    str = Resource.getAsString("org/sonews/daemon/Main.class", false);
    1.30 +    str = Resource.getAsString("org/sonews/Main.class", false);
    1.31      assertNotNull(str);
    1.32      assertEquals(str.indexOf("\n"), -1);
    1.33    }