Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 11993 invoked from network); 28 Nov 2006 06:24:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Nov 2006 06:24:49 -0000 Received: (qmail 68640 invoked by uid 500); 28 Nov 2006 06:24:55 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 68614 invoked by uid 500); 28 Nov 2006 06:24:55 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 68605 invoked by uid 99); 28 Nov 2006 06:24:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 22:24:55 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of nbeyer@gmail.com designates 66.249.82.238 as permitted sender) Received: from [66.249.82.238] (HELO wx-out-0506.google.com) (66.249.82.238) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 22:24:43 -0800 Received: by wx-out-0506.google.com with SMTP id i26so1823716wxd for ; Mon, 27 Nov 2006 22:24:23 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RTjBtgUmJW1sbWG1yesVOzly3GFaooHYrZen1MUGldbJKy0ikDthkoQFE0qwjF6jHvrxUoGzEpgYsvGzYe6gmjVpNvuS60ypEgqsl8dZYq1R6B9fmXkNqqj2FG+AgLFToes5+3M3YpAwVfjOioUCTPE6C7txzIqMdYikqIHDlUQ= Received: by 10.90.100.2 with SMTP id x2mr344691agb.1164695062917; Mon, 27 Nov 2006 22:24:22 -0800 (PST) Received: by 10.90.66.18 with HTTP; Mon, 27 Nov 2006 22:24:22 -0800 (PST) Message-ID: <3b3f27c60611272224o10be1898k8acffeada926a412@mail.gmail.com> Date: Tue, 28 Nov 2006 00:24:22 -0600 From: "Nathan Beyer" To: dev@harmony.apache.org, geir@pobox.com Subject: Re: svn commit: r479913 - in /harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo: AbstractUndoableEditTest.java CannotRedoExceptionTest.java CannotUndoExceptionTest.java In-Reply-To: <456BD41B.3080407@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061128053133.719F81A9846@eris.apache.org> <456BD41B.3080407@pobox.com> X-Virus-Checked: Checked by ClamAV on apache.org To make the tests consistent with the majority (my observation) of the other Harmony test cases without them. Besides that, from a pragmatic view, it's never used. The caveat to that might be that lone hacker doing everything from the command-line and invoking individual tests, if they have main methods, via a "java ..." command. -Nathan On 11/28/06, Geir Magnusson Jr. wrote: > I'm game - why should the main() be removed? > > geir > > ndbeyer@apache.org wrote: > > Author: ndbeyer > > Date: Mon Nov 27 21:31:26 2006 > > New Revision: 479913 > > > > URL: http://svn.apache.org/viewvc?view=rev&rev=479913 > > Log: > > Remove unnecessary and empty methods > > > > Modified: > > harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/AbstractUndoableEditTest.java > > harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CannotRedoExceptionTest.java > > harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CannotUndoExceptionTest.java > > > > Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/AbstractUndoableEditTest.java > > URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/AbstractUndoableEditTest.java?view=diff&rev=479913&r1=479912&r2=479913 > > ============================================================================== > > --- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/AbstractUndoableEditTest.java (original) > > +++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/AbstractUndoableEditTest.java Mon Nov 27 21:31:26 2006 > > @@ -35,10 +35,6 @@ > > > > private String defaultRedoName; > > > > - public static void main(final String[] args) { > > - junit.textui.TestRunner.run(AbstractUndoableEditTest.class); > > - } > > - > > @Override > > protected void setUp() throws Exception { > > obj = new AbstractUndoableEdit(); > > > > Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CannotRedoExceptionTest.java > > URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CannotRedoExceptionTest.java?view=diff&rev=479913&r1=479912&r2=479913 > > ============================================================================== > > --- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CannotRedoExceptionTest.java (original) > > +++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CannotRedoExceptionTest.java Mon Nov 27 21:31:26 2006 > > @@ -14,25 +14,12 @@ > > * See the License for the specific language governing permissions and > > * limitations under the License. > > */ > > -/** > > - * @author Evgeniya G. Maenkova > > - * @version $Revision$ > > - */ > > + > > package javax.swing.undo; > > > > import junit.framework.TestCase; > > > > public class CannotRedoExceptionTest extends TestCase { > > - @Override > > - protected void setUp() throws Exception { > > - super.setUp(); > > - } > > - > > - @Override > > - protected void tearDown() throws Exception { > > - super.tearDown(); > > - } > > - > > public void testCannotRedoException() { > > CannotRedoException exception = new CannotRedoException(); > > assertNull(exception.getMessage()); > > > > Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CannotUndoExceptionTest.java > > URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CannotUndoExceptionTest.java?view=diff&rev=479913&r1=479912&r2=479913 > > ============================================================================== > > --- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CannotUndoExceptionTest.java (original) > > +++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java/common/javax/swing/undo/CannotUndoExceptionTest.java Mon Nov 27 21:31:26 2006 > > @@ -14,25 +14,12 @@ > > * See the License for the specific language governing permissions and > > * limitations under the License. > > */ > > -/** > > - * @author Evgeniya G. Maenkova > > - * @version $Revision$ > > - */ > > + > > package javax.swing.undo; > > > > import junit.framework.TestCase; > > > > public class CannotUndoExceptionTest extends TestCase { > > - @Override > > - protected void setUp() throws Exception { > > - super.setUp(); > > - } > > - > > - @Override > > - protected void tearDown() throws Exception { > > - super.tearDown(); > > - } > > - > > public void testCannotRedoException() { > > CannotUndoException exception = new CannotUndoException(); > > assertNull(exception.getMessage()); > > > > >