commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r651574 - in /commons/proper/cli/trunk: src/test/org/apache/commons/cli2/resource/ResourceHelperTest.java xdocs/changes.xml
Date Fri, 25 Apr 2008 11:12:34 GMT
Author: niallp
Date: Fri Apr 25 04:12:33 2008
New Revision: 651574

URL: http://svn.apache.org/viewvc?rev=651574&view=rev
Log:
CLI-153 set svn:eol-style to native - thanks to Benjamin Bentmann for the patch

Modified:
    commons/proper/cli/trunk/src/test/org/apache/commons/cli2/resource/ResourceHelperTest.java
  (contents, props changed)
    commons/proper/cli/trunk/xdocs/changes.xml   (props changed)

Modified: commons/proper/cli/trunk/src/test/org/apache/commons/cli2/resource/ResourceHelperTest.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/resource/ResourceHelperTest.java?rev=651574&r1=651573&r2=651574&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/test/org/apache/commons/cli2/resource/ResourceHelperTest.java
(original)
+++ commons/proper/cli/trunk/src/test/org/apache/commons/cli2/resource/ResourceHelperTest.java
Fri Apr 25 04:12:33 2008
@@ -1,84 +1,84 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.commons.cli2.resource;
-
-import java.util.Locale;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-import junit.framework.TestCase;
-
-/**
- * A utility class used to provide internationalisation support.
- *
- * @author John Keyes
- */
-public class ResourceHelperTest extends TestCase {
-    /** system property */
-    private static final String PROP_LOCALE = "org.apache.commons.cli2.resource.bundle";
-
-    private static ResourceHelper helper;
-
-    /** resource bundle */
-    private ResourceBundle bundle;
-
-    public void setUp() {
-    	System.setProperty(PROP_LOCALE, "org.apache.commons.cli2.resource.TestBundle");
-    	helper = ResourceHelper.getResourceHelper();
-    }
-    
-    public void tearDown() {
-    	System.setProperty(PROP_LOCALE, "org.apache.commons.cli2.resource.CLIMessageBundle_en_US.properties");
-    }
-    
-    /**
-     * Create a new ResourceHelper for the specified class.
-     *
-     * @param clazz the Class that requires some resources
-     */
-    public ResourceHelperTest() {
-    	super("ResourceHelperTest");
-    }
-    
-    public void testOverridden() {
-    	assertEquals("wrong message", "The class name \"ResourceHelper\" is invalid.", helper.getMessage("ClassValidator.bad.classname",
"ResourceHelper"));
-    }
-    
-    public void testNewMessage1Param() {
-    	assertEquals("wrong message", "Some might say we will find a brighter day.", helper.getMessage("test.message"));
-    }
-
-    public void testNewMessage2Params() {
-    	assertEquals("wrong message", "Some might say we will find a brighter day.", helper.getMessage("test.message",
"Some"));
-    }
-
-    public void testNewMessage3Params() {
-    	assertEquals("wrong message", "Some might say we will find a brighter day.", helper.getMessage("test.message",
"Some", "might"));
-    }
-
-    public void testNewMessage4Params() {
-    	assertEquals("wrong message", "Some might say we will find a brighter day.", helper.getMessage("test.message",
"Some", "might", "say"));
-    }
-
-    public void testDefaultBundle() {
-    	System.setProperty(PROP_LOCALE, "madeupname.properties");
-    	helper = ResourceHelper.getResourceHelper();
-    	assertEquals("wrong message", "The class name \"ResourceHelper\" is invalid.", helper.getMessage("ClassValidator.bad.classname",
"ResourceHelper"));
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.commons.cli2.resource;
+
+import java.util.Locale;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+import junit.framework.TestCase;
+
+/**
+ * A utility class used to provide internationalisation support.
+ *
+ * @author John Keyes
+ */
+public class ResourceHelperTest extends TestCase {
+    /** system property */
+    private static final String PROP_LOCALE = "org.apache.commons.cli2.resource.bundle";
+
+    private static ResourceHelper helper;
+
+    /** resource bundle */
+    private ResourceBundle bundle;
+
+    public void setUp() {
+    	System.setProperty(PROP_LOCALE, "org.apache.commons.cli2.resource.TestBundle");
+    	helper = ResourceHelper.getResourceHelper();
+    }
+    
+    public void tearDown() {
+    	System.setProperty(PROP_LOCALE, "org.apache.commons.cli2.resource.CLIMessageBundle_en_US.properties");
+    }
+    
+    /**
+     * Create a new ResourceHelper for the specified class.
+     *
+     * @param clazz the Class that requires some resources
+     */
+    public ResourceHelperTest() {
+    	super("ResourceHelperTest");
+    }
+    
+    public void testOverridden() {
+    	assertEquals("wrong message", "The class name \"ResourceHelper\" is invalid.", helper.getMessage("ClassValidator.bad.classname",
"ResourceHelper"));
+    }
+    
+    public void testNewMessage1Param() {
+    	assertEquals("wrong message", "Some might say we will find a brighter day.", helper.getMessage("test.message"));
+    }
+
+    public void testNewMessage2Params() {
+    	assertEquals("wrong message", "Some might say we will find a brighter day.", helper.getMessage("test.message",
"Some"));
+    }
+
+    public void testNewMessage3Params() {
+    	assertEquals("wrong message", "Some might say we will find a brighter day.", helper.getMessage("test.message",
"Some", "might"));
+    }
+
+    public void testNewMessage4Params() {
+    	assertEquals("wrong message", "Some might say we will find a brighter day.", helper.getMessage("test.message",
"Some", "might", "say"));
+    }
+
+    public void testDefaultBundle() {
+    	System.setProperty(PROP_LOCALE, "madeupname.properties");
+    	helper = ResourceHelper.getResourceHelper();
+    	assertEquals("wrong message", "The class name \"ResourceHelper\" is invalid.", helper.getMessage("ClassValidator.bad.classname",
"ResourceHelper"));
+    }
+}

Propchange: commons/proper/cli/trunk/src/test/org/apache/commons/cli2/resource/ResourceHelperTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/proper/cli/trunk/xdocs/changes.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message