OSDN Git Service

改行コード指定
[jindolf/JinCore.git] / src / test / java / jp / sourceforge / jindolf / corelib / XmlResourceTest.java
index 17b1028..93b47f6 100644 (file)
@@ -1,97 +1,97 @@
-/*\r
- * License : The MIT License\r
- * Copyright(c) 2009 olyutorskii\r
- */\r
-\r
-package jp.sourceforge.jindolf.corelib;\r
-\r
-import java.io.IOException;\r
-import java.net.URI;\r
-import java.util.Map;\r
-import org.junit.After;\r
-import org.junit.AfterClass;\r
-import org.junit.Before;\r
-import org.junit.BeforeClass;\r
-import org.junit.Test;\r
-import static org.junit.Assert.*;\r
-\r
-/**\r
- */\r
-public class XmlResourceTest {\r
-\r
-    public XmlResourceTest() {\r
-    }\r
-\r
-    @BeforeClass\r
-    public static void setUpClass() throws Exception{\r
-    }\r
-\r
-    @AfterClass\r
-    public static void tearDownClass() throws Exception{\r
-    }\r
-\r
-    @Before\r
-    public void setUp() {\r
-    }\r
-\r
-    @After\r
-    public void tearDown() {\r
-    }\r
-\r
-    /**\r
-     * Test of static field.\r
-     */\r
-    @Test\r
-    public void testStaticField(){\r
-        System.out.println("staticfields");\r
-        Map<URI, URI> map = XmlResource.RESOLVE_MAP;\r
-        assertNotNull(map);\r
-\r
-        assertEquals(XmlResource.I_URI_EXTXML, map.get(XmlResource.O_URI_EXTXML));\r
-        assertEquals(XmlResource.I_URI_CORETYPE, map.get(XmlResource.O_URI_CORETYPE));\r
-        assertEquals(XmlResource.I_URI_COREXML, map.get(XmlResource.O_URI_COREXML));\r
-\r
-        return;\r
-    }\r
-\r
-    /**\r
-     * Test of resource.\r
-     */\r
-    @Test\r
-    public void testResource(){\r
-        System.out.println("resource");\r
-        Map<URI, URI> map = XmlResource.RESOLVE_MAP;\r
-\r
-        for(Map.Entry<URI,URI> entry : map.entrySet()){\r
-            URI in = entry.getValue();\r
-            try{\r
-                in.toURL().openStream();\r
-            }catch(IOException e){\r
-                fail();\r
-            }\r
-        }\r
-\r
-        return;\r
-    }\r
-\r
-    /**\r
-     * Test of net resource.\r
-     */\r
-//  @Test\r
-    public void nettestNetResource(){\r
-        System.out.println("netresource");\r
-        Map<URI, URI> map = XmlResource.RESOLVE_MAP;\r
-\r
-        for(Map.Entry<URI,URI> entry : map.entrySet()){\r
-            URI out = entry.getKey();\r
-            try{\r
-                out.toURL().openStream();\r
-            }catch(IOException e){\r
-                fail();\r
-            }\r
-        }\r
-\r
-        return;\r
-    }\r
-\r
-}\r
+/*
+ * License : The MIT License
+ * Copyright(c) 2009 olyutorskii
+ */
+
+package jp.sourceforge.jindolf.corelib;
+
+import java.io.IOException;
+import java.net.URI;
+import java.util.Map;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+/**
+ */
+public class XmlResourceTest {
+
+    public XmlResourceTest() {
+    }
+
+    @BeforeClass
+    public static void setUpClass() throws Exception{
+    }
+
+    @AfterClass
+    public static void tearDownClass() throws Exception{
+    }
+
+    @Before
+    public void setUp() {
+    }
+
+    @After
+    public void tearDown() {
+    }
+
+    /**
+     * Test of static field.
+     */
+    @Test
+    public void testStaticField(){
+        System.out.println("staticfields");
+        Map<URI, URI> map = XmlResource.RESOLVE_MAP;
+        assertNotNull(map);
+
+        assertEquals(XmlResource.I_URI_EXTXML, map.get(XmlResource.O_URI_EXTXML));
+        assertEquals(XmlResource.I_URI_CORETYPE, map.get(XmlResource.O_URI_CORETYPE));
+        assertEquals(XmlResource.I_URI_COREXML, map.get(XmlResource.O_URI_COREXML));
+
+        return;
+    }
+
+    /**
+     * Test of resource.
+     */
+    @Test
+    public void testResource(){
+        System.out.println("resource");
+        Map<URI, URI> map = XmlResource.RESOLVE_MAP;
+
+        for(Map.Entry<URI,URI> entry : map.entrySet()){
+            URI in = entry.getValue();
+            try{
+                in.toURL().openStream();
+            }catch(IOException e){
+                fail();
+            }
+        }
+
+        return;
+    }
+
+    /**
+     * Test of net resource.
+     */
+//  @Test
+    public void nettestNetResource(){
+        System.out.println("netresource");
+        Map<URI, URI> map = XmlResource.RESOLVE_MAP;
+
+        for(Map.Entry<URI,URI> entry : map.entrySet()){
+            URI out = entry.getKey();
+            try{
+                out.toURL().openStream();
+            }catch(IOException e){
+                fail();
+            }
+        }
+
+        return;
+    }
+
+}