From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26903 invoked by alias); 21 Jun 2006 20:09:03 -0000 Received: (qmail 26892 invoked by uid 22791); 21 Jun 2006 20:09:02 -0000 X-Spam-Check-By: sourceware.org Received: from vsmtp12.tin.it (HELO vsmtp12.tin.it) (212.216.176.206) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 Jun 2006 20:08:59 +0000 Received: from [192.168.0.168] (82.59.106.159) by vsmtp12.tin.it (7.2.072.1) id 4498C0CD000C940E for mauve-patches@sourceware.org; Wed, 21 Jun 2006 22:10:46 +0200 Subject: Re: FYI: GConf Preference test small update From: Mario Torre To: mauve-patches@sourceware.org In-Reply-To: <1150917890.2656.5.camel@nirvana.limasoftware.net> References: <1150917890.2656.5.camel@nirvana.limasoftware.net> Content-Type: multipart/mixed; boundary="=-lZ0+4t4WN/d6yaqD1rsa" Date: Wed, 21 Jun 2006 20:09:00 -0000 Message-Id: <1150920620.2656.12.camel@nirvana.limasoftware.net> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) X-IsSubscribed: yes Mailing-List: contact mauve-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-patches-owner@sourceware.org X-SW-Source: 2006/txt/msg00447.txt.bz2 --=-lZ0+4t4WN/d6yaqD1rsa Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 486 Attached the right patch without the ChangeLog in it... Sorry for the confusion, I feel a newbie... Mario 2006-06-21 neugens * gnu/testlet/java/util/prefs/PreferenceTest.java (testBoolean): new test method. (test): call to enable new test. -- Lima Software, SO.PR.IND. s.r.l. http://www.limasoftware.net/ pgp key: http://subkeys.pgp.net/ Please, support open standards: http://opendocumentfellowship.org/petition/ http://www.nosoftwarepatents.com/ --=-lZ0+4t4WN/d6yaqD1rsa Content-Disposition: attachment; filename=mauve_preference_test.patch Content-Type: text/x-patch; name=mauve_preference_test.patch; charset=utf-8 Content-Transfer-Encoding: 7bit Content-length: 1431 Index: gnu/testlet/java/util/prefs/PreferenceTest.java =================================================================== RCS file: /cvs/mauve/mauve/gnu/testlet/java/util/prefs/PreferenceTest.java,v retrieving revision 1.1 diff -u -r1.1 PreferenceTest.java --- gnu/testlet/java/util/prefs/PreferenceTest.java 19 Jun 2006 09:57:34 -0000 1.1 +++ gnu/testlet/java/util/prefs/PreferenceTest.java 21 Jun 2006 19:53:02 -0000 @@ -93,6 +93,7 @@ testPut(); testByte(); + testBoolean(); testListener(); testChildren(); @@ -319,6 +320,35 @@ } } + private void testBoolean() + { + this.harness.checkPoint("testBoolean()"); + + String key = "boolean_key"; + String _true = "TrUe"; + + // test "normal" booleans + this.prefs.putBoolean(key, true); + boolean result = this.prefs.getBoolean(key, false); + + this.harness.check(result, true); + + // test String as boolean + this.prefs.remove(key); + try { + this.prefs.flush(); + + } catch (BackingStoreException e) { + print(e.getLocalizedMessage()); + this.harness.fail("call to testBoolean() - fail to flush"); + } + + this.prefs.put(key, _true); + result = this.prefs.getBoolean(key, false); + + this.harness.check(result, true); + } + private void testListener() { this.harness.checkPoint("testListener()"); --=-lZ0+4t4WN/d6yaqD1rsa--