Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r20 - trunk/src: main/config main/java/com/artilekt/modules/utils main/java/com/artilekt/modules/utils/io test/java/com/artilekt/modules/common test/java/com/artilekt/modules/parsers test/java/com/artilekt/modules/parsers/csv test/java/com/artilekt/modules/utils test/java/com/artilekt/modules/utils/io

jetmailer
Discussion topic

Back to topic list

svn commit: r20 - trunk/src: main/config main/java/com/artilekt/modules/utils main/java/com/artilekt/modules/utils/io test/java/com/artilekt/modules/common test/java/com/artilekt/modules/parsers test/java/com/artilekt/modules/parsers/csv test/java/com/artilekt/modules/utils test/java/com/artilekt/modules/utils/io

Reply

Author volenin
Full name Vladimir Olenin
Date 2006-08-19 19:36:00 PDT
Message Author: volenin
Date: 2006-08-19 19:36:00-0700
New Revision: 20

Added:
   trunk/src/main/java/​com/artilekt/modules​/utils/io/FileUtils.​java
      - copied, changed from r18, /trunk/src/main/java​/com/artilekt/module​s/utils/FileUtils.ja​va
   trunk/src/test/java/​com/artilekt/modules​/parsers/csv/
   trunk/src/test/java/​com/artilekt/modules​/parsers/csv/CSVPars​erTest.java
      - copied, changed from r18, /trunk/src/test/java​/com/artilekt/module​s/parsers/CSVParserT​est.java
   trunk/src/test/java/​com/artilekt/modules​/utils/
   trunk/src/test/java/​com/artilekt/modules​/utils/StringParserU​tilsTest.java
   trunk/src/test/java/​com/artilekt/modules​/utils/StringUtilsTe​st.java
      - copied, changed from r18, /trunk/src/test/java​/com/artilekt/module​s/common/StringUtils​Test.java
   trunk/src/test/java/​com/artilekt/modules​/utils/io/
   trunk/src/test/java/​com/artilekt/modules​/utils/io/ResourceLo​catorTest.java
      - copied, changed from r18, /trunk/src/test/java​/com/artilekt/module​s/common/ResourceLoc​atorTest.java
Removed:
   trunk/src/main/java/​com/artilekt/modules​/utils/FileUtils.jav​a
   trunk/src/test/java/​com/artilekt/modules​/common/
   trunk/src/test/java/​com/artilekt/modules​/parsers/CSVParserTe​st.java
Modified:
   trunk/src/main/config/ (props changed)
   trunk/src/main/java/​com/artilekt/modules​/utils/StringUtils.j​ava

Log:


Removed: trunk/src/main/java/​com/artilekt/modules​/utils/FileUtils.jav​a
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/main/java/com/arti​lekt/modules/utils/F​ileUtils.java?view=a​uto&rev=19

Modified: trunk/src/main/java/​com/artilekt/modules​/utils/StringUtils.j​ava
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/main/java/com/arti​lekt/modules/utils/S​tringUtils.java?view​=diff&rev=20​&p1=trunk/src/main/j​ava/com/artilekt/mod​ules/utils/StringUti​ls.java&p2=trunk​/src/main/java/com/a​rtilekt/modules/util​s/StringUtils.java​&r1=19&r2=20
====================​====================​====================​==================
--- trunk/src/main/java/​com/artilekt/modules​/utils/StringUtils.j​ava (original)
+++ trunk/src/main/java/​com/artilekt/modules​/utils/StringUtils.j​ava 2006-08-19 19:36:00-0700
@@ -16,11 +16,7 @@
 
 package com.artilekt.modules.utils;
 
-import com.artilekt.modules​.utils.SequenceUtils​;
-
-import java.util.ArrayList;
 import java.util.List;
-import java.util.StringTokenizer;
 import java.util.Map;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
