commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1532951 - /commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/TriggerEventTest.java
Date Thu, 17 Oct 2013 01:37:21 GMT
Author: dbrosius
Date: Thu Oct 17 01:37:21 2013
New Revision: 1532951

URL: http://svn.apache.org/r1532951
Log:
fix junit assert usage

Modified:
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/TriggerEventTest.java

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/TriggerEventTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/TriggerEventTest.java?rev=1532951&r1=1532950&r2=1532951&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/TriggerEventTest.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/TriggerEventTest.java
Thu Oct 17 01:37:21 2013
@@ -68,18 +68,18 @@ public class TriggerEventTest {
      */
     @Test
     public void testTriggerEventGetters() {
-        Assert.assertEquals(te1.getName(), "name1");
-        Assert.assertEquals(te2.getType(), 2);
+        Assert.assertEquals("name1", te1.getName());
+        Assert.assertEquals(2, te2.getType());
         Assert.assertNull(te7.getPayload());
     }
 
     @Test
     public void testTriggerEventEquals() {
-        Assert.assertTrue(te1.equals(te2));
-        Assert.assertTrue(te3.equals(te4));
-        Assert.assertTrue(te5.equals(te6));
-        Assert.assertFalse(te1.equals(te4));
-        Assert.assertFalse(te7.equals(null));
+        Assert.assertEquals(te1, te2);
+        Assert.assertEquals(te3, te4);
+        Assert.assertEquals(te5, te6);
+        Assert.assertNotEquals(te1, te4);
+        Assert.assertNotNull(te7);
     }
 
     @Test



Mime
View raw message