See the
Junit API.
Assert also contains some useful derived methods:
-
Assert.fail():void
-
same as Assert.assertTrue(false)
-
Assert.assertFalse(actual:boolean):void
-
same as Assert.assertTrue(!actual)
-
Assert.assertEquals(expected, actual):void
-
same as
Assert.assertTrue(expected.equals(actual))
for object types
-
same as
Assert.assertTrue(expected == actual)
for base types
-
Assert.assertSame(expected:Object, actual:Object):void
-
same as
Assert.assertTrue(expected == actual)
-
Assert.assertNotNull(actual:Object):void
-
same as
Assert.assertTrue(null != actual)
-
Assert.assertNull(actual:Object):void
-
same as
Assert.assertTrue(null == actual)