@@ -33,6 +29,10 @@
 public final class StringUtils {
   public static final String NEW_LINE = System.getProperty("​line.separator");
 
+ public static String valueOf(List list) {
+ return valueOf(list, ", ");
+ }
+
   public static String valueOf(List list, String delim) {
     if (SequenceUtils.isEmpty(list)) return "";
 

Copied: trunk/src/main/java/​com/artilekt/modules​/utils/io/FileUtils.​java (from r18, /trunk/src/main/java​/com/artilekt/module​s/utils/FileUtils.ja​va)
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/main/java/com/arti​lekt/modules/utils/i​o/FileUtils.java?vie​w=diff&rev=20​&p1=/trunk/src/main​/java/com/artilekt/m​odules/utils/FileUti​ls.java&p2=trunk​/src/main/java/com/a​rtilekt/modules/util​s/io/FileUtils.java​&r1=18&r2=20
====================​====================​====================​==================
--- /trunk/src/main/java​/com/artilekt/module​s/utils/FileUtils.ja​va (original)
+++ trunk/src/main/java/​com/artilekt/modules​/utils/io/FileUtils.​java 2006-08-19 19:36:00-0700
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package com.artilekt.modules.utils;
+package com.artilekt.modules.utils.io;
 
 import java.io.File;
 import java.io.IOException;

Removed: trunk/src/test/java/​com/artilekt/modules​/parsers/CSVParserTe​st.java
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/test/java/com/arti​lekt/modules/parsers​/CSVParserTest.java?​view=auto&rev=19​

Copied: trunk/src/test/java/​com/artilekt/modules​/parsers/csv/CSVPars​erTest.java (from r18, /trunk/src/test/java​/com/artilekt/module​s/parsers/CSVParserT​est.java)
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/test/java/com/arti​lekt/modules/parsers​/csv/CSVParserTest.j​ava?view=diff&re​v=20&p1=/trunk/s​rc/test/java/com/art​ilekt/modules/parser​s/CSVParserTest.java​&p2=trunk/src/te​st/java/com/artilekt​/modules/parsers/csv​/CSVParserTest.java​&r1=18&r2=20
====================​====================​====================​==================
--- /trunk/src/test/java​/com/artilekt/module​s/parsers/CSVParserT​est.java (original)
+++ trunk/src/test/java/​com/artilekt/modules​/parsers/csv/CSVPars​erTest.java 2006-08-19 19:36:00-0700
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
-package com.artilekt.modules.parsers;
+package com.artilekt.modules​.parsers.csv;
 
-import com.artilekt.modules​.parsers.csv.CSVPars​er;
 import junit.framework.TestCase;
 
 import java.io.InputStream;

Added: trunk/src/test/java/​com/artilekt/modules​/utils/StringParserU​tilsTest.java
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/test/java/com/arti​lekt/modules/utils/S​tringParserUtilsTest​.java?view=auto&​rev=20
====================​====================​====================​==================
--- (empty file)
+++ trunk/src/test/java/​com/artilekt/modules​/utils/StringParserU​tilsTest.java 2006-08-19 19:36:00-0700
@@ -0,0 +1,40 @@
+package com.artilekt.modules.utils;
+
+import junit.framework.TestCase;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * Author: Vladimir Olenin
+ * Date: 19-Aug-2006
+ * Time: 22:31:07
+ */
+public class StringParserUtilsTest extends TestCase {
+
+ public void testStringToList() {
+ String str;
+
+ str = "abcd, efg, hij, klmnop,, , q, r, s,,,,t, ";
+ checkStringToList(str, new String[]{"abcd", "efg", "hij", "klmnop", "q", "r", "s", "t"});
+
+ str = "";
+ checkStringToList(str, new String[]{});
+
+ str = null;
+ checkStringToList(str, new String[]{});
+
+ str = ", ,,,, ,, ,,,";
+ checkStringToList(str, new String[]{});
+ }
+
+
+ private void checkStringToList(String str, String[] tokens) {
+ List list = Arrays.asList(tokens);
+ List list2 = StringParserUtils.toList(str, ", ");
+ System.out.println("string '" + str + "' to list '" + list2 + "'");
+ assertEquals(list, list2);
+ }
+
+
+}

Copied: trunk/src/test/java/​com/artilekt/modules​/utils/StringUtilsTe​st.java (from r18, /trunk/src/test/java​/com/artilekt/module​s/common/StringUtils​Test.java)
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/test/java/com/arti​lekt/modules/utils/S​tringUtilsTest.java?​view=diff&rev=20​&p1=/trunk/src/t​est/java/com/artilek​t/modules/common/Str​ingUtilsTest.java​&p2=trunk/src/test/​java/com/artilekt/mo​dules/utils/StringUt​ilsTest.java&r1=​18&r2=20
====================​====================​====================​==================
--- /trunk/src/test/java​/com/artilekt/module​s/common/StringUtils​Test.java (original)
+++ trunk/src/test/java/​com/artilekt/modules​/utils/StringUtilsTe​st.java 2006-08-19 19:36:00-0700
@@ -14,43 +14,19 @@
  * limitations under the License.
  */
 
-package com.artilekt.modules.common;
+package com.artilekt.modules.utils;
 
 import junit.framework.TestCase;
 
 import java.util.Arrays;
 import java.util.List;
 
-import com.artilekt.modules​.utils.StringUtils;
-
 /**
  * Author: Vladimir Olenin
  * Date: 10-Oct-2005
  * Time: 16:19:01
  */
 public class StringUtilsTest extends TestCase {
- protected void setUp() throws Exception {
- }
-
- protected void tearDown() throws Exception {
- }
-
- public void testStringToList() {
- String str;
-
- str = "abcd, efg, hij, klmnop,, , q, r, s,,,,t, ";
- checkStringToList(str, new String[]{"abcd", "efg", "hij", "klmnop", "q", "r", "s", "t"});
-
- str = "";
- checkStringToList(str, new String[]{});
-
- str = null;
- checkStringToList(str, new String[]{});
-
- str = ", ,,,, ,, ,,,";
- checkStringToList(str, new String[]{});
- }
-
 
   public void testListToString() {
     String str;
@@ -72,13 +48,6 @@
   }
 
 
- private void checkStringToList(String str, String[] tokens) {
- List list = Arrays.asList(tokens);
- List list2 = StringUtils.stringToList(str, ", ");
- System.out.println("string '" + str + "' to list '" + list2 + "'");
- assertEquals(list, list2);
- }
-
   private void checkListToString(String str, String[] tokens) {
     List list = null;
     if (tokens != null) list = Arrays.asList(tokens);

Copied: trunk/src/test/java/​com/artilekt/modules​/utils/io/ResourceLo​catorTest.java (from r18, /trunk/src/test/java​/com/artilekt/module​s/common/ResourceLoc​atorTest.java)
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/test/java/com/arti​lekt/modules/utils/i​o/ResourceLocatorTes​t.java?view=diff​&rev=20&p1=/trun​k/src/test/java/com/​artilekt/modules/com​mon/ResourceLocatorT​est.java&p2=trun​k/src/test/java/com/​artilekt/modules/uti​ls/io/ResourceLocato​rTest.java&r1=18​&r2=20
====================​====================​====================​==================
--- /trunk/src/test/java​/com/artilekt/module​s/common/ResourceLoc​atorTest.java (original)
+++ trunk/src/test/java/​com/artilekt/modules​/utils/io/ResourceLo​catorTest.java 2006-08-19 19:36:00-0700
@@ -14,10 +14,9 @@
  * limitations under the License.
  */
 
-package com.artilekt.modules.common;
+package com.artilekt.modules.utils.io;
 
 import junit.framework.TestCase;
-import com.artilekt.modules​.utils.io.ResourceLo​cator;
 
 /**
  * Author: Vladimir Olenin

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r20 - trunk/src: main/config main/java/com/artilekt/modules/utils main/java/com/artilekt/modules/utils/io test/java/com/artilekt/modules/common test/java/com/artilekt/modules/parsers test/... volenin Vladimir Olenin 2006-08-19 19:36:00 PDT
Messages per page: