Introduce TestConstants
authortzilling
Wed, 01 Jun 2011 13:00:11 +0200
changeset 3962bec3a4d6ef6e
parent 3961 05b3a191bf92
child 3963 a000c41cbcbc
Introduce TestConstants
src/java-tests/isac/TestConstants.java
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/java-tests/isac/TestConstants.java	Wed Jun 01 13:00:11 2011 +0200
     1.3 @@ -0,0 +1,28 @@
     1.4 +/*
     1.5 + * To change this template, choose Tools | Templates
     1.6 + * and open the template in the editor.
     1.7 + */
     1.8 +package isac;
     1.9 +
    1.10 +import java.net.URL;
    1.11 +
    1.12 +/**
    1.13 + *
    1.14 + * @author tomzi
    1.15 + */
    1.16 +public class TestConstants {
    1.17 +    
    1.18 +    public static final class MINIBROWSER {
    1.19 +        public static final URL TEST_HTML = getResource("/isac/gui/browser/minibrowser/test.html");
    1.20 +        public static final URL TEST2_HTML = getResource("/isac/gui/browser/minibrowser/test2.html");
    1.21 +    }
    1.22 +    
    1.23 +    private static URL getResource(String resource) {
    1.24 +        return TestConstants.class.getResource(resource);
    1.25 +    }
    1.26 +    
    1.27 +    public static void main(String[] args) {
    1.28 +
    1.29 +        System.out.println(MINIBROWSER.TEST_HTML);
    1.30 +    }
    1.31 +}