[Japi-cvs] SF.net SVN: japi: [552] historic/trunk/src/test/net/sf/japi/util/ Arrays2Test.java
Status: Beta
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2007-07-15 10:26:41
|
Revision: 552
http://svn.sourceforge.net/japi/?rev=552&view=rev
Author: christianhujer
Date: 2007-07-15 03:26:38 -0700 (Sun, 15 Jul 2007)
Log Message:
-----------
Removed Arrays2Test from historic - this now is in libs-util.
Removed Paths:
-------------
historic/trunk/src/test/net/sf/japi/util/Arrays2Test.java
Deleted: historic/trunk/src/test/net/sf/japi/util/Arrays2Test.java
===================================================================
--- historic/trunk/src/test/net/sf/japi/util/Arrays2Test.java 2007-07-15 10:25:22 UTC (rev 551)
+++ historic/trunk/src/test/net/sf/japi/util/Arrays2Test.java 2007-07-15 10:26:38 UTC (rev 552)
@@ -1,56 +0,0 @@
-/* JAPI - (Yet another (hopefully) useful) Java API
- *
- * Copyright (C) 2004-2006 Christian Hujer
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * This program 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
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- */
-
-package test.net.sf.japi.util;
-
-import java.util.Arrays;
-import junit.framework.TestCase;
-import net.sf.japi.util.Arrays2;
-
-/** Test for {@link Arrays2}.
- * @author <a href="mailto:ch...@ri...">Christian Hujer</a>
- */
-public class Arrays2Test extends TestCase {
-
- /** {@inheritDoc} */
- @Override public void setUp() throws Exception {
- super.setUp();
- }
-
- /** {@inheritDoc} */
- @Override public void tearDown() throws Exception {
- super.tearDown();
- }
-
- /** Test case for {@link Arrays2#concat(double[]...)}. */
- @SuppressWarnings({"ImplicitNumericConversion"})
- public void testConcat() throws Exception {
- final byte[] data1Orig = {1, 2, 3};
- final byte[] data2Orig = {4, 5, 6, 7};
- final byte[] data1Copy = data1Orig.clone();
- final byte[] data2Copy = data2Orig.clone();
- final byte[] concatExpected = {1, 2, 3, 4, 5, 6, 7};
- final byte[] concatResult = Arrays2.concat(data1Copy, data2Copy);
- assertTrue("Original arrays must be unmodified", Arrays.equals(data1Orig, data1Copy));
- assertTrue("Original arrays must be unmodified", Arrays.equals(data2Orig, data2Copy));
- assertTrue("Concatenation must correctly concatenate", Arrays.equals(concatExpected, concatResult));
- }
-
-} // class Arrays2Test
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|