japi-cvs Mailing List for JAPI (Page 16)
Status: Beta
Brought to you by:
christianhujer
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
(115) |
May
(11) |
Jun
(5) |
Jul
(2) |
Aug
(10) |
Sep
(35) |
Oct
(14) |
Nov
(49) |
Dec
(27) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(57) |
Feb
(1) |
Mar
|
Apr
(2) |
May
(25) |
Jun
(134) |
Jul
(76) |
Aug
(34) |
Sep
(27) |
Oct
(5) |
Nov
|
Dec
(1) |
2008 |
Jan
(3) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(63) |
Nov
(30) |
Dec
(43) |
2009 |
Jan
(10) |
Feb
(420) |
Mar
(67) |
Apr
(3) |
May
(61) |
Jun
(21) |
Jul
(19) |
Aug
|
Sep
(6) |
Oct
(16) |
Nov
(1) |
Dec
|
2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
(7) |
May
(3) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: <chr...@us...> - 2009-02-22 03:01:17
|
Revision: 1035 http://japi.svn.sourceforge.net/japi/?rev=1035&view=rev Author: christianhujer Date: 2009-02-22 01:34:53 +0000 (Sun, 22 Feb 2009) Log Message: ----------- Fetch missing libraries. Modified Paths: -------------- progs/jeduca/trunk/build.xml Modified: progs/jeduca/trunk/build.xml =================================================================== --- progs/jeduca/trunk/build.xml 2009-02-22 01:23:09 UTC (rev 1034) +++ progs/jeduca/trunk/build.xml 2009-02-22 01:34:53 UTC (rev 1035) @@ -23,7 +23,14 @@ &commonBuild; <target name="getlibs"> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-about-0.1.0.jar" dest="lib/japi-lib-swing-about.jar" /> <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-action-0.1.0.jar" dest="lib/japi-lib-swing-action.jar" /> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-app-0.1.0.jar" dest="lib/japi-lib-swing-app.jar" /> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-bookmarks-0.1.0.jar" dest="lib/japi-lib-swing-bookmarks.jar" /> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-extlib-0.1.0.jar" dest="lib/japi-lib-swing-extlib.jar" /> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-prefs-0.1.0.jar" dest="lib/japi-lib-swing-prefs.jar" /> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-recent-0.1.0.jar" dest="lib/japi-lib-swing-recent.jar" /> + <get src="http://downloads.sourceforge.net/japi/japi-lib-xml-0.1.0.jar" dest="lib/japi-lib-xml.jar" /> </target> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-22 01:23:15
|
Revision: 1034 http://japi.svn.sourceforge.net/japi/?rev=1034&view=rev Author: christianhujer Date: 2009-02-22 01:23:09 +0000 (Sun, 22 Feb 2009) Log Message: ----------- Created release tag 0.1.0 for branch 0.1. Added Paths: ----------- libs/swing-bookmarks/tags/0.1.0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-22 01:22:41
|
Revision: 1033 http://japi.svn.sourceforge.net/japi/?rev=1033&view=rev Author: christianhujer Date: 2009-02-22 01:22:38 +0000 (Sun, 22 Feb 2009) Log Message: ----------- Created branch 0.1. Added Paths: ----------- libs/swing-bookmarks/branches/0.1/ Property changes on: libs/swing-bookmarks/branches/0.1 ___________________________________________________________________ Added: svn:ignore + bin classes dest developer.properties dist docs Added: svn:externals + ^/common/trunk@1032 common Added: svn:mergeinfo + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-22 01:02:42
|
Revision: 1032 http://japi.svn.sourceforge.net/japi/?rev=1032&view=rev Author: christianhujer Date: 2009-02-22 01:02:41 +0000 (Sun, 22 Feb 2009) Log Message: ----------- Created release tag 0.1.0 for branch 0.1. Added Paths: ----------- libs/xml/tags/0.1.0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-22 00:59:53
|
Revision: 1031 http://japi.svn.sourceforge.net/japi/?rev=1031&view=rev Author: christianhujer Date: 2009-02-22 00:59:47 +0000 (Sun, 22 Feb 2009) Log Message: ----------- Created branch 0.1. Added Paths: ----------- libs/xml/branches/0.1/ Property changes on: libs/xml/branches/0.1 ___________________________________________________________________ Added: svn:ignore + bin classes dest developer.properties dist docs Added: svn:externals + ^/common/trunk@1030 common Added: svn:mergeinfo + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-22 00:41:02
|
Revision: 1030 http://japi.svn.sourceforge.net/japi/?rev=1030&view=rev Author: christianhujer Date: 2009-02-22 00:40:59 +0000 (Sun, 22 Feb 2009) Log Message: ----------- Created release tag 0.1.0 for branch 0.1. Added Paths: ----------- libs/swing-recent/tags/0.1.0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-22 00:39:17
|
Revision: 1029 http://japi.svn.sourceforge.net/japi/?rev=1029&view=rev Author: christianhujer Date: 2009-02-22 00:39:11 +0000 (Sun, 22 Feb 2009) Log Message: ----------- Created branch 0.1. Added Paths: ----------- libs/swing-recent/branches/0.1/ Property changes on: libs/swing-recent/branches/0.1 ___________________________________________________________________ Added: svn:ignore + bin classes dest developer.properties dist docs Added: svn:externals + ^/common/trunk@1028 common Added: svn:mergeinfo + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-22 00:38:37
|
Revision: 1028 http://japi.svn.sourceforge.net/japi/?rev=1028&view=rev Author: christianhujer Date: 2009-02-22 00:38:30 +0000 (Sun, 22 Feb 2009) Log Message: ----------- Fetch required libraries. Modified Paths: -------------- libs/swing-recent/trunk/build.xml Modified: libs/swing-recent/trunk/build.xml =================================================================== --- libs/swing-recent/trunk/build.xml 2009-02-22 00:22:53 UTC (rev 1027) +++ libs/swing-recent/trunk/build.xml 2009-02-22 00:38:30 UTC (rev 1028) @@ -25,6 +25,7 @@ <target name="getlibs"> <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-action-0.1.0.jar" dest="lib/japi-lib-swing-action.jar" /> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-app-0.1.0.jar" dest="lib/japi-lib-swing-app.jar" /> </target> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-22 00:22:54
|
Revision: 1027 http://japi.svn.sourceforge.net/japi/?rev=1027&view=rev Author: christianhujer Date: 2009-02-22 00:22:53 +0000 (Sun, 22 Feb 2009) Log Message: ----------- Created release tag 0.1.0 for branch 0.1. Added Paths: ----------- libs/swing-app/tags/0.1.0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-22 00:20:44
|
Revision: 1026 http://japi.svn.sourceforge.net/japi/?rev=1026&view=rev Author: christianhujer Date: 2009-02-22 00:20:43 +0000 (Sun, 22 Feb 2009) Log Message: ----------- Created branch 0.1. Added Paths: ----------- libs/swing-app/branches/0.1/ Property changes on: libs/swing-app/branches/0.1 ___________________________________________________________________ Added: svn:ignore + bin classes dest developer.properties dist docs Added: svn:externals + ^/common/trunk@1025 common Added: svn:mergeinfo + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:57:18
|
Revision: 1025 http://japi.svn.sourceforge.net/japi/?rev=1025&view=rev Author: christianhujer Date: 2009-02-21 23:57:16 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Fetch required libraries Modified Paths: -------------- libs/swing-app/trunk/build.xml Removed Paths: ------------- libs/swing-app/trunk/lib/japi-lib-argparser-trunk.jar libs/swing-app/trunk/lib/japi-lib-swing-about-trunk.jar libs/swing-app/trunk/lib/japi-lib-swing-action-trunk.jar libs/swing-app/trunk/lib/japi-lib-swing-extlib-trunk.jar Modified: libs/swing-app/trunk/build.xml =================================================================== --- libs/swing-app/trunk/build.xml 2009-02-21 23:55:08 UTC (rev 1024) +++ libs/swing-app/trunk/build.xml 2009-02-21 23:57:16 UTC (rev 1025) @@ -23,4 +23,11 @@ &commonBuild; + <target name="getlibs"> + <get src="http://downloads.sourceforge.net/japi/japi-lib-argparser-0.3.0.jar" dest="lib/japi-lib-argparser.jar" /> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-about-0.1.0.jar" dest="lib/japi-lib-swing-about.jar" /> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-action-0.1.0.jar" dest="lib/japi-lib-swing-action.jar" /> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-extlib-0.1.0.jar" dest="lib/japi-lib-swing-extlib.jar" /> + </target> + </project> Deleted: libs/swing-app/trunk/lib/japi-lib-argparser-trunk.jar =================================================================== (Binary files differ) Deleted: libs/swing-app/trunk/lib/japi-lib-swing-about-trunk.jar =================================================================== (Binary files differ) Deleted: libs/swing-app/trunk/lib/japi-lib-swing-action-trunk.jar =================================================================== (Binary files differ) Deleted: libs/swing-app/trunk/lib/japi-lib-swing-extlib-trunk.jar =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:55:14
|
Revision: 1024 http://japi.svn.sourceforge.net/japi/?rev=1024&view=rev Author: christianhujer Date: 2009-02-21 23:55:08 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Fetch required libraries Modified Paths: -------------- libs/swing-keyprefs/trunk/build.xml Modified: libs/swing-keyprefs/trunk/build.xml =================================================================== --- libs/swing-keyprefs/trunk/build.xml 2009-02-21 23:54:42 UTC (rev 1023) +++ libs/swing-keyprefs/trunk/build.xml 2009-02-21 23:55:08 UTC (rev 1024) @@ -23,4 +23,10 @@ &commonBuild; + <target name="getlibs"> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-action-0.1.0.jar" dest="lib/japi-lib-swing-action.jar" /> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-prefs-0.1.0.jar" dest="lib/japi-lib-swing-prefs.jar" /> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-treetable-0.1.0.jar" dest="lib/japi-lib-swing-treetable.jar" /> + </target> + </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:54:47
|
Revision: 1023 http://japi.svn.sourceforge.net/japi/?rev=1023&view=rev Author: christianhujer Date: 2009-02-21 23:54:42 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Fetch required libraries Modified Paths: -------------- libs/swing-tod/trunk/build.xml Modified: libs/swing-tod/trunk/build.xml =================================================================== --- libs/swing-tod/trunk/build.xml 2009-02-21 23:54:23 UTC (rev 1022) +++ libs/swing-tod/trunk/build.xml 2009-02-21 23:54:42 UTC (rev 1023) @@ -23,4 +23,8 @@ &commonBuild; + <target name="getlibs"> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-action-0.1.0.jar" dest="lib/japi-lib-swing-action.jar" /> + </target> + </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:54:25
|
Revision: 1022 http://japi.svn.sourceforge.net/japi/?rev=1022&view=rev Author: christianhujer Date: 2009-02-21 23:54:23 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Fetch required libraries Modified Paths: -------------- libs/swing-proxyprefs/trunk/build.xml Modified: libs/swing-proxyprefs/trunk/build.xml =================================================================== --- libs/swing-proxyprefs/trunk/build.xml 2009-02-21 23:54:01 UTC (rev 1021) +++ libs/swing-proxyprefs/trunk/build.xml 2009-02-21 23:54:23 UTC (rev 1022) @@ -23,4 +23,8 @@ &commonBuild; + <target name="getlibs"> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-prefs-0.1.0.jar" dest="lib/japi-lib-swing-prefs.jar" /> + </target> + </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:54:05
|
Revision: 1021 http://japi.svn.sourceforge.net/japi/?rev=1021&view=rev Author: christianhujer Date: 2009-02-21 23:54:01 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Fetch required libraries Modified Paths: -------------- libs/swing-recent/trunk/build.xml Modified: libs/swing-recent/trunk/build.xml =================================================================== --- libs/swing-recent/trunk/build.xml 2009-02-21 23:53:28 UTC (rev 1020) +++ libs/swing-recent/trunk/build.xml 2009-02-21 23:54:01 UTC (rev 1021) @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- - ~ JAPI libs-swing-recent is a library for handling recently opened files in an application. - ~ Copyright (C) 2007 Christian Hujer. + ~ Copyright (C) 2009 Christian Hujer. ~ ~ This library is free software; you can redistribute it and/or ~ modify it under the terms of the GNU Lesser General Public @@ -24,4 +23,8 @@ &commonBuild; + <target name="getlibs"> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-action-0.1.0.jar" dest="lib/japi-lib-swing-action.jar" /> + </target> + </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:53:32
|
Revision: 1020 http://japi.svn.sourceforge.net/japi/?rev=1020&view=rev Author: christianhujer Date: 2009-02-21 23:53:28 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Fetch required libraries Modified Paths: -------------- libs/swing-list/trunk/build.xml Modified: libs/swing-list/trunk/build.xml =================================================================== --- libs/swing-list/trunk/build.xml 2009-02-21 23:52:43 UTC (rev 1019) +++ libs/swing-list/trunk/build.xml 2009-02-21 23:53:28 UTC (rev 1020) @@ -23,4 +23,8 @@ &commonBuild; + <target name="getlibs"> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-action-0.1.0.jar" dest="lib/japi-lib-swing-action.jar" /> + </target> + </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:52:50
|
Revision: 1019 http://japi.svn.sourceforge.net/japi/?rev=1019&view=rev Author: christianhujer Date: 2009-02-21 23:52:43 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Fetch required libraries Modified Paths: -------------- libs/swing-about/trunk/build.xml Modified: libs/swing-about/trunk/build.xml =================================================================== --- libs/swing-about/trunk/build.xml 2009-02-21 23:52:26 UTC (rev 1018) +++ libs/swing-about/trunk/build.xml 2009-02-21 23:52:43 UTC (rev 1019) @@ -1,5 +1,4 @@ <?xml version="1.0" encoding="utf-8"?> - <!-- ~ Copyright (C) 2009 Christian Hujer. ~ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:52:36
|
Revision: 1018 http://japi.svn.sourceforge.net/japi/?rev=1018&view=rev Author: christianhujer Date: 2009-02-21 23:52:26 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Fetch required libraries Modified Paths: -------------- libs/swing-font/trunk/build.xml Modified: libs/swing-font/trunk/build.xml =================================================================== --- libs/swing-font/trunk/build.xml 2009-02-21 23:52:10 UTC (rev 1017) +++ libs/swing-font/trunk/build.xml 2009-02-21 23:52:26 UTC (rev 1018) @@ -23,4 +23,8 @@ &commonBuild; + <target name="getlibs"> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-action-0.1.0.jar" dest="lib/japi-lib-swing-action.jar" /> + </target> + </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:52:12
|
Revision: 1017 http://japi.svn.sourceforge.net/japi/?rev=1017&view=rev Author: christianhujer Date: 2009-02-21 23:52:10 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Fetch required libraries Modified Paths: -------------- libs/swing-misc/trunk/build.xml Modified: libs/swing-misc/trunk/build.xml =================================================================== --- libs/swing-misc/trunk/build.xml 2009-02-21 23:22:42 UTC (rev 1016) +++ libs/swing-misc/trunk/build.xml 2009-02-21 23:52:10 UTC (rev 1017) @@ -23,4 +23,8 @@ &commonBuild; + <target name="getlibs"> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-action-0.1.0.jar" dest="lib/japi-lib-swing-action.jar" /> + </target> + </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:22:46
|
Revision: 1016 http://japi.svn.sourceforge.net/japi/?rev=1016&view=rev Author: christianhujer Date: 2009-02-21 23:22:42 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Created release tag 0.1.0 for branch 0.1. Added Paths: ----------- libs/swing-prefs/tags/0.1.0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:22:22
|
Revision: 1006 http://japi.svn.sourceforge.net/japi/?rev=1006&view=rev Author: christianhujer Date: 2009-02-21 22:03:14 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Fixed bug: lines() should be static. Modified Paths: -------------- libs/io/trunk/src/prj/net/sf/japi/io/IOUtils.java Modified: libs/io/trunk/src/prj/net/sf/japi/io/IOUtils.java =================================================================== --- libs/io/trunk/src/prj/net/sf/japi/io/IOUtils.java 2009-02-21 20:44:00 UTC (rev 1005) +++ libs/io/trunk/src/prj/net/sf/japi/io/IOUtils.java 2009-02-21 22:03:14 UTC (rev 1006) @@ -58,7 +58,7 @@ * @param in Reader for which to return lines. * @return An iterable for the lines of the specified reader. */ - public Iterable<String> lines(@NotNull final Reader in) { + public static Iterable<String> lines(@NotNull final Reader in) { return new BRLineIterable(in); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:22:20
|
Revision: 1007 http://japi.svn.sourceforge.net/japi/?rev=1007&view=rev Author: christianhujer Date: 2009-02-21 22:03:37 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Added unit tests for japi-lib-io. Added Paths: ----------- libs/io/trunk/src/tst/test/ libs/io/trunk/src/tst/test/net/ libs/io/trunk/src/tst/test/net/sf/ libs/io/trunk/src/tst/test/net/sf/japi/ libs/io/trunk/src/tst/test/net/sf/japi/io/ libs/io/trunk/src/tst/test/net/sf/japi/io/CopierTest.java libs/io/trunk/src/tst/test/net/sf/japi/io/IOUtilsTest.java Added: libs/io/trunk/src/tst/test/net/sf/japi/io/CopierTest.java =================================================================== --- libs/io/trunk/src/tst/test/net/sf/japi/io/CopierTest.java (rev 0) +++ libs/io/trunk/src/tst/test/net/sf/japi/io/CopierTest.java 2009-02-21 22:03:37 UTC (rev 1007) @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2009 Christian Hujer. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +package test.net.sf.japi.io; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.util.Arrays; +import net.sf.japi.io.Copier; +import org.junit.Assert; +import org.junit.Test; + +/** + * Unit test for {@link Copier}. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public class CopierTest { + + /** Tests that Copier copies from one stream to another. */ + @Test + public void testCopy() { + final byte[] input = { 0x00, 0x01, 0x7F, 0x03, 0x40 }; + final byte[] verification = input.clone(); + Assert.assertNotSame("Expecting verification to be a new array.", input, verification); + final ByteArrayInputStream in = new ByteArrayInputStream(input); + final ByteArrayOutputStream out = new ByteArrayOutputStream(); + final Copier testling = new Copier(in, out); + testling.run(); + final byte[] output = out.toByteArray(); + Assert.assertTrue("Expecting input to be unchanged.", Arrays.equals(verification, input)); + Assert.assertTrue("Expecting output to be like input.", Arrays.equals(verification, output)); + Assert.assertNotSame("Expecting output to be a new array.", input, output); + Assert.assertNotSame("Expecting output to be a new array.", verification, output); + } +} Property changes on: libs/io/trunk/src/tst/test/net/sf/japi/io/CopierTest.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF Added: libs/io/trunk/src/tst/test/net/sf/japi/io/IOUtilsTest.java =================================================================== --- libs/io/trunk/src/tst/test/net/sf/japi/io/IOUtilsTest.java (rev 0) +++ libs/io/trunk/src/tst/test/net/sf/japi/io/IOUtilsTest.java 2009-02-21 22:03:37 UTC (rev 1007) @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2009 Christian Hujer. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +package test.net.sf.japi.io; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.io.Reader; +import java.io.StringReader; +import java.util.Arrays; +import java.util.Iterator; +import java.util.NoSuchElementException; +import net.sf.japi.io.IOUtils; +import org.junit.Assert; +import org.junit.Test; + +/** + * Unit test for {@link IOUtils}. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public class IOUtilsTest { + + /** Tests that {@link IOUtils#copy(InputStream, OutputStream)} works. + * @throws IOException (unexpected) + */ + @Test + public void testCopy() throws IOException { + final byte[] input = { 0x00, 0x01, 0x7F, 0x03, 0x40 }; + final byte[] verification = input.clone(); + Assert.assertNotSame("Expecting verification to be a new array.", input, verification); + final ByteArrayInputStream in = new ByteArrayInputStream(input); + final ByteArrayOutputStream out = new ByteArrayOutputStream(); + IOUtils.copy(in, out); + final byte[] output = out.toByteArray(); + Assert.assertTrue("Expecting input to be unchanged.", Arrays.equals(verification, input)); + Assert.assertTrue("Expecting output to be like input.", Arrays.equals(verification, output)); + Assert.assertNotSame("Expecting output to be a new array.", input, output); + Assert.assertNotSame("Expecting output to be a new array.", verification, output); + } + + /** Tests that {@link IOUtils#lines(Reader)} works. */ + @Test + public void testLines() throws IOException { + final String input = "line1\nline2\nline3"; + final Reader in = new StringReader(input); + final Iterable<String> lineIterable = IOUtils.lines(in); + final Iterator<String> lineIterator = lineIterable.iterator(); + Assert.assertTrue(lineIterator.hasNext()); + Assert.assertEquals("line1", lineIterator.next()); + try { + lineIterator.remove(); + Assert.fail(); + } catch (final UnsupportedOperationException ignore) { + } + Assert.assertTrue(lineIterator.hasNext()); + Assert.assertEquals("line2", lineIterator.next()); + Assert.assertTrue(lineIterator.hasNext()); + Assert.assertEquals("line3", lineIterator.next()); + Assert.assertFalse(lineIterator.hasNext()); + try { + lineIterator.next(); + Assert.fail(); + } catch (final NoSuchElementException ignore) { + } + } +} Property changes on: libs/io/trunk/src/tst/test/net/sf/japi/io/IOUtilsTest.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:19:38
|
Revision: 1015 http://japi.svn.sourceforge.net/japi/?rev=1015&view=rev Author: christianhujer Date: 2009-02-21 23:19:31 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Created branch 0.1. Added Paths: ----------- libs/swing-prefs/branches/0.1/ Property changes on: libs/swing-prefs/branches/0.1 ___________________________________________________________________ Added: svn:ignore + bin classes dest developer.properties dist docs Added: svn:externals + ^/common/trunk@1014 common Added: svn:mergeinfo + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:18:41
|
Revision: 1014 http://japi.svn.sourceforge.net/japi/?rev=1014&view=rev Author: christianhujer Date: 2009-02-21 23:18:35 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Fetch required libraries. Modified Paths: -------------- libs/swing-prefs/trunk/build.xml Modified: libs/swing-prefs/trunk/build.xml =================================================================== --- libs/swing-prefs/trunk/build.xml 2009-02-21 23:05:02 UTC (rev 1013) +++ libs/swing-prefs/trunk/build.xml 2009-02-21 23:18:35 UTC (rev 1014) @@ -23,4 +23,8 @@ &commonBuild; + <target name="getlibs"> + <get src="http://downloads.sourceforge.net/japi/japi-lib-swing-action-0.1.0.jar" dest="lib/japi-lib-swing-action.jar" /> + </target> + </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-02-21 23:05:04
|
Revision: 1013 http://japi.svn.sourceforge.net/japi/?rev=1013&view=rev Author: christianhujer Date: 2009-02-21 23:05:02 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Created release tag 0.1.0 for branch 0.1. Added Paths: ----------- libs/swing-extlib/tags/0.1.0/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |