public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: Fix for InstantiateChild test
@ 2006-05-21 20:30 Andrew John Hughes
  0 siblings, 0 replies; only message in thread
From: Andrew John Hughes @ 2006-05-21 20:30 UTC (permalink / raw)
  To: mauve-patches


[-- Attachment #1.1: Type: text/plain, Size: 944 bytes --]

I'm committing the attached patch which fixes a bug
in the recent InstantiateChild test; it shouldn't
compare the return value as we do with add.

Changelog:

2006-05-21  Andrew John Hughes  <gnu_andrew@member.fsf.org>

	* gnu/testlet/java/beans/beancontext/InstantiateChild.java: 
	Fix incorrect test of return value of InstantiateChild.

-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

If you use Microsoft Office, support movement towards the end of vendor lock-in:
http://opendocumentfellowship.org/petition/

"Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn." 
-- Richard Stallman

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }

[-- Attachment #1.2: beancontext-03b.diff --]
[-- Type: text/plain, Size: 1001 bytes --]

Index: gnu/testlet/java/beans/beancontext/InstantiateChild.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/beans/beancontext/InstantiateChild.java,v
retrieving revision 1.1
diff -u -3 -p -u -r1.1 InstantiateChild.java
--- gnu/testlet/java/beans/beancontext/InstantiateChild.java	21 May 2006 20:09:11 -0000	1.1
+++ gnu/testlet/java/beans/beancontext/InstantiateChild.java	21 May 2006 20:23:34 -0000
@@ -42,8 +42,7 @@ public class InstantiateChild
 	h.check(context.isEmpty(), "Empty check");
 	h.check(context.size() == 0, "Size of 0 check");
 	/* Add child */
-	h.check(context.instantiateChild("java.beans.beancontext.BeanContextChildSupport"), 
-		"Child instantiated addition check");
+	context.instantiateChild("java.beans.beancontext.BeanContextChildSupport");
 	/* Check child is added to context */
 	h.check(context.isEmpty() == false, "Non-empty check");
 	h.check(context.size() == 1, "Size of 1 check");

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-05-21 20:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-21 20:30 FYI: Fix for InstantiateChild test Andrew John Hughes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).