harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivavladi...@apache.org
Subject svn commit: r555605 - /harmony/enhanced/buildtest/branches/2.0/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/awt/EventQueue/EventQueueTest.java
Date Thu, 12 Jul 2007 12:01:19 GMT
Author: ivavladimir
Date: Thu Jul 12 05:01:18 2007
New Revision: 555605

URL: http://svn.apache.org/viewvc?view=rev&rev=555605
Log:
minor improvement were done

Modified:
    harmony/enhanced/buildtest/branches/2.0/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/awt/EventQueue/EventQueueTest.java

Modified: harmony/enhanced/buildtest/branches/2.0/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/awt/EventQueue/EventQueueTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/awt/EventQueue/EventQueueTest.java?view=diff&rev=555605&r1=555604&r2=555605
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/awt/EventQueue/EventQueueTest.java
(original)
+++ harmony/enhanced/buildtest/branches/2.0/tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/awt/EventQueue/EventQueueTest.java
Thu Jul 12 05:01:18 2007
@@ -277,6 +277,9 @@
         /* We must get ceHidden event */
         ComponentEvent ceReceived = (ComponentEvent) myeq.peekEvent();
 
+        if (ceReceived == null) {
+            return failed("\n No event has been peeked up from the queue");
+        }
         if (ceReceived.getSource().getClass().getName().indexOf("MyButton") < 0
                 || ceReceived.getID() != ComponentEvent.COMPONENT_HIDDEN) {
             return failed("\n Wrong event has been peeked up from the queue");



Mime
View raw message