Chapter 9. Methods Available to the CLI and Server Scripts

9.1. Assert

Provides assertion utilities for CLI scripts. More information about using Java assertions is in the Java language documentation.
Method Signature
Assert.assertEquals
assertEquals(float, float, float, String)
assertEquals(short, short, String)
assertEquals(double, double, double)
assertEquals(long, long, String)
assertEquals(byte, byte, String)
assertEquals(Object, Object)
assertEquals(char, char, String)
assertEquals(Object, Object, String)
assertEquals(double, double, double, String)
assertEquals(byte[], byte[])
assertEquals(boolean, boolean)
assertEquals(Object[], Object[], String)
assertEquals(Collection, Collection)
assertEquals(Object[], Object[])
assertEquals(byte, byte)
assertEquals(float, float, float)
assertEquals(char, char)
assertEquals(int, int)
assertEquals(long, long)
assertEquals(Collection, Collection, String)
assertEquals(short, short)
assertEquals(String, String, String)
assertEquals(byte[], byte[], String)
assertEquals(boolean, boolean, String)
assertEquals(String, String)
assertEquals(int, int, String)
Assert.assertEqualsNoOrder
assertEqualsNoOrder(Object[], Object[], String)
assertEqualsNoOrder(Object[], Object[])
Assert.assertExists
assertExists(String)
Assert.assertFalse
assertFalse(boolean)
assertFalse(boolean, String)
Assert.assertNotNull
assertNotNull(Object)
assertNotNull(Object, String)
Assert.assertNotSame
assertNotSame(Object, Object, String)
assertNotSame(Object, Object)
Assert.assertNull
assertNull(Object)
assertNull(Object, String)
Assert.assertNumberEqualsJS
assertNumberEqualsJS(double, double, String)
Assert.assertSame
assertSame(Object, Object, String)
assertSame(Object, Object)
Assert.assertTrue
assertTrue(boolean, String)
assertTrue(boolean)
Assert.fail
fail()
fail(String, Throwable)
fail(String